Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbmips Bring forward from matt-nb5-mips64. Suppor...



details:   https://anonhg.NetBSD.org/src/rev/ca31374801e9
branches:  trunk
changeset: 767733:ca31374801e9
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jul 28 15:50:13 2011 +0000

description:
Bring forward from matt-nb5-mips64.  Support for Ralink RT3883 MIPS 74K SoC
from CradlePoint Technology.

diffstat:

 sys/arch/evbmips/conf/CPMBR1400         |  239 +++++++++++++++++++++
 sys/arch/evbmips/conf/INSTALL_CPMBR1400 |   24 ++
 sys/arch/evbmips/conf/files.rasoc       |   55 ++++
 sys/arch/evbmips/conf/std.rasoc         |   20 +
 sys/arch/evbmips/rasoc/autoconf.c       |   68 ++++++
 sys/arch/evbmips/rasoc/console.c        |  172 +++++++++++++++
 sys/arch/evbmips/rasoc/machdep.c        |  357 ++++++++++++++++++++++++++++++++
 7 files changed, 935 insertions(+), 0 deletions(-)

diffs (truncated from 963 to 300 lines):

diff -r 94a52a11cfb4 -r ca31374801e9 sys/arch/evbmips/conf/CPMBR1400
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbmips/conf/CPMBR1400   Thu Jul 28 15:50:13 2011 +0000
@@ -0,0 +1,239 @@
+include                "arch/evbmips/conf/std.rasoc"
+
+options        SYMTAB_SPACE=450000             # size for embedded symbol table
+
+options        RT3883
+options        RTNORFLASH
+options        RTMEMSIZE=128
+#options       SLICKROCK
+options        RALINK_ETH_NUM_SW_PARTITIONS=5
+options        CONSPEED=57600
+#options       SYSCALL_DEBUG
+
+maxusers       8
+
+# Size reduction options
+#options       VNODE_OP_NOINLINE
+#options       PIPE_SOCKETPAIR # smaller, but slower pipe(2)
+#options       SOSEND_NO_LOAN
+
+# Standard system options
+
+options        INSECURE        # disable kernel security levels - X needs this
+
+options        RTC_OFFSET=0    # hardware clock is this many mins. west of GMT
+options        NTP             # NTP phase/frequency locked loop
+
+#options       KTRACE          # system call tracing via ktrace(1)
+
+#options       SYSVMSG         # System V-like message queues
+#options       SYSVSEM         # System V-like semaphores
+#options       SYSVSHM         # System V-like memory sharing
+#options       SHMMAXPGS=2048  # 2048 pages is the default
+#options       P1003_1B_SEMAPHORE # p1003.1b semaphore support
+
+#options       NMBCLUSTERS=1024
+#options       MCLSHIFT=12 # 4k mbuf clusters (increases pool max's to 4k as well)
+
+#options       USERCONF        # userconf(4) support
+#options       SYSCTL_INCLUDE_DESCR    # Include sysctl descriptions in kernel
+
+# Diagnostic/debugging support options
+options        DIAGNOSTIC      # expensive kernel consistency checks
+#options       LOCKDEBUG
+#options       KSTACK_CHECK_MAGIC
+options        DEBUG           # expensive debugging checks/support
+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=512    # enable history editing in DDB
+#options       DDB_COMMANDONENTER="w/b 0x90000128 0 ; bt"      # disable watchdog & drop history on enter
+#options       KGDB            # remote debugger
+#options       KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x2f8,KGDB_DEVRATE=9600
+#makeoptions   DEBUG="-g2"     # compile full symbol table
+#makeoptions   COPTS="-Os"     # Optimise for space.
+
+#makeoptions PROF="-p"         # build profiling in 
+#options       GPROF
+
+# Compatibility options
+#options       COMPAT_NOMID    # NetBSD 0.8, 386BSD, and BSDI
+#options       COMPAT_09       # NetBSD 0.9
+#options       COMPAT_10       # NetBSD 1.0
+#options       COMPAT_11       # NetBSD 1.1
+#options       COMPAT_12       # NetBSD 1.2, 386BSD, and BSDI
+#options       COMPAT_13       # NetBSD 1.3, 386BSD, and BSDI
+#options       COMPAT_14       # NetBSD 1.4
+#options       COMPAT_15       # NetBSD 1.5
+#options       COMPAT_16       # NetBSD 1.6
+#options       COMPAT_20       # NetBSD 2.0
+#options       COMPAT_30       # NetBSD 3.0 compatibility.
+#options       COMPAT_40       # NetBSD 4.0
+options        COMPAT_50       # NetBSD 5.0 compatibility.
+#options       COMPAT_43       # 4.3BSD, 386BSD, and BSDI
+#options       COMPAT_386BSD_MBRPART # recognize old partition ID
+#options       TCP_COMPAT_42   # 4.2BSD TCP/IP bug compat. Not recommended.
+
+#options       COMPAT_SVR4     # binary compatibility with SVR4
+#options       COMPAT_IBCS2    # binary compatibility with SCO and ISC
+#options       COMPAT_LINUX    # binary compatibility with Linux
+#options       COMPAT_FREEBSD  # binary compatibility with FreeBSD
+#options       COMPAT_BSDPTY   # /dev/[pt]ty?? ptys.
+
+# File systems
+file-system    FFS             # UFS
+#file-system   EXT2FS          # second extended file system (linux)
+#file-system   LFS             # log-structured file system
+file-system    MFS             # memory file system
+file-system    NFS             # Network File System client
+#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   UMAPFS          # NULLFS + uid and gid remapping
+#file-system   UNION           # union file system
+#file-system   SMBFS           # experimental - CIFS; also needs nsmb (below)
+#file-system   PTYFS           # /dev/pts/N support
+file-system    TMPFS           # Efficient memory file-system
+
+# File system options
+#options       QUOTA           # UFS quotas
+#options       FFS_EI          # FFS Endian Independant support
+#options       NFSSERVER       # Network File System server
+options        FFS_NO_SNAPSHOT # No FF snapshot support
+#options       EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and immutable) behave as system flags.
+
+# Networking options
+options        GATEWAY         # packet forwarding
+options        INET            # IP + ICMP + TCP + UDP
+options        MROUTING        # IP multicast routing
+#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       PIM             # Protocol Independent Multicast
+#options       ISO,TPIP        # OSI
+#options       EON             # OSI tunneling over IP
+#options       NETATALK        # AppleTalk networking protocols
+#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        PFIL_HOOKS      # pfil(9) packet filter hooks
+#options       IPFILTER_LOG    # ipmon(8) log support
+#options       IPFILTER_LOOKUP # ippool(8) support
+#options       IPFILTER_DEFAULT_BLOCK  # block all packets by default
+#options       TCP_DEBUG       # Record last TCP_NDEBUG packets with SO_DEBUG
+
+#options       ALTQ            # Manipulate network interfaces' output queues
+#options       ALTQ_BLUE       # Stochastic Fair Blue
+#options       ALTQ_CBQ        # Class-Based Queueing
+#options       ALTQ_CDNR       # Diffserv Traffic Conditioner
+#options       ALTQ_FIFOQ      # First-In First-Out Queue
+#options       ALTQ_FLOWVALVE  # RED/flow-valve (red-penalty-box)
+#options       ALTQ_HFSC       # Hierarchical Fair Service Curve
+#options       ALTQ_LOCALQ     # Local queueing discipline
+#options       ALTQ_PRIQ       # Priority Queueing
+#options       ALTQ_RED        # Random Early Detection
+#options       ALTQ_RIO        # RED with IN/OUT
+#options       ALTQ_WFQ        # Weighted Fair Queueing
+
+# These options enable verbose messages for several subsystems.
+# Warning, these may compile large string tables into the kernel!
+#options       EISAVERBOSE     # verbose EISA device autoconfig messages
+#options       PCIVERBOSE      # verbose PCI device autoconfig messages
+#options       PCI_CONFIG_DUMP # verbosely dump PCI config space
+#options       PCMCIAVERBOSE   # verbose PCMCIA configuration messages
+#options       SCSIVERBOSE     # human readable SCSI error messages
+#options       USBVERBOSE      # verbose USB device autoconfig messages
+
+# Options for necessary to use MD
+#options       MEMORY_DISK_HOOKS
+#options       MEMORY_DISK_IS_ROOT             # force root on memory disk
+#options       MEMORY_DISK_SERVER=0            # no userspace memory disk support
+#options       MEMORY_DISK_ROOT_SIZE=8192      # embed the FS into the system for now
+#options       MEMORY_RBFLAGS=0                # keep the kernel from forcing single user mode
+
+# Options for NFS root boot
+options        NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM,NFS_BOOT_STATIC
+#options       NFS_BOOTSTATIC_MYIP="\"192.168.0.1\""
+#options       NFS_BOOTSTATIC_GWIP="\"192.168.0.1\""
+#options       NFS_BOOTSTATIC_MASK="\"255.255.255.0\""
+#options       NFS_BOOTSTATIC_SERVADDR="\"192.168.0.5\""
+#options       NFS_BOOTSTATIC_SERVER="\"192.168.0.5:/home/andersen/nfs/mbr1400\""
+
+# Need more mbufs for IPsec VPN
+#options       NMBCLUSTERS=4096
+
+# rt3052 dev board root on embedded NFS mount disk
+config         netbsd root on ? type ?
+config         netbsd-sd0a root on sd0a type ffs dumps none
+config         netbsd-reth0 root on reth0 type nfs dumps none
+
+mainbus0       at root
+cpu0           at mainbus?
+com0           at mainbus?
+reth*          at mainbus?
+rwdog0                 at mainbus?
+options        RA_WDOG_DEFAULT_PERIOD=-30
+#options       RA_WDOG_DEFAULT_MODE=WDOG_MODE_DISARMED
+options        RA_WDOG_DEFAULT_MODE=WDOG_MODE_KTICKLE
+
+# USB support on rusb0
+ehci*          at mainbus?
+usb*           at ehci?
+
+# USB support on rusb0
+ohci*          at mainbus?
+usb*           at ohci?
+
+# GPIO support
+rgpio0         at mainbus?
+gpio*          at rgpio?
+
+# I2C support
+ri2c0          at mainbus?
+iic*           at ri2c?
+
+# USB Hubs
+uhub*          at usb?
+uhub*          at uhub? port ?
+
+# USB Mass Storage
+umass*         at uhub? port ?
+scsibus*       at scsi?
+sd*            at scsibus? target ? lun ?
+
+# USB Ethernet adapters
+#aue*          at uhub? port ?         # ADMtek AN986 Pegasus based adapters
+#axe*          at uhub? port ?         # ASIX AX88172 10/100 based adapters
+
+# USB Generic driver
+ugen*          at uhub? port ?
+
+# PHY Support
+ukphy*         at mii? phy ?           # generic unknown PHYs
+#arphy*                at mii? phy ?           # Atheros AR8316 switch
+
+# Pseudo-Devices
+
+# disk/mass storage pseudo-devices
+
+# network pseudo-devices
+pseudo-device  bpfilter                # Berkeley packet filter
+pseudo-device  bridge                  # simple inter-network bridging
+pseudo-device  loop                    # network loopback
+pseudo-device  tap                     # virtual Ethernet
+pseudo-device  pf                      # PF packet filter
+pseudo-device  pflog                   # PF log if
+pseudo-device  pppoe                   # PPPoE protocol
+pseudo-device  vlan                    # 802.1q
+
+# miscellaneous pseudo-devices
+pseudo-device  pty                     # pseudo-terminals
+pseudo-device  rnd                     # /dev/random - in-kernel generator
+pseudo-device  clockctl                # /dev/clockctl - user control of clock subsystem
+pseudo-device  ksyms                   # /dev/ksyms - kernel symbols
diff -r 94a52a11cfb4 -r ca31374801e9 sys/arch/evbmips/conf/INSTALL_CPMBR1400
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbmips/conf/INSTALL_CPMBR1400   Thu Jul 28 15:50:13 2011 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: INSTALL_CPMBR1400,v 1.2 2011/07/28 15:50:13 matt Exp $
+
+include                "arch/evbmips/conf/CPMBR1400"
+
+#ident                 "INSTALL_MALTA-$Revision: 1.2 $"
+
+# Enable the hooks used for initializing the root memory-disk.
+#     The ramdisk size must be kept in sync manually with the size of
+#     the `ramdisk' image (which is built in distrib/evbmips/ramdisk/ramdisk).
+pseudo-device  md                              # memory disk device
+options        MEMORY_DISK_HOOKS
+options        MEMORY_DISK_IS_ROOT             # force root on memory disk
+options        MEMORY_DISK_SERVER=0            # no userspace memory disk
+options        MEMORY_DISK_ROOT_SIZE=12288     # size of memory disk, in blocks
+
+#options       UVMHIST
+#options       UVMHIST_PRINT
+makeoptions    DEBUG="-g"
+makeoptions    NEED_MDSETIMAGE=yes
+#makeoptions   NEED_UBOOTIMAGE=yes
+no config      netbsd-sd0a
+no config      netbsd-reth0
+
+no options     VMSWAP
diff -r 94a52a11cfb4 -r ca31374801e9 sys/arch/evbmips/conf/files.rasoc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbmips/conf/files.rasoc Thu Jul 28 15:50:13 2011 +0000
@@ -0,0 +1,55 @@
+#      $NetBSD: files.rasoc,v 1.2 2011/07/28 15:50:13 matt Exp $
+
+file   arch/mips/mips/bus_dma.c
+file   arch/mips/mips/mips3_clock.c
+file   arch/mips/mips/mips3_clockintr.c
+
+#file  arch/evbmips/evbmips/disksubr.c
+file   kern/subr_disk_mbr.c                    disk
+file   arch/evbmips/evbmips/interrupt.c
+
+file   arch/evbmips/rasoc/autoconf.c
+file   arch/evbmips/rasoc/machdep.c
+file   arch/evbmips/rasoc/console.c
+
+# System bus
+device mainbus { }
+attach mainbus at root
+file   arch/mips/ralink/ralink_mainbus.c       mainbus
+
+device cpu
+attach cpu at mainbus
+file   arch/evbmips/evbmips/cpu.c              cpu
+
+# Machine-independent I2O drivers.
+include "dev/i2o/files.i2o"



Home | Main Index | Thread Index | Old Index