Hello,
I have followed the exact instructions available here http://wiki.openwrt.org/toh/zyxel/nbg419n but somehow it does not work for me. My board is same as mentioned in wiki ( zyxel NBG-419N V2 ) with chipset Rt3352, however, the wiki states "Ralink RT3052" as its chipset. Another difference is flash size, i have 8 mega flash compare to 4 mega mentioned on wiki.
1: Load system code to SDRAM via TFTP.
openwrt-ramips-rt305x-nbg-419n-initramfs-uImage.bin
This works fine.
2: Load system code then write to Flash via TFTP.
openwrt-ramips-rt305x-nbg-419n-squashfs-sysupgrade.bin
Above gives me an error :
[ 0.480000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 0.500000] Please append a correct "root=" boot option; here are the available partitions:
[ 0.510000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
I can see similar issue here https://dev.openwrt.org/ticket/12187 and solution is to get the right size of flash.
Any thoughts how to specify the right flash size? Or is it has to do something with command line arguments.
ali
The original /proc/cmdline
console=ttyS1,57600n8 root=/dev/ram0
# cat /proc/mtd
dev: size erasesize name
mtd0: 00800000 00010000 "ALL"
mtd1: 00030000 00010000 "Bootloader"
mtd2: 00010000 00010000 "Config"
mtd3: 00010000 00010000 "Factory"
mtd4: 007b0000 00010000 "Kernel"
Complete LOG:
## Booting image at bc050000 ...
raspi_read: from:50000 len:40
. Image Name: MIPS OpenWrt Linux-3.6.6
Created: 2012-11-20 6:52:58 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 875089 Bytes = 854.6 kB
Load Address: 80000000
Entry Point: 80000000
raspi_read: from:50040 len:d5a51
.............. Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64
Starting kernel ...
[ 0.000000] Linux version 3.6.6 (root@sawyrezhang-Precision-T1600) (gcc version 4.6.4 20121001 (prerelease) (Linaro GCC 4.6-2012.10) ) #9 Tue Nov 20 14:52:17 HKT 2012
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[ 0.000000] Ralink RT3352 id:1 rev:6 running at 384.00 MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x03ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x03ffffff]
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: board=NBG-419N console=ttyS1,57600 mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),2880k(rootfs),2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] __ex_table already sorted, skipping sort
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 62236k/65536k available (1968k kernel code, 3300k reserved, 344k data, 176k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:48
[ 0.000000] console [ttyS1] enabled, bootconsole disabled
[ 0.000000] console [ttyS1] enabled, bootconsole disabled
[ 0.010000] Calibrating delay loop... 255.59 BogoMIPS (lpj=1277952)
[ 0.090000] pid_max: default: 32768 minimum: 301
[ 0.100000] Mount-cache hash table entries: 512
[ 0.110000] NET: Registered protocol family 16
[ 0.120000] MIPS: machine is ZyXEL NBG-419N
[ 0.150000] bio: create slab <bio-0> at 0
[ 0.160000] Switching to clocksource MIPS
[ 0.170000] NET: Registered protocol family 2
[ 0.180000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.200000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.210000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.220000] TCP: reno registered
[ 0.230000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.240000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.250000] NET: Registered protocol family 1
[ 0.300000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.310000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.330000] msgmni has been set to 121
[ 0.340000] io scheduler noop registered
[ 0.350000] io scheduler deadline registered (default)
[ 0.360000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.370000] serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
[ 0.380000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
[ 0.400000] physmap platform flash device: 00800000 at bf000000
[ 0.420000] physmap-flash physmap-flash.0: map_probe failed
[ 0.440000] ramips-wdt ramips-wdt: timeout value must be 0 < timeout <= 33, using 33
[ 0.460000] TCP: cubic registered
[ 0.460000] NET: Registered protocol family 17
[ 0.470000] 8021q: 802.1Q VLAN Support v1.8
[ 0.480000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 0.500000] Please append a correct "root=" boot option; here are the available partitions:
[ 0.510000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)