Hi Everyone, I'm getting started on porting OpenWRT to the Linksys NAS200 device. In case you're not familiar with it, this is a consumer-grade Network Attached Storage device (not a router), based on the RDC3211 SoC.
So far I have an SVN snapshot of the 8.09 Kamikaze tree, and I added some files to let the NAS200 show up in the menuconfig when you select the RDC as board (nothing worth submitting as a patch, yet). I'm in the process of tweaking the kernel configuration using "make kernel_menuconfig" but I can't seem to bring the SATA controller online. The NAS200 has a SIL 3512 SATA controller which uses the sata_sil driver. I had no trouble bringing it up with a 2.6.27 Gentoo kernel (see http://www.linksysinfo.org/forums/showthread.php?p=341587 for boot log and more info) but with the kernel generated by OpenWRT, it simply doesn't "see" the attached drives: it simply says "SATA link down (SStatus 27272727 SControl 27272727)". Any suggestions, anyone? (Especially Florian to whom I'm very grateful for submitting the RDC patches to the Linux kernel team ;-) Thanks! ===Jac PS It also looks like the USB controllers aren't recognized by the 2.26.24.7 kernel but I'll worry about that later. Boot log follows (sorry for word-wraps); my kernel .config is at http://www.goudsm.it/nas200/openwrt.config +Ethernet eth0: MAC address 00:01:02:03:04:05 IP: 192.168.21.249/255.255.254.0, Gateway: 192.168.20.254 Default server: 0.0.0.0 RedBoot(tm) bootstrap and debug environment [ROM] Non-certified release, version v2_0 - built 10:54:50, Jun 22 2007 Platform: PC (I386) Copyright (C) 2000, 2001, 2002, Red Hat, Inc. RAM: 0x00000000-0x000f0000, 0x000720b0-0x000a0000 available R3210 00:0012 11-01-2006 <press Ctrl+C to enter prompt mode> RedBoot> ^C RedBoot> ip_address -l 192.168.1.7 IP: 192.168.1.7/255.255.254.0, Gateway: 192.168.20.254 Default server: 0.0.0.0 RedBoot> load -r -v -h 192.168.1.112 -m tftp -b 0x400000 kamikaze / Raw file loaded 0x00400000-0x00514f83, assumed entry at 0x00400000 RedBoot> linux -b 0x400000 -l 0x300000 -r 0xfffa00000 -s 0x600000 -c "console=ttyS0,38400 mtdparts=physmap-flash.0:0x1c0000(kernel),0x600000(rootfs),0x20000(config),0x20000(redboot) root=/dev/sda1 init=/bin/sh" mem_size: 2000000 initrd 1a00000 len 600000 Uncompressing Linux Done, booting Linux version 2.6.24.7-NAS200 (j...@coppertoo) (gcc version 4.1.2) #7 Sat Mar 7 21:40:46 MST 2009 BIOS-provided physical RAM map: BIOS-e801: 0000000000000000 - 000000000009f000 (usable) BIOS-e801: 0000000000100000 - 0000000002000000 (usable) 32MB LOWMEM available. Zone PFN ranges: DMA 0 -> 4096 Normal 4096 -> 8192 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0 -> 8192 DMI not present or invalid. Allocating PCI resources starting at 10000000 (gap: 02000000:fe000000) Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128 Kernel command line: console=ttyS0,38400 mtdparts=physmap-flash.0:0x1c0000(kernel),0x600000(rootfs),0x20000(config),0x20000(redboot) root=/dev/sda1 init=/bin/sh init=/etc/preinit Initializing CPU#0 PID hash table entries: 128 (order: 7, 512 bytes) console [ttyS0] enabled Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory: 23116k/32768k available (2033k kernel code, 9264k reserved, 475k data, 140k init, 0k highmem) virtual kernel memory layout: fixmap : 0xffffa000 - 0xfffff000 ( 20 kB) vmalloc : 0xc2800000 - 0xffff8000 ( 983 MB) lowmem : 0xc0000000 - 0xc2000000 ( 32 MB) .init : 0xc0376000 - 0xc0399000 ( 140 kB) .data : 0xc02fc7d9 - 0xc03733dc ( 475 kB) .text : 0xc0100000 - 0xc02fc7d9 (2033 kB) Checking if this processor honours the WP bit even in supervisor mode... Ok. Mount-cache hash table entries: 512 Compat vDSO mapped to ffffe000. CPU: 486 Checking 'hlt' instruction... OK. Freeing SMP alternatives: 0k freed net_namespace: 64 bytes NET: Registered protocol family 16 PCI: Using configuration type 1 Setting up standard PCI resources SCSI subsystem initialized PCI: Probing PCI hardware Time: pit clocksource has been installed. NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 1024 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP reno registered checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd Freeing initrd memory: 6144k freed rdc321x: init success Total HugeTLB memory allocated, 0 VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) squashfs: version 3.0 (2006/03/15) Phillip Lougher Registering mini_fo version $Id$ NTFS driver 2.1.29 [Flags: R/W]. JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. SGI XFS with large block numbers, no debug enabled SGI XFS Quota Management subsystem io scheduler noop registered io scheduler cfq registered (default) Non-volatile memory driver v1.2 Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize <6>r6040: RDC R6040 NAPI net driver,version 0.19 (16Jun2008) r6040: debug 0 eth%d: no parent - using default mac address <6>r6040: RDC R6040 NAPI net driver,version 0.19 (16Jun2008) r6040: debug 0 eth%d: no parent - using default mac address Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx Driver 'sd' needs updating - please use bus_type methods PCI: Enabling device 0000:00:04.0 (0005 -> 0007) sata_sil 0000:00:04.0: cache line size not set. Driver may not function scsi0 : sata_sil scsi1 : sata_sil ata1: SATA max UDMA/100 mmio m...@0x10080000 tf 0x10080080 irq 9 ata2: SATA max UDMA/100 mmio m...@0x10080000 tf 0x100800c0 irq 9 ata1: SATA link down (SStatus 27272727 SControl 27272727) ata2: SATA link down (SStatus 27272727 SControl 27272727) flash device: 800000 at ff800000 RDC3210 Flash: Found 1 x16 devices at 0x0 in 16-bit bank Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Using buffer write method cfi_cmdset_0001: Erase suspend on write enabled Invalid MAGIC for Firmware Image!!! Registered led device: rdc321x:dmz nf_conntrack version 0.5.0 (1024 buckets, 4096 max) TCP vegas registered NET: Registered protocol family 1 NET: Registered protocol family 17 802.1Q VLAN Support v1.8 Ben Greear <[email protected]> All bugs added by David S. Miller <[email protected]> Using IPI Shortcut mode RAMDISK: Couldn't find valid RAM disk image starting at 0. VFS: Cannot open root device "sda1" or unknown-block(0,0) Please append a correct "root=" boot option; here are the available partitions: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) _______________________________________________ openwrt-devel mailing list [email protected] http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
