Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm Sharp NetWalker PC-Z1 support by SHIMIZU Ryo...
details: https://anonhg.NetBSD.org/src/rev/3f5f2d7abb86
branches: trunk
changeset: 758693:3f5f2d7abb86
user: bsh <bsh%NetBSD.org@localhost>
date: Sat Nov 13 07:31:32 2010 +0000
description:
Sharp NetWalker PC-Z1 support by SHIMIZU Ryo, Hashimoto Kenichi, and me.
http://www.sharp.co.jp/netwalker/
diffstat:
sys/arch/evbarm/conf/NETWALKER | 209 ++++
sys/arch/evbarm/conf/NETWALKER_MD | 15 +
sys/arch/evbarm/conf/files.netwalker | 13 +
sys/arch/evbarm/conf/mk.netwalker | 14 +
sys/arch/evbarm/conf/std.netwalker | 30 +
sys/arch/evbarm/netwalker/netwalker_machdep.c | 1184 +++++++++++++++++++++++++
sys/arch/evbarm/netwalker/netwalker_reg.h | 66 +
sys/arch/evbarm/netwalker/netwalker_start.S | 374 +++++++
8 files changed, 1905 insertions(+), 0 deletions(-)
diffs (truncated from 1937 to 300 lines):
diff -r 5d25df82b32a -r 3f5f2d7abb86 sys/arch/evbarm/conf/NETWALKER
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbarm/conf/NETWALKER Sat Nov 13 07:31:32 2010 +0000
@@ -0,0 +1,209 @@
+# $NetBSD: NETWALKER,v 1.1 2010/11/13 07:31:32 bsh Exp $
+#
+# NETWALKER -- Sharp
+#
+
+include "arch/evbarm/conf/std.netwalker"
+
+#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
+
+# estimated number of users
+
+maxusers 32
+
+# Standard system options
+
+options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
+#options NTP # NTP phase/frequency locked loop
+
+# CPU options
+options CPU_CORTEXA8 # Support the ARM11 core
+options IMX51
+options PMAPCOUNTERS
+
+# Architecture options
+
+options IMX51_IPGCLK_FREQ=50000000
+
+# File systems
+
+file-system FFS # UFS
+#file-system LFS # log-structured file system
+file-system MFS # memory file system
+file-system NFS # Network file system
+#file-system ADOSFS # AmigaDOS-compatible file system
+file-system EXT2FS # second extended file system (linux)
+#file-system CD9660 # ISO 9660 + Rock Ridge file system
+file-system MSDOSFS # MS-DOS file system
+file-system FDESC # /dev/fd
+file-system KERNFS # /kern
+file-system NULLFS # loopback file system
+#file-system PORTAL # portal filesystem (still experimental)
+file-system PROCFS # /proc
+file-system TMPFS # memory file system
+#file-system UMAPFS # NULLFS + uid and gid remapping
+#file-system UNION # union file system
+file-system PTYFS # /dev/pts/N support
+
+# File system options
+#options QUOTA # UFS quotas
+#options FFS_EI # FFS Endian Independant support
+#options NFSSERVER
+options WAPBL # File system journaling support - Experimental
+#options FFS_NO_SNAPSHOT # No FFS snapshot support
+
+# Networking options
+
+#options GATEWAY # packet forwarding
+options INET # IP + ICMP + TCP + UDP
+options INET6 # IPV6
+#options IPSEC # IP security
+#options IPSEC_ESP # IP security (encryption part; define w/ IPSEC)
+#options IPSEC_NAT_T # IPsec NAT traversal (NAT-T)
+#options IPSEC_DEBUG # debug for IP security
+#options MROUTING # IP multicast routing
+#options PIM # Protocol Independent Multicast
+#options ISO,TPIP # OSI
+#options EON # OSI tunneling over IP
+#options NETATALK # AppleTalk networking
+#options PFIL_HOOKS # pfil(9) packet filter hooks
+#options PPP_BSDCOMP # BSD-Compress compression support for PPP
+#options PPP_DEFLATE # Deflate compression support for PPP
+#options PPP_FILTER # Active filter support for PPP (requires bpf)
+#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
+
+#options NFS_BOOT_BOOTP
+#options NFS_BOOT_DHCP
+#options NFS_BOOT_BOOTPARAM
+#options DEBUG_NFS_BOOT_DHCP
+
+# Compatibility options
+
+#options COMPAT_43 # 4.3BSD compatibility.
+options COMPAT_50 # NetBSD 5.0 compatibility.
+options COMPAT_40 # NetBSD 4.0 compatibility.
+#options COMPAT_30 # NetBSD 3.0 compatibility.
+#options COMPAT_20 # NetBSD 2.0 compatibility.
+#options COMPAT_16 # NetBSD 1.6 compatibility.
+#options COMPAT_15 # NetBSD 1.5 compatibility.
+#options COMPAT_14 # NetBSD 1.4 compatibility.
+#options COMPAT_13 # NetBSD 1.3 compatibility.
+#options COMPAT_12 # NetBSD 1.2 compatibility.
+#options COMPAT_11 # NetBSD 1.1 compatibility.
+#options COMPAT_10 # NetBSD 1.0 compatibility.
+#options COMPAT_09 # NetBSD 0.9 compatibility.
+#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended.
+
+options COMPAT_OSSAUDIO # OSS (Voxware) audio driver compatibility
+#options COMPAT_LINUX # binary compatibility with Linux
+options COMPAT_BSDPTY # /dev/[pt]ty?? ptys.
+
+# Shared memory options
+
+options SYSVMSG # System V-like message queues
+options SYSVSEM # System V-like semaphores
+#options SEMMNI=10 # number of semaphore identifiers
+#options SEMMNS=60 # number of semaphores in system
+#options SEMUME=10 # max number of undo entries per process
+#options SEMMNU=30 # number of undo structures in system
+options SYSVSHM # System V-like memory sharing
+
+# Device options
+
+# Console options. also need IMXUARTCONSOLE
+options CONSDEVNAME="\"imxuart\"",CONADDR=0x73fbc000
+options CONSPEED=115200 # Console speed
+
+# kgdb
+#options KGDB
+#options KGDB_DEVNAME="\"imxuart\""
+#options KGDB_DEVADDR=0x73fbc000
+#options KGDB_DEVRATE=115200
+
+# Miscellaneous kernel options
+options KTRACE # system call tracing, a la ktrace(1)
+options IRQSTATS # manage IRQ statistics
+#options KMEMSTATS # kernel memory statistics
+options PCMCIAVERBOSE # verbose PCMCIA configuration messages
+options USBVERBOSE # verbose USB device autoconfig messages
+#options SCSIVERBOSE # Verbose SCSI errors
+options MIIVERBOSE # Verbose MII autoconfuration messages
+#options PCI_CONFIG_DUMP # verbosely dump PCI config space
+#options DDB_KEYCODE=0x40
+options USERCONF # userconf(4) support
+#options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
+#options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
+options NO_POWERSAVE # uncomment this to run under ICE
+
+# Development and Debugging options
+#options PERFCTRS # performance counters
+options DIAGNOSTIC # internally consistency checks
+#options DEBUG
+#options KMEMSTATS # kernel memory statistics (vmstat -m)
+options DDB # in-kernel debugger
+options DDB_ONPANIC=1 # see also sysctl(8): `ddb.onpanic'
+options DDB_HISTORY_SIZE=100 # Enable history editing in DDB
+options DDB_VERBOSE_HELP
+#options LOCKDEBUG
+#options PMAP_DEBUG # Enable pmap_debug_level code
+#options IPKDB # remote kernel debugging
+options VERBOSE_INIT_ARM # verbose bootstraping messages
+makeoptions DEBUG="-g -O2" # compile full symbol table
+#options SYSCALL_STATS # per syscall counts
+#options SYSCALL_TIMES # per syscall times
+#options SYSCALL_TIMES_HASCOUNTER # use 'broken' rdtsc (soekris)
+#options SCSIPI_DEBUG
+#options SCSIPI_DEBUG_TYPE=SCSIPI_BUSTYPE_SCSI
+#options SCSIPI_DEBUG_TARGET=0
+#options SCSIPI_DEBUG_LUN=0
+
+# Kernel root file system and dump configuration.
+config netbsd root on ? type ?
+
+# The main bus device
+mainbus0 at root
+
+# The boot cpu
+cpu0 at mainbus?
+
+# Devices
+# On-chip
+# On-chip bus
+axi0 at mainbus?
+
+# Interrupt Cotroller
+tzic0 at axi? addr 0xe0000000 size 0x4000 irqbase 0
+
+# Serial
+imxuart0 at axi? addr 0x73fbc000 irq 31 # UART1
+#imxuart1 at axi? addr 0x73fc0000 irq 32
+#imxuart2 at axi? addr 0x7000c000 irq 33
+options IMXUARTCONSOLE
+
+# Enhanced Periodic Interrupt Timer
+imxclock0 at axi? addr 0x73fac000 size 0x4000 irq 40
+imxclock1 at axi? addr 0x73fb0000 size 0x4000 irq 41
+
+# Pseudo-Devices
+
+pseudo-device crypto # /dev/crypto device
+pseudo-device swcrypto # software crypto implementation
+
+# disk/mass storage pseudo-devices
+#pseudo-device md 1 # memory disk device (ramdisk)
+#pseudo-device vnd # disk-like interface to files
+
+# network pseudo-devices
+#pseudo-device bpfilter # Berkeley packet filter
+#pseudo-device ipfilter # IP filter (firewall) and NAT
+pseudo-device loop # network loopback
+pseudo-device ppp # Point-to-Point Protocol
+
+# miscellaneous pseudo-devices
+pseudo-device pty # pseudo-terminals
+pseudo-device rnd # /dev/random and in-kernel generator
+pseudo-device ksyms # /dev/ksyms
+pseudo-device clockctl # NTP clockctl
+
+# wscons pseudo-devices
+pseudo-device wsmux # mouse & keyboard multiplexor
diff -r 5d25df82b32a -r 3f5f2d7abb86 sys/arch/evbarm/conf/NETWALKER_MD
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbarm/conf/NETWALKER_MD Sat Nov 13 07:31:32 2010 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: NETWALKER_MD,v 1.1 2010/11/13 07:31:32 bsh Exp $
+#
+# M2ID -- i.MX51 evaluation board
+#
+
+include "arch/evbarm/conf/NETWALKER"
+
+options MEMORY_DISK_HOOKS # boottime setup of ramdisk
+options MEMORY_DISK_IS_ROOT # use memory disk as root
+options MEMORY_DISK_ROOT_SIZE=8192 # Size in blocks
+options MEMORY_DISK_RBFLAGS=RB_SINGLE # boot in single-user mode
+
+# disk/mass storage pseudo-devices
+pseudo-device md 1
+
diff -r 5d25df82b32a -r 3f5f2d7abb86 sys/arch/evbarm/conf/files.netwalker
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbarm/conf/files.netwalker Sat Nov 13 07:31:32 2010 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: files.netwalker,v 1.1 2010/11/13 07:31:32 bsh Exp $
+#
+# Sharp
+#
+
+file arch/evbarm/netwalker/netwalker_machdep.c
+
+# Kernel boot arguments
+defparam opt_machdep.h BOOT_ARGS
+
+# CPU support and integrated peripherals
+include "arch/arm/imx/files.imx51"
+
diff -r 5d25df82b32a -r 3f5f2d7abb86 sys/arch/evbarm/conf/mk.netwalker
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbarm/conf/mk.netwalker Sat Nov 13 07:31:32 2010 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: mk.netwalker,v 1.1 2010/11/13 07:31:32 bsh Exp $
+
+SYSTEM_FIRST_OBJ= netwalker_start.o
+SYSTEM_FIRST_SFILE= ${THISARM}/netwalker/netwalker_start.S
+
+KERNEL_BASE_PHYS=0x90100000
+KERNEL_BASE_VIRT=0xc0100000
+
+SYSTEM_LD_TAIL_EXTRA+=; \
+ echo ${OBJCOPY} -S -O binary $@ $@.bin; \
+ ${OBJCOPY} -S -O binary $@ $@.bin; \
+ gzip -9nc $@.bin > $@.bin.gz; \
+
+EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.bin@}
diff -r 5d25df82b32a -r 3f5f2d7abb86 sys/arch/evbarm/conf/std.netwalker
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbarm/conf/std.netwalker Sat Nov 13 07:31:32 2010 +0000
@@ -0,0 +1,30 @@
+# $NetBSD: std.netwalker,v 1.1 2010/11/13 07:31:32 bsh Exp $
+#
+# standard NetBSD/evbarm options for Sharp NetWalker
+
+machine evbarm arm
+include "conf/std" # MI standard options
+include "arch/arm/conf/std.arm" # arch standard options
+
+# Pull in i.mx51 config definitions.
+include "arch/evbarm/conf/files.netwalker"
+
+options NETWALKER
+
+options EXEC_ELF32
+options EXEC_SCRIPT
+options KERNEL_BASE_EXT=0xc0000000
+makeoptions CPUFLAGS="-mcpu=arm1136j-s"
+
+# To support easy transit to ../arch/arm/arm32
+options ARM32
+options CORTEX_PMC
+options CORTEX_CCNT_HZ=720000000
+
+makeoptions LOADADDRESS="0x90100000"
+makeoptions BOARDTYPE="netwalker"
+makeoptions BOARDMKFRAG="${THISARM}/conf/mk.netwalker"
+makeoptions CPPFLAGS+="-I$S/../../../include"
+
+options ARM_INTR_IMPL="<arch/arm/imx/imx51_intr.h>"
Home |
Main Index |
Thread Index |
Old Index