Dear all,
I have tried to apply some patches at below mail-list to linux kernel 3.10.
https://lists.openwrt.org/pipermail/ope … 14654.html
And then i flash built image (fdt, kernel & rootfs) on NOR flash of P1020WLAN board.
But it is unable to mount root fs to mtdblock1.
additional, it seems to don't recognize NOR flash.
So anybody, could you tell me what is wrong here??
Could you please follow boot-log that i post below.
Thank you and best regard,
Anh.
---------P1020WLAN boot-log----------------------------------
## Booting kernel from Legacy Image at ee000000 ...
Image Name: Linux-3.10.12
Created: 2013-10-01 9:27:01 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1659585 Bytes = 1.6 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at eff40000
Booting using the fdt blob at 0xeff40000
Uncompressing Kernel Image ... OK
Loading Device Tree to 00ffa000, end 00fffbdd ... OK
[ 0.000000] Using P1020 RDB machine description
[ 0.000000] Memory CAM mapping: 256/256/256 Mb, residual: 256Mb
[ 0.000000] Linux version 3.10.12 (lexuanson07@lexuanson07-VirtualBox) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r38226) ) #3 SMP Tue Oct 1 16:26:58 ICT 2013
[ 0.000000] CPU maps initialized for 1 thread per core
[ 0.000000] bootconsole [udbg0] enabled
setup_arch: bootmem
mpc85xx_rdb_setup_arch()
[ 0.000000] mpc85xx_rdb_setup_arch: Could not find Quicc Engine node
[ 0.000000] MPC85xx RDB board from Freescale Semiconductor
arch: exit
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x00000000-0x2fffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x2fffffff]
[ 0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[ 0.000000] PERCPU: Embedded 7 pages/cpu @c097d000 s6752 r8192 d13728 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 195072
[ 0.000000] Kernel command line: root=/dev/mtdblock1 rw console=ttyS0,115200 init=/etc/preinit cache-sram-size=0x10000
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Sorting __ex_table...
[ 0.000000] Memory: 709924k/786432k available (3208k kernel code, 76508k reserved, 148k data, 187k bss, 168k init)
[ 0.000000] Kernel virtual memory layout:
[ 0.000000] * 0xfffdf000..0xfffff000 : fixmap
[ 0.000000] * 0xfdffd000..0xfe000000 : early ioremap
[ 0.000000] * 0xf1000000..0xfdffd000 : vmalloc & ioremap
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:512 nr_irqs:512 16
[ 0.000000] mpic: Setting up MPIC " OpenPIC " version 1.2 at ffe40000, max 2 CPUs
[ 0.000000] mpic: ISU size: 256, shift: 8, mask: ff
[ 0.000000] mpic: Initializing for 256 sources
[ 0.000000] mpc85xx_rdb_pic_init: Could not find qe-ic node
[ 0.000000] clocksource: timebase mult[14000000] shift[24] registered
[ 0.006394] pid_max: default: 32768 minimum: 301
[ 0.011089] Mount-cache hash table entries: 512
[ 0.017910] mpic: requesting IPIs...
[ 0.022336] Brought up 2 CPUs
[ 0.026202] NET: Registered protocol family 16
[ 0.040051] Found FSL PCI host bridge at 0x00000000ffe09000. Firmware bus number: 0->255
[ 0.048073] PCI host bridge /pcie@ffe09000 (primary) ranges:
[ 0.053704] MEM 0x00000000a0000000..0x00000000bfffffff -> 0x00000000a0000000
[ 0.060904] IO 0x00000000ffc10000..0x00000000ffc1ffff -> 0x0000000000000000
[ 0.068032] /pcie@ffe09000: PCICSRBAR @ 0xfff00000
[ 0.073209] Found FSL PCI host bridge at 0x00000000ffe0a000. Firmware bus number: 0->255
[ 0.081226] PCI host bridge /pcie@ffe0a000 ranges:
[ 0.086078] MEM 0x0000000080000000..0x000000009fffffff -> 0x0000000080000000
[ 0.093279] IO 0x00000000ffc00000..0x00000000ffc0ffff -> 0x0000000000000000
[ 0.100406] /pcie@ffe0a000: PCICSRBAR @ 0xfff00000
[ 0.116852] PCI: Probing PCI hardware
[ 0.120723] fsl-pci ffe09000.pcie: PCI host bridge to bus 0000:00
[ 0.126754] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.132897] pci_bus 0000:00: root bus resource [mem 0xa0000000-0xbfffffff]
[ 0.139753] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.145274] pci 0000:00:00.0: ignoring class 0x0b2000 (doesn't match header type 01)
[ 0.160988] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 0.166438] fsl-pci ffe0a000.pcie: PCI host bridge to bus 0001:02
[ 0.172461] pci_bus 0001:02: root bus resource [io 0x20000-0x2ffff] (bus address [0x0000-0xffff])
[ 0.181387] pci_bus 0001:02: root bus resource [mem 0x80000000-0x9fffffff]
[ 0.188245] pci_bus 0001:02: root bus resource [bus 02-ff]
[ 0.193758] pci 0001:02:00.0: ignoring class 0x0b2000 (doesn't match header type 01)
[ 0.201709] pci 0001:02:00.0: Primary bus is hard wired to 0
[ 0.207297] pci 0001:02:00.0: bridge configuration invalid ([bus 01-01]), reconfiguring
[ 0.223309] pci 0001:02:00.0: PCI bridge to [bus 03-ff]
[ 0.228647] pci 0000:00:00.0: BAR 9: can't assign mem pref (size 0x100000)
[ 0.235448] pci 0000:01:00.0: BAR 6: assigned [mem 0xa0020000-0xa002ffff pref]
[ 0.242641] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.247587] pci 0000:00:00.0: bridge window [io 0x0000-0xffff]
[ 0.253662] pci 0000:00:00.0: bridge window [mem 0xa0000000-0xbfffffff]
[ 0.260436] pci 0001:02:00.0: BAR 9: can't assign mem pref (size 0x100000)
[ 0.267293] pci 0001:03:00.0: BAR 6: assigned [mem 0x80020000-0x8002ffff pref]
[ 0.274494] pci 0001:02:00.0: PCI bridge to [bus 03]
[ 0.279442] pci 0001:02:00.0: bridge window [io 0x20000-0x2ffff]
[ 0.285691] pci 0001:02:00.0: bridge window [mem 0x80000000-0x9fffffff]
[ 0.292458] Some PCI device resources are unassigned, try booting with pci=realloc
[ 0.300017] pci 0000:00:00.0: enabling device (0106 -> 0107)
[ 0.305659] pci 0001:02:00.0: enabling device (0106 -> 0107)
[ 0.315522] bio: create slab <bio-0> at 0
[ 0.321060] Switching to clocksource timebase
[ 0.327281] NET: Registered protocol family 2
[ 0.331908] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.339046] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.345561] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.351910] TCP: reno registered
[ 0.355071] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.360989] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.367526] NET: Registered protocol family 1
[ 0.382336] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.388107] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.398516] msgmni has been set to 1515
[ 0.402426] io scheduler noop registered
[ 0.406276] io scheduler deadline registered (default)
[ 0.473992] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[ 0.481169] serial8250.0: ttyS0 at MMIO 0xffe04500 (irq = 42) is a 16550A
[ 0.487917] console [ttyS0] enabled, bootconsole disabled
[ 0.487917] console [ttyS0] enabled, bootconsole disabled
[ 0.499273] serial8250.0: ttyS1 at MMIO 0xffe04600 (irq = 42) is a 16550A
[ 0.506962] ffe04500.serial: ttyS0 at MMIO 0xffe04500 (irq = 42) is a 16550
[ 0.514576] ffe04600.serial: ttyS1 at MMIO 0xffe04600 (irq = 42) is a 16550
[ 0.522000] Generic RTC Driver v1.07
[ 0.526576] fsl-lbc ffe05000.localbus: failed to get resource
[ 0.532358] fsl,elbc-fcm-nand: probe of nand.0 failed with error -22
[ 0.539333] fsl_espi ffe07000.spi: master is unqueued, this is deprecated
[ 0.546580] m25p80 spi32766.0: found mr25h256, expected s25sl12801
[ 0.552791] m25p80 spi32766.0: mr25h256 (32 Kbytes)
[ 0.557885] 5 ofpart partitions found on MTD device spi32766.0
[ 0.563734] Creating 5 MTD partitions on "spi32766.0":
[ 0.568879] 0x000000000000-0x000000080000 : "u-boot"
[ 0.573847] mtd: partition "u-boot" extends beyond the end of device "spi32766.0" -- size truncated to 0x8000
[ 0.584603] 0x000000080000-0x000000100000 : "dtb"
[ 0.589329] mtd: partition "dtb" is out of reach -- disabled
[ 0.595773] 0x000000100000-0x000000500000 : "kernel"
[ 0.600759] mtd: partition "kernel" is out of reach -- disabled
[ 0.607425] 0x000000500000-0x000000900000 : "file system"
[ 0.612844] mtd: partition "file system" is out of reach -- disabled
[ 0.619950] 0x000000900000-0x000001000000 : "file system jffs2"
[ 0.625891] mtd: partition "file system jffs2" is out of reach -- disabled
[ 0.633564] fsl_espi ffe07000.spi: at 0xf103a000 (irq = 59)
[ 0.640421] libphy: Freescale PowerQUICC MII Bus: probed
[ 0.646848] mdio_bus mdio@ffe24000: cannot get PHY at address 2
[ 0.652972] libphy: Freescale PowerQUICC MII Bus: probed
[ 0.659028] libphy: Freescale PowerQUICC MII Bus: probed
[ 0.666921] fsl-gianfar ethernet.3 eth0: mac: 00:04:9f:02:d1:96
[ 0.672874] fsl-gianfar ethernet.3 eth0: Running with NAPI enabled
[ 0.679061] fsl-gianfar ethernet.3 eth0: RX BD ring size for Q[0]: 256
[ 0.685592] fsl-gianfar ethernet.3 eth0: RX BD ring size for Q[1]: 256
[ 0.692123] fsl-gianfar ethernet.3 eth0: RX BD ring size for Q[2]: 256
[ 0.698654] fsl-gianfar ethernet.3 eth0: RX BD ring size for Q[3]: 256
[ 0.705184] fsl-gianfar ethernet.3 eth0: RX BD ring size for Q[4]: 256
[ 0.711715] fsl-gianfar ethernet.3 eth0: RX BD ring size for Q[5]: 256
[ 0.718246] fsl-gianfar ethernet.3 eth0: RX BD ring size for Q[6]: 256
[ 0.724782] fsl-gianfar ethernet.3 eth0: RX BD ring size for Q[7]: 256
[ 0.731314] fsl-gianfar ethernet.3 eth0: TX BD ring size for Q[0]: 256
[ 0.737846] fsl-gianfar ethernet.3 eth0: TX BD ring size for Q[1]: 256
[ 0.744376] fsl-gianfar ethernet.3 eth0: TX BD ring size for Q[2]: 256
[ 0.750906] fsl-gianfar ethernet.3 eth0: TX BD ring size for Q[3]: 256
[ 0.757437] fsl-gianfar ethernet.3 eth0: TX BD ring size for Q[4]: 256
[ 0.763967] fsl-gianfar ethernet.3 eth0: TX BD ring size for Q[5]: 256
[ 0.770498] fsl-gianfar ethernet.3 eth0: TX BD ring size for Q[6]: 256
[ 0.777028] fsl-gianfar ethernet.3 eth0: TX BD ring size for Q[7]: 256
[ 0.785908] fsl-gianfar ethernet.4 eth1: mac: 00:33:33:33:33:33
[ 0.791858] fsl-gianfar ethernet.4 eth1: Running with NAPI enabled
[ 0.798046] fsl-gianfar ethernet.4 eth1: RX BD ring size for Q[0]: 256
[ 0.804576] fsl-gianfar ethernet.4 eth1: RX BD ring size for Q[1]: 256
[ 0.811107] fsl-gianfar ethernet.4 eth1: RX BD ring size for Q[2]: 256
[ 0.817638] fsl-gianfar ethernet.4 eth1: RX BD ring size for Q[3]: 256
[ 0.824168] fsl-gianfar ethernet.4 eth1: RX BD ring size for Q[4]: 256
[ 0.830699] fsl-gianfar ethernet.4 eth1: RX BD ring size for Q[5]: 256
[ 0.837229] fsl-gianfar ethernet.4 eth1: RX BD ring size for Q[6]: 256
[ 0.843760] fsl-gianfar ethernet.4 eth1: RX BD ring size for Q[7]: 256
[ 0.850291] fsl-gianfar ethernet.4 eth1: TX BD ring size for Q[0]: 256
[ 0.856821] fsl-gianfar ethernet.4 eth1: TX BD ring size for Q[1]: 256
[ 0.863352] fsl-gianfar ethernet.4 eth1: TX BD ring size for Q[2]: 256
[ 0.869883] fsl-gianfar ethernet.4 eth1: TX BD ring size for Q[3]: 256
[ 0.876413] fsl-gianfar ethernet.4 eth1: TX BD ring size for Q[4]: 256
[ 0.882944] fsl-gianfar ethernet.4 eth1: TX BD ring size for Q[5]: 256
[ 0.889475] fsl-gianfar ethernet.4 eth1: TX BD ring size for Q[6]: 256
[ 0.896005] fsl-gianfar ethernet.4 eth1: TX BD ring size for Q[7]: 256
[ 0.904878] fsl-gianfar ethernet.5 eth2: mac: 00:04:9f:02:d1:97
[ 0.910829] fsl-gianfar ethernet.5 eth2: Running with NAPI enabled
[ 0.917015] fsl-gianfar ethernet.5 eth2: RX BD ring size for Q[0]: 256
[ 0.923553] fsl-gianfar ethernet.5 eth2: RX BD ring size for Q[1]: 256
[ 0.930085] fsl-gianfar ethernet.5 eth2: RX BD ring size for Q[2]: 256
[ 0.936616] fsl-gianfar ethernet.5 eth2: RX BD ring size for Q[3]: 256
[ 0.943146] fsl-gianfar ethernet.5 eth2: RX BD ring size for Q[4]: 256
[ 0.949677] fsl-gianfar ethernet.5 eth2: RX BD ring size for Q[5]: 256
[ 0.956207] fsl-gianfar ethernet.5 eth2: RX BD ring size for Q[6]: 256
[ 0.962738] fsl-gianfar ethernet.5 eth2: RX BD ring size for Q[7]: 256
[ 0.969269] fsl-gianfar ethernet.5 eth2: TX BD ring size for Q[0]: 256
[ 0.975800] fsl-gianfar ethernet.5 eth2: TX BD ring size for Q[1]: 256
[ 0.982330] fsl-gianfar ethernet.5 eth2: TX BD ring size for Q[2]: 256
[ 0.988861] fsl-gianfar ethernet.5 eth2: TX BD ring size for Q[3]: 256
[ 0.995392] fsl-gianfar ethernet.5 eth2: TX BD ring size for Q[4]: 256
[ 1.001923] fsl-gianfar ethernet.5 eth2: TX BD ring size for Q[5]: 256
[ 1.008453] fsl-gianfar ethernet.5 eth2: TX BD ring size for Q[6]: 256
[ 1.014984] fsl-gianfar ethernet.5 eth2: TX BD ring size for Q[7]: 256
[ 1.021690] ucc_geth_driver: QE UCC Gigabit Ethernet Controller
[ 1.028040] TCP: cubic registered
[ 1.031382] NET: Registered protocol family 17
[ 1.035892] 8021q: 802.1Q VLAN Support v1.8
[ 1.041573] end_request: I/O error, dev mtdblock1, sector 0
[ 1.047185] SQUASHFS error: squashfs_read_data failed to read block 0x0
[ 1.053810] SQUASHFS error: unable to read squashfs_super_block
[ 1.059804] VFS: Cannot open root device "mtdblock1" or unknown-block(31,1): error -5
[ 1.067645] Please append a correct "root=" boot option; here are the available partitions:
[ 1.076005] 1f00 32 mtdblock0 (driver?)
[ 1.081066] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,1)
[ 1.089412] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.12 #3
[ 1.095409] Call Trace:
[ 1.097861] [ef855df0] [c0006b80] show_stack+0x50/0x170 (unreliable)
[ 1.104225] [ef855e30] [c026e8fc] dump_stack+0x24/0x34
[ 1.109361] [ef855e40] [c026cbc4] panic+0xe4/0x230
[ 1.114147] [ef855ea0] [c02f8d28] mount_block_root+0x228/0x2e0
[ 1.119977] [ef855ef0] [c02f8fb4] prepare_namespace+0x16c/0x1ac
[ 1.125895] [ef855f00] [c02f8990] kernel_init_freeable+0x1bc/0x1d4
[ 1.132071] [ef855f30] [c00026b0] kernel_init+0x14/0x11c
[ 1.137380] [ef855f40] [c000cfe8] ret_from_kernel_thread+0x5c/0x64
[ 1.143559] Rebooting in 180 seconds..