2007-04-03 22:06:31 +04:00
|
|
|
# $NetBSD: ADM5120,v 1.2 2007/04/03 18:06:31 dyoung Exp $
|
Add a port to the Infineon ADM5120.
Basics: the ADM5120 is a 175 MHz MIPS32 4Kc processor featuring a
6-port ethernet 10/100 switch with Auto MDI/X, a PCI controller,
USB 1.1 controller, UART, watchdog timer, eight GPIO pins, and a
multiport memory controller with both NOR and NAND flash support.
This code supports most of the devices on the ADM5120, including
the 6-port switch (each port attaches as an ethernet, admsw0 through
admsw5), the PCI controller, USB controller, GPIO, watchdog, and
UART.
Remaining work: the port includes no NOR/NAND flash drivers. No
bootloader is included. I have only tested the PCI bus driver with
the use of one PCI slot on the RouterBOARD 153. It is not possible
to exploit the capabilities of the ethernet switch using bridge(4).
I have only netbooted the ADM5120 on the RB153. Booting other
boards, and booting from flash memory, remains to be done.
Hardware availability: many low-cost routers, including the
RouterBOARD 100 series at RouterBOARD.com, use the Infineon ADM5120
processor.
Credits: Ruslan Ermilov and Vsevolod Lobko ported to the ADM5120,
and they wrote device drivers for the UART, USB controller, and
10/100 switch. Matt Isaacs brought the port up-to-date with
NetBSD-current, made it compile, and ran it first on the RB153.
I added drivers for the PCI controller, GPIO, and watchdog timer.
I produced the bus attachment for the CompactFlash slot with advice
from Mikrotik technical support and from Matt Thomas.
2007-03-20 11:52:00 +03:00
|
|
|
#
|
|
|
|
# Kernel config for the Alchemy Semiconductor (AMD) PB1000, PB1500,
|
|
|
|
# DBAu1000 and DBAu1500 evaluation boards.
|
|
|
|
|
|
|
|
include "arch/evbmips/conf/std.adm5120"
|
|
|
|
|
2007-04-03 22:06:31 +04:00
|
|
|
#ident "GENERIC-$Revision: 1.2 $"
|
Add a port to the Infineon ADM5120.
Basics: the ADM5120 is a 175 MHz MIPS32 4Kc processor featuring a
6-port ethernet 10/100 switch with Auto MDI/X, a PCI controller,
USB 1.1 controller, UART, watchdog timer, eight GPIO pins, and a
multiport memory controller with both NOR and NAND flash support.
This code supports most of the devices on the ADM5120, including
the 6-port switch (each port attaches as an ethernet, admsw0 through
admsw5), the PCI controller, USB controller, GPIO, watchdog, and
UART.
Remaining work: the port includes no NOR/NAND flash drivers. No
bootloader is included. I have only tested the PCI bus driver with
the use of one PCI slot on the RouterBOARD 153. It is not possible
to exploit the capabilities of the ethernet switch using bridge(4).
I have only netbooted the ADM5120 on the RB153. Booting other
boards, and booting from flash memory, remains to be done.
Hardware availability: many low-cost routers, including the
RouterBOARD 100 series at RouterBOARD.com, use the Infineon ADM5120
processor.
Credits: Ruslan Ermilov and Vsevolod Lobko ported to the ADM5120,
and they wrote device drivers for the UART, USB controller, and
10/100 switch. Matt Isaacs brought the port up-to-date with
NetBSD-current, made it compile, and ran it first on the RB153.
I added drivers for the PCI controller, GPIO, and watchdog timer.
I produced the bus attachment for the CompactFlash slot with advice
from Mikrotik technical support and from Matt Thomas.
2007-03-20 11:52:00 +03:00
|
|
|
|
|
|
|
maxusers 32
|
|
|
|
|
|
|
|
options MIPS32
|
|
|
|
options NOFPU # No FPU
|
|
|
|
options SOFTFLOAT # emulate FPU insn
|
|
|
|
#options CONSPEED=115200 # YAMON default
|
|
|
|
options HZ=512 # for profiling
|
|
|
|
options MEMSIZE="(16*1024*1024)"
|
|
|
|
|
|
|
|
#options LOCKDEBUG
|
|
|
|
options SOSEND_LOAN
|
|
|
|
options SOSEND_COUNTERS
|
|
|
|
options INET_CSUM_COUNTERS
|
|
|
|
options TCP_CSUM_COUNTERS
|
|
|
|
options UDP_CSUM_COUNTERS
|
|
|
|
options TCP_OUTPUT_COUNTERS
|
|
|
|
|
|
|
|
#options NTP # network time protocol
|
|
|
|
|
|
|
|
# Debugging options
|
|
|
|
options DIAGNOSTIC # extra kernel sanity checking
|
|
|
|
options DEBUG # extra kernel debugging support
|
|
|
|
options KMEMSTATS # kernel memory statistics (vmstat -m)
|
|
|
|
options DDB # kernel dynamic debugger
|
|
|
|
options DDB_HISTORY_SIZE=100 # enable history editing in DDB
|
|
|
|
makeoptions DEBUG="-g" # compile full symbol table
|
|
|
|
makeoptions CPUFLAGS="-march=4kc"
|
|
|
|
options SYMTAB_SPACE=180000 # size for embedded symbol table
|
|
|
|
|
|
|
|
#options MEMORY_DISK_HOOKS
|
|
|
|
#options MEMORY_DISK_IS_ROOT # Force root on ram-disk
|
|
|
|
#options MEMORY_DISK_ROOT_SIZE=16384 # 2 Megabytes
|
|
|
|
|
|
|
|
# Compatibility options
|
|
|
|
#options COMPAT_43 # compatibility with 4.3BSD binaries
|
|
|
|
#options COMPAT_09 # NetBSD 0.9 binary compatibility
|
|
|
|
#options COMPAT_10 # NetBSD 1.0 binary compatibility
|
|
|
|
#options COMPAT_11 # NetBSD 1.1 binary compatibility
|
|
|
|
#options COMPAT_12 # NetBSD 1.2 binary compatibility
|
|
|
|
#options COMPAT_13 # NetBSD 1.3 binary compatibility
|
|
|
|
#options COMPAT_14 # NetBSD 1.4 binary compatibility
|
|
|
|
#options COMPAT_16 # NetBSD 1.6 binary compatibility
|
|
|
|
#options COMPAT_20 # NetBSD 2.0 binary compatibility
|
|
|
|
#options COMPAT_30 # NetBSD 3.0 binary compatibility
|
|
|
|
#options EXEC_ECOFF # exec ECOFF binaries
|
|
|
|
#options COMPAT_ULTRIX # binary compatibility with Ultrix
|
|
|
|
|
|
|
|
# File systems
|
|
|
|
file-system FFS # Berkeley Fast Filesystem
|
|
|
|
#file-system MFS # memory-based filesystem
|
|
|
|
#file-system EXT2FS # second extended file system (linux)
|
|
|
|
file-system NFS # Sun NFS-compatible filesystem client
|
|
|
|
#file-system KERNFS # kernel data-structure filesystem
|
|
|
|
#file-system NULLFS # NULL layered filesystem
|
|
|
|
#file-system OVERLAY # overlay file system
|
|
|
|
#file-system FDESC # user file descriptor filesystem
|
|
|
|
#file-system UMAPFS # uid/gid remapping filesystem
|
|
|
|
#file-system LFS # Log-based filesystem (still experimental)
|
|
|
|
#file-system PORTAL # portal filesystem (still experimental)
|
|
|
|
#file-system PROCFS # /proc
|
|
|
|
#file-system CD9660 # ISO 9660 + Rock Ridge file system
|
|
|
|
#file-system UNION # union file system
|
|
|
|
#file-system MSDOSFS # MS-DOS FAT filesystem(s).
|
|
|
|
#file-system CODA # Coda File System; also needs vcoda (below)
|
|
|
|
|
|
|
|
# File system options
|
|
|
|
#options NFSSERVER # Sun NFS-compatible filesystem server
|
|
|
|
#options QUOTA # FFS quotas
|
|
|
|
#options FFS_EI # FFS Endian Independant support
|
|
|
|
#options SOFTDEP # FFS soft updates support.
|
|
|
|
#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
|
|
|
|
# immutable) behave as system flags.
|
|
|
|
|
|
|
|
# Networking options
|
|
|
|
options GATEWAY # IP packet forwarding
|
|
|
|
options INET # Internet protocols
|
|
|
|
#options INET6 # IPV6
|
|
|
|
#options IPSEC # IP security
|
|
|
|
#options IPSEC_ESP # IP security (encryption part; define w/IPSEC)
|
|
|
|
#options IPSEC_DEBUG # debug for IP security
|
|
|
|
#options MROUTING # packet forwarding of multicast packets
|
|
|
|
#options NS # Xerox NS networking
|
|
|
|
#options NSIP # Xerox NS tunneling over IP
|
|
|
|
#options ISO,TPIP # OSI networking
|
|
|
|
#options EON # OSI tunneling over IP
|
|
|
|
#options CCITT,LLC,HDLC # X.25
|
|
|
|
#options NETATALK # AppleTalk (over Ethernet) protocol
|
|
|
|
#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
|
|
|
|
|
|
|
|
# Compatibility with 4.2BSD implementation of TCP/IP. Not recommended.
|
|
|
|
#options TCP_COMPAT_42
|
|
|
|
|
|
|
|
# These options enable verbose messages for several subsystems.
|
|
|
|
# Warning, these may compile large string tables into the kernel!
|
|
|
|
#options MIIVERBOSE # verbose PHY autoconfig messages
|
|
|
|
#options PCIVERBOSE # verbose PCI device autoconfig messages
|
|
|
|
#options PCI_CONFIG_DUMP # verbosely dump PCI config space
|
|
|
|
#options SCSIVERBOSE # human readable SCSI error messages
|
|
|
|
#options USBVERBOSE # verbose USB device autoconfig messages
|
|
|
|
|
|
|
|
options NFS_BOOT_DHCP
|
|
|
|
|
|
|
|
# Pretty much only one device to use for the root file system.
|
|
|
|
config netbsd root on ? type ?
|
|
|
|
|
|
|
|
mainbus0 at root
|
|
|
|
|
|
|
|
cpu0 at mainbus?
|
|
|
|
|
|
|
|
# Network pseudo-devices
|
|
|
|
pseudo-device bpfilter 8 # Berkeley packet filter
|
|
|
|
pseudo-device loop # network loopback
|
|
|
|
#pseudo-device ppp 2 # Point-to-Point Protocol
|
|
|
|
#pseudo-device sl 2 # Serial Line IP
|
|
|
|
#pseudo-device strip 2 # Starmode Radio IP (Metricom)
|
|
|
|
#pseudo-device tun 2 # network tunneling over tty
|
|
|
|
#pseudo-device gre 2 # generic L3 over IP tunnel
|
|
|
|
#pseudo-device ipip 2 # RFC 2003 IP Encapsulation
|
|
|
|
#pseudo-device gif # RFC1933 tunnel
|
|
|
|
#pseudo-device faith 1 # IPv[46] tcp relay translation
|
|
|
|
# Miscellaneous pseudo-devices
|
|
|
|
pseudo-device pty # pseudo-terminals
|
|
|
|
#pseudo-device sequencer 1 # MIDI sequencer
|
|
|
|
pseudo-device rnd # /dev/random & kernel generator
|
|
|
|
|
|
|
|
# A pseudo device needed for Coda # also needs CODA (above)
|
|
|
|
#pseudo-device vcoda 4 # coda minicache <-> venus comm.
|
|
|
|
pseudo-device ksyms
|
|
|
|
|
|
|
|
obio* at mainbus?
|
2007-04-03 22:06:31 +04:00
|
|
|
gpio* at mainbus?
|
|
|
|
extio* at mainbus?
|
Add a port to the Infineon ADM5120.
Basics: the ADM5120 is a 175 MHz MIPS32 4Kc processor featuring a
6-port ethernet 10/100 switch with Auto MDI/X, a PCI controller,
USB 1.1 controller, UART, watchdog timer, eight GPIO pins, and a
multiport memory controller with both NOR and NAND flash support.
This code supports most of the devices on the ADM5120, including
the 6-port switch (each port attaches as an ethernet, admsw0 through
admsw5), the PCI controller, USB controller, GPIO, watchdog, and
UART.
Remaining work: the port includes no NOR/NAND flash drivers. No
bootloader is included. I have only tested the PCI bus driver with
the use of one PCI slot on the RouterBOARD 153. It is not possible
to exploit the capabilities of the ethernet switch using bridge(4).
I have only netbooted the ADM5120 on the RB153. Booting other
boards, and booting from flash memory, remains to be done.
Hardware availability: many low-cost routers, including the
RouterBOARD 100 series at RouterBOARD.com, use the Infineon ADM5120
processor.
Credits: Ruslan Ermilov and Vsevolod Lobko ported to the ADM5120,
and they wrote device drivers for the UART, USB controller, and
10/100 switch. Matt Isaacs brought the port up-to-date with
NetBSD-current, made it compile, and ran it first on the RB153.
I added drivers for the PCI controller, GPIO, and watchdog timer.
I produced the bus attachment for the CompactFlash slot with advice
from Mikrotik technical support and from Matt Thomas.
2007-03-20 11:52:00 +03:00
|
|
|
uart* at obio? addr ?
|
|
|
|
admsw* at obio? addr ?
|
2007-04-03 22:06:31 +04:00
|
|
|
#admflash* at obio? addr ?
|
|
|
|
#options VND_COMPRESSION
|