#18046: ramips: dir-610-a1 does not boot: Unable to mount root fs
---------------------+-----------------------------------
 Reporter:  linux@…  |      Owner:  developers
     Type:  defect   |     Status:  new
 Priority:  normal   |  Milestone:
Component:  kernel   |    Version:  Barrier Breaker 14.07
 Keywords:           |
---------------------+-----------------------------------
 Trying to get OpenWrt working on DIR-600 B6 (should be same HW sa DIR-600
 B5 and DIR-610 A1).

 This old build works, even LEDs are OK:
 https://forum.openwrt.org/viewtopic.php?id=49396
 {{{
 [    0.000000] Linux version 3.10.32 (iks@Serber) (gcc version 4.6.4
 (OpenWrt/Linaro GCC 4.6-2013.05 r39841) ) #4 Sat Mar 8 15:42:27 CET 2014
 [    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
 [    0.000000] bootconsole [early0] enabled
 [    0.000000] CPU revision is: 0001964c (MIPS 24KEc)
 [    0.000000] MIPS: machine is D-Link DIR-610 A1
 [    0.000000] Determined physical RAM map:
 [    0.000000]  memory: 02000000 @ 00000000 (usable)
 [    0.000000] Initrd not found or empty - disabling initrd
 [    0.000000] Zone ranges:
 [    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
 [    0.000000] Movable zone start for each node
 [    0.000000] Early memory node ranges
 [    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
 [    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: 8128
 [    0.000000] Kernel command line: console=ttyS0,57600
 rootfstype=squashfs,jffs2
 [    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
 [    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384
 bytes)
 [    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
 [    0.000000] Writing ErrCtl register=00064240
 [    0.000000] Readback ErrCtl register=00064240
 [    0.000000] Memory: 29416k/32768k available (2124k kernel code, 3352k
 reserved, 530k data, 160k init, 0k highmem)
 [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
 [    0.000000] NR_IRQS:128
 [    0.000000] CPU Clock: 360MHz
 [    0.000000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
 [    0.070000] pid_max: default: 32768 minimum: 301
 [    0.070000] Mount-cache hash table entries: 512
 [    0.080000] pinctrl core: initialized pinctrl subsystem
 [    0.090000] NET: Registered protocol family 16
 [    0.130000] bio: create slab <bio-0> at 0
 [    0.140000] rt2880_gpio 10000600.gpio: registering 24 gpios
 [    0.150000] rt2880_gpio 10000600.gpio: registering 24 irq handlers
 [    0.160000] Switching to clocksource MIPS
 [    0.170000] NET: Registered protocol family 2
 [    0.180000] TCP established hash table entries: 512 (order: 0, 4096
 bytes)
 [    0.200000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
 [    0.210000] TCP: Hash tables configured (established 512 bind 512)
 [    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.260000] rt-timer 10000100.timer: maximum frequncy is 7324Hz
 [    0.310000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
 [    0.320000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME)
 (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
 [    0.350000] msgmni has been set to 57
 [    0.350000] io scheduler noop registered
 [    0.360000] io scheduler deadline registered (default)
 [    0.370000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
 [    0.400000] console [ttyS0] enabled, bootconsole disabledirq = 20) is a
 16550A
 [    0.400000] console [ttyS0] enabled, bootconsole disabled
 [    0.440000] m25p80 spi32766.0: found mx25l3205d, expected f25l32pa
 [    0.450000] m25p80 spi32766.0: mx25l3205d (4096 Kbytes)
 [    0.460000] 4 ofpart partitions found on MTD device spi32766.0
 [    0.470000] Creating 4 MTD partitions on "spi32766.0":
 [    0.480000] 0x000000000000-0x000000030000 : "u-boot"
 [    0.490000] 0x000000030000-0x000000040000 : "devdata"
 [    0.510000] 0x000000040000-0x000000050000 : "factory"
 [    0.520000] 0x000000050000-0x000000400000 : "firmware"
 [    0.540000] 0x00000013d419-0x000000400000 : "rootfs"
 [    0.550000] mtd: partition "rootfs" must either start or end on erase
 block boundary or be smaller than an erase block -- forcing read-only
 [    0.580000] mtd: device 4 (rootfs) set to be root filesystem
 [    0.590000] mtd: partition "rootfs_data" created automatically,
 ofs=0x390000, len=0x70000
 [    0.600000] 0x000000390000-0x000000400000 : "rootfs_data"
 [    0.630000] eth0: done loading
 [    0.640000] rt3xxx-usbphy ubsphy.3: loaded
 [    0.650000] rt2880_wdt 10000120.watchdog: Initialized
 [    0.660000] TCP: cubic registered
 [    0.660000] NET: Registered protocol family 17
 [    0.670000] 8021q: 802.1Q VLAN Support v1.8
 [    0.710000] VFS: Mounted root (squashfs filesystem) readonly on device
 31:4.
 [    0.720000] Freeing unused kernel memory: 160K (80298000 - 802c0000)
 procd: Console is alive

 }}}

 But 14.07 (openwrt-ramips-rt305x-dir-610-a1-squashfs-factory.bin) does not
 boot and ethernet LEDs are inverted (except port 1):
 {{{
 [    0.000000] Linux version 3.10.49 (bb@builder1) (gcc version 4.8.3
 (OpenWrt/Linaro GCC 4.8-2014.04 r42625) ) #3 Wed Oct 1 16:33:08 CEST 2014
 [    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
 [    0.000000] bootconsole [early0] enabled
 [    0.000000] CPU revision is: 0001964c (MIPS 24KEc)
 [    0.000000] MIPS: machine is D-Link DIR-610 A1
 [    0.000000] Determined physical RAM map:
 [    0.000000]  memory: 02000000 @ 00000000 (usable)
 [    0.000000] Initrd not found or empty - disabling initrd
 [    0.000000] Zone ranges:
 [    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
 [    0.000000] Movable zone start for each node
 [    0.000000] Early memory node ranges
 [    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
 [    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: 8128
 [    0.000000] Kernel command line: console=ttyS0,57600
 rootfstype=squashfs,jffs2
 [    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
 [    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384
 bytes)
 [    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
 [    0.000000] Writing ErrCtl register=00044240
 [    0.000000] Readback ErrCtl register=00044240
 [    0.000000] Memory: 29156k/32768k available (2284k kernel code, 3612k
 reserved, 574k data, 212k init, 0k highmem)
 [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
 [    0.000000] NR_IRQS:256
 [    0.000000] CPU Clock: 360MHz
 [    0.000000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
 [    0.070000] pid_max: default: 32768 minimum: 301
 [    0.070000] Mount-cache hash table entries: 512
 [    0.080000] pinctrl core: initialized pinctrl subsystem
 [    0.090000] NET: Registered protocol family 16
 [    0.140000] bio: create slab <bio-0> at 0
 [    0.150000] rt2880_gpio 10000600.gpio: registering 22 gpios
 [    0.160000] rt2880_gpio 10000600.gpio: registering 22 irq handlers
 [    0.170000] Switching to clocksource MIPS
 [    0.180000] NET: Registered protocol family 2
 [    0.190000] TCP established hash table entries: 512 (order: 0, 4096
 bytes)
 [    0.210000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
 [    0.220000] TCP: Hash tables configured (established 512 bind 512)
 [    0.230000] TCP: reno registered
 [    0.240000] UDP hash table entries: 256 (order: 0, 4096 bytes)
 [    0.250000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
 [    0.260000] NET: Registered protocol family 1
 [    0.270000] rt-timer 10000100.timer: maximum frequncy is 7324Hz
 [    0.330000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
 [    0.340000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME)
 (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
 [    0.360000] msgmni has been set to 56
 [    0.370000] io scheduler noop registered
 [    0.380000] io scheduler deadline registered (default)
 [    0.390000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
 [    0.420000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20) is a
 16550A
 [    0.430000] console [ttyS0] enabled, bootconsole disabled
 [    0.430000] console [ttyS0] enabled, bootconsole disabled
 [    0.470000] m25p80 spi32766.0: found mx25l3205d, expected f25l32pa
 [    0.480000] m25p80 spi32766.0: mx25l3205d (4096 Kbytes)
 [    0.490000] 4 ofpart partitions found on MTD device spi32766.0
 [    0.500000] Creating 4 MTD partitions on "spi32766.0":
 [    0.510000] 0x000000000000-0x000000030000 : "u-boot"
 [    0.530000] 0x000000030000-0x000000040000 : "devdata"
 [    0.540000] 0x000000040000-0x000000050000 : "factory"
 [    0.560000] 0x000000050000-0x000000400000 : "firmware"
 [    0.580000] eth0: done loading
 [    0.590000] rt3xxx-usbphy usbphy.3: loaded
 [    0.600000] rt2880_wdt 10000120.watchdog: Initialized
 [    0.610000] TCP: cubic registered
 [    0.620000] NET: Registered protocol family 17
 [    0.630000] Bridge firewalling registered
 [    0.630000] 8021q: 802.1Q VLAN Support v1.8
 [    0.650000] VFS: Cannot open root device "(null)" or unknown-
 block(0,0): error -6
 [    0.660000] Please append a correct "root=" boot option; here are the
 available partitions:
 [    0.680000] 1f00             192 mtdblock0  (driver?)
 [    0.690000] 1f01              64 mtdblock1  (driver?)
 [    0.700000] 1f02              64 mtdblock2  (driver?)
 [    0.710000] 1f03            3776 mtdblock3  (driver?)
 [    0.720000] Kernel panic - not syncing: VFS: Unable to mount root fs on
 unknown-block(0,0)
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/18046>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to