#19202: mvebu (Mamba XP) - sysupgrade does actually perform no upgrade
-----------------------+------------------------
Reporter: unki_at | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Resolution: | Keywords:
-----------------------+------------------------
Comment (by unki_at):
another try to perform an upgrade:
env before the upgrade
{{{
root@spike:/tmp# fw_printenv | grep -E boot_part\|bootcmd=
boot_part_ready=3
boot_part=2
bootcmd=run nandboot
}}}
now performing an sysupgrade:
{{{
root@spike:/tmp# sysupgrade -d 30 -v -c sysupgrade.tar
Saving config files...
...
killall: watchdog: no process killed
Sending TERM to remaining processes ... logd rpcd netifd odhcpd crond
dnsmasq ntpclient uhttpd watchquagga Mar 23 08:23:33 watchquagga[2890]:
Terminating on sl
avahi-daemon mdns starter charon zebra ospfd ubusd
Mar 23 08:23:33 ipsec_starter[3015]: charon stopped after 400 ms
Mar 23 08:23:33 ipsec_starter[3015]: ipsec starter stopped
Sending KILL to remaining processes ...
Switching to ramdisk...
[ 334.809222] UBIFS: background thread "ubifs_bgt0_1" stops
[ 334.872499] UBIFS: un-mount UBI device 0, volume 1
Performing system upgrade...
cannot find ubi mtd partition rootfs1
ubiupdatevol: error!: file size must be specified if input is stdin
tar: no gzip magic
[ 335.585620] UBIFS error (pid 4069): ubifs_mount: cannot open "/dev/",
error -22
mount: mounting /dev/ on /tmp/new_root failed: Invalid argument
mounting ubifs failed
sysupgrade successful
[ 335.605752] reboot: Restarting system
}}}
now uboot will do:
{{{
Marvell>> print bootcmd
bootcmd=run nandboot
}}}
OK, I'm proceeding. System comes back online but doesn't have been
upgraded. Environment:
{{{
root@spike:/# fw_printenv | grep -E boot_part\|bootcmd=
boot_part_ready=3
boot_part=1
bootcmd=run nandboot
}}}
so I'm performing the upgrade again:
{{{
root@spike:/tmp# sysupgrade -d 30 -v -c /tmp/sysupgrade.tar
Saving config files...
...
killall: watchdog: no process killed
Sending TERM to remaining processes ... logd rpcd netifd odhcpd crond
dnsmasq ntpclient uhttpd watchquagga Mar 23 08:26:51 watchquagga[2887]:
Terminating on sl
avahi-daemon mdns starter charon zebra ospfd ubusd
Mar 23 08:26:51 ipsec_starter[3276]: charon stopped after 400 ms
Mar 23 08:26:51 ipsec_starter[3276]: ipsec starter stopped
Sending KILL to remaining processes ...
Switching to ramdisk...
[ 118.789439] UBIFS: background thread "ubifs_bgt0_1" stops
[ 118.852487] UBIFS: un-mount UBI device 0, volume 1
Performing system upgrade...
[ 119.671946] UBI: attaching mtd7 to ubi2
[ 120.068678] UBI: scanning is finished
[ 120.086652] UBI: attached mtd7 (name "rootfs2", size 37 MiB) to ubi2
[ 120.093150] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976
bytes
[ 120.099961] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size
2048
[ 120.106922] UBI: VID header offset: 2048 (aligned 2048), data offset:
4096
[ 120.114034] UBI: good PEBs: 295, bad PEBs: 1, corrupted PEBs: 0
[ 120.120003] UBI: user volume: 0, internal volumes: 1, max. volumes
count: 128
[ 120.127236] UBI: max/mean erase counter: 2/1, WL threshold: 4096, image
sequence number: 356689013
[ 120.136260] UBI: available PEBs: 272, total reserved PEBs: 23, PEBs
reserved for bad PEB handling: 19
[ 120.145629] UBI: background thread "ubi_bgt2d" started, PID 4014
UBI device number 2, total 295 LEBs (37457920 bytes, 35.7 MiB), available
272 LEBs (34537472 bytes, 32.9 MiB), LEB size 126976 bytes (124.0 KiB)
ubimkvol: error!: bad volume size: "0"
cannot create rootfs volume
ubiupdatevol: error!: file size must be specified if input is stdin
tar: no gzip magic
[ 120.352597] UBIFS error (pid 4058): ubifs_mount: cannot open "/dev/",
error -22
mount: mounting /dev/ on /tmp/new_root failed: Invalid argument
mounting ubifs failed
sysupgrade successful
[ 120.373303] reboot: Restarting system
}}}
It restarts and uboot tries now to boot altnandboot (linksys_altnandboot):
{{{
Marvell>> print bootcmd
bootcmd=run altnandboot
Marvell>> print altnandboot
altnandboot=run linksys_altnandboot
Marvell>> print boot_part
boot_part=2
}}}
and that one fails with unable to mount the rootfs:
{{{
Marvell>> boot
NAND read: device 0 offset 0x3200000, size 0x400000
4194304 bytes read: OK
## Booting kernel from Legacy Image at 02000000 ...
Image Name: ARM OpenWrt Linux-3.18.8
Created: 2015-03-17 21:12:36 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1741052 Bytes = 1.7 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.18.8 (vieaun@mac-vie-430) (gcc version
4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44827) ) #2 SMP Tue Mar 17 22:12:05
CET 2015
[ 0.000000] CPU: ARMv7 Processor [562f5842] revision 2 (ARMv7),
cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction
cache
[ 0.000000] Machine model: Linksys WRT1900AC (Mamba)
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPU: Embedded 9 pages/cpu @cfdd9000 s6912 r8192 d21760
u36864
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 65024
[ 0.000000] Kernel command line: console=ttyS0,115200 mtdparts=armada-
nand:1024K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),37m@13m(rot
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072
bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536
bytes)
[ 0.000000] Memory: 254636K/262144K available (3586K kernel code, 162K
rwdata, 920K rodata, 228K init, 174K bss, 7508K reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc046ee1c (4508 kB)
[ 0.000000] .init : 0xc046f000 - 0xc04a8000 ( 228 kB)
[ 0.000000] .data : 0xc04a8000 - 0xc04d0a70 ( 163 kB)
[ 0.000000] .bss : 0xc04d0a70 - 0xc04fc2f0 ( 175 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16,
nr_cpu_ids=2
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] Aurora cache controller enabled, 32 ways, 2048 kB
[ 0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a69ef12
[ 0.000008] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every
171798691800ns
[ 0.000222] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[ 0.040056] pid_max: default: 32768 minimum: 301
[ 0.040145] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.040155] Mountpoint-cache hash table entries: 1024 (order: 0, 4096
bytes)
[ 0.040474] CPU: Testing write buffer coherency: ok
[ 0.040624] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.043101] Setting up static identity map for 0x148a8 - 0x14900
[ 0.043378] mvebu-soc-id: MVEBU SoC ID=0x7823, Rev=0x2
[ 0.043504] mvebu-pmsu: Initializing Power Management Service Unit
[ 0.044385] Booting CPU 1
[ 0.044564] CPU1: Booted secondary processor
[ 0.080045] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.080106] Brought up 2 CPUs
[ 0.080120] SMP: Total of 2 processors activated (2382.23 BogoMIPS).
[ 0.080125] CPU: All CPU(s) started in SVC mode.
[ 0.080601] VFP support v0.3: implementor 56 architecture 2 part 20
variant 9 rev 6
[ 0.080793] pinctrl core: initialized pinctrl subsystem
[ 0.083471] NET: Registered protocol family 16
[ 0.083671] DMA: preallocated 256 KiB pool for atomic coherent
allocations
[ 0.110068] cpuidle: using governor ladder
[ 0.141529] Switched to clocksource armada_370_xp_clocksource
[ 0.142263] NET: Registered protocol family 2
[ 0.142764] TCP established hash table entries: 2048 (order: 1, 8192
bytes)
[ 0.142787] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.142811] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.142846] TCP: reno registered
[ 0.142858] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.142875] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.143005] NET: Registered protocol family 1
[ 0.143949] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.144448] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.144461] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME)
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.144702] msgmni has been set to 497
[ 0.146035] io scheduler noop registered
[ 0.146049] io scheduler deadline registered (default)
[ 0.146629] armada-xp-pinctrl f1018000.pin-ctrl: registered pinctrl
driver
[ 0.147090] irq: Cannot allocate irq_descs @ IRQ38, assuming pre-
allocated
[ 0.147406] irq: Cannot allocate irq_descs @ IRQ70, assuming pre-
allocated
[ 0.147874] mvebu-pcie soc:pcie-controller: PCI host bridge to bus
0000:00
[ 0.147889] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff]
[ 0.147898] pci_bus 0000:00: root bus resource [mem
0xf8000000-0xffdfffff]
[ 0.147908] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.148362] PCI: bus0: Fast back to back transfers disabled
[ 0.148374] pci 0000:00:01.0: bridge configuration invalid ([bus
00-00]), reconfiguring
[ 0.148385] pci 0000:00:02.0: bridge configuration invalid ([bus
00-00]), reconfiguring
[ 0.148396] pci 0000:00:03.0: bridge configuration invalid ([bus
00-00]), reconfiguring
[ 0.148787] PCI: bus1: Fast back to back transfers disabled
[ 0.149222] PCI: bus2: Fast back to back transfers disabled
[ 0.149628] PCI: bus3: Fast back to back transfers disabled
[ 0.149745] pci 0000:00:01.0: BAR 8: assigned [mem
0xf8000000-0xf80fffff]
[ 0.149758] pci 0000:00:02.0: BAR 8: assigned [mem
0xf8200000-0xf83fffff]
[ 0.149768] pci 0000:00:03.0: BAR 8: assigned [mem
0xf8400000-0xf85fffff]
[ 0.149780] pci 0000:01:00.0: BAR 0: assigned [mem
0xf8000000-0xf8007fff 64bit]
[ 0.149800] pci 0000:00:01.0: PCI bridge to [bus 01]
[ 0.149811] pci 0000:00:01.0: bridge window [mem
0xf8000000-0xf80fffff]
[ 0.149825] pci 0000:02:00.0: BAR 0: assigned [mem
0xf8200000-0xf82fffff 64bit pref]
[ 0.149846] pci 0000:02:00.0: BAR 2: assigned [mem
0xf8300000-0xf83fffff 64bit pref]
[ 0.149865] pci 0000:00:02.0: PCI bridge to [bus 02]
[ 0.149875] pci 0000:00:02.0: bridge window [mem
0xf8200000-0xf83fffff]
[ 0.149888] pci 0000:03:00.0: BAR 0: assigned [mem
0xf8400000-0xf84fffff 64bit pref]
[ 0.149907] pci 0000:03:00.0: BAR 2: assigned [mem
0xf8500000-0xf85fffff 64bit pref]
[ 0.149924] pci 0000:00:03.0: PCI bridge to [bus 03]
[ 0.149934] pci 0000:00:03.0: bridge window [mem
0xf8400000-0xf85fffff]
[ 0.149977] pci 0000:00:01.0: enabling device (0140 -> 0142)
[ 0.149998] pci 0000:01:00.0: enabling device (0140 -> 0142)
[ 0.150183] mv_xor f1060900.xor: Marvell shared XOR driver
[ 0.181606] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[ 0.221597] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[ 0.221693] mv_xor f10f0900.xor: Marvell shared XOR driver
[ 0.261596] mv_xor f10f0900.xor: Marvell XOR: ( xor cpy )
[ 0.301597] mv_xor f10f0900.xor: Marvell XOR: ( xor cpy )
[ 0.301781] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.302208] console [ttyS0] disabled
[ 0.322220] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 20,
base_baud = 15625000) is a 16550A
[ 0.979554] console [ttyS0] enabled
[ 0.983793] pxa3xx-nand f10d0000.nand: This platform can't do DMA on
this device
[ 0.991410] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[ 0.997798] nand: AMD/Spansion S34ML01G1
[ 1.001745] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[ 1.007423] pxa3xx-nand f10d0000.nand: ECC strength 16, ECC step size
2048
[ 1.014573] Bad block table found at page 65472, version 0x01
[ 1.020741] Bad block table found at page 65408, version 0x01
[ 1.026728] nand_read_bbt: bad block at 0x000003640000
[ 1.032086] 9 ofpart partitions found on MTD device pxa3xx_nand-0
[ 1.038198] Creating 9 MTD partitions on "pxa3xx_nand-0":
[ 1.043635] 0x000000000000-0x000000100000 : "u-boot"
[ 1.049098] 0x000000100000-0x000000140000 : "u_env"
[ 1.054446] 0x000000140000-0x000000180000 : "s_env"
[ 1.059747] 0x000000900000-0x000000a00000 : "devinfo"
[ 1.065236] 0x000000a00000-0x000003200000 : "kernel1"
[ 1.070768] 0x000000d00000-0x000003200000 : "rootfs1"
[ 1.076320] 0x000003200000-0x000005a00000 : "kernel2"
[ 1.081884] 0x000003500000-0x000005a00000 : "ubi"
[ 1.087084] 0x000005a00000-0x000008000000 : "syscfg"
[ 1.093064] m25p80 spi0.0: mr25h256 (32 Kbytes)
[ 1.098723] libphy: Fixed MDIO Bus: probed
[ 1.102983] libphy: orion_mdio_bus: probed
[ 1.108405] mvneta f1070000.ethernet eth0: Using random mac address
c2:cc:4b:07:9f:6f
[ 1.117500] mvneta f1074000.ethernet eth1: Using random mac address
02:f0:e0:dd:7a:cc
[ 1.126239] Netfilter messages via NETLINK v0.30.
[ 1.130987] nf_tables: (c) 2007-2009 Patrick McHardy <[email protected]>
[ 1.137798] IPv4 over IPsec tunneling driver
[ 1.142642] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.148056] TCP: cubic registered
[ 1.151880] NET: Registered protocol family 10
[ 1.157696] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 1.164252] NET: Registered protocol family 17
[ 1.168799] bridge: automatic filtering via arp/ip/ip6tables has been
deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.181531] Bridge firewalling registered
[ 1.185600] l2tp_core: L2TP core driver, V2.0
[ 1.189993] l2tp_netlink: L2TP netlink interface
[ 1.194699] 8021q: 802.1Q VLAN Support v1.8
[ 1.198966] Registering SWP/SWPB emulation handler
[ 1.205981] UBI: auto-attach mtd7
[ 1.209315] UBI: attaching mtd7 to ubi0
[ 1.547776] UBI: scanning is finished
[ 1.565578] UBI: attached mtd7 (name "ubi", size 37 MiB) to ubi0
[ 1.571645] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976
bytes
[ 1.578456] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size
2048
[ 1.585215] UBI: VID header offset: 2048 (aligned 2048), data offset:
4096
[ 1.592155] UBI: good PEBs: 295, bad PEBs: 1, corrupted PEBs: 0
[ 1.598094] UBI: user volume: 0, internal volumes: 1, max. volumes
count: 128
[ 1.605290] UBI: max/mean erase counter: 2/1, WL threshold: 4096, image
sequence number: 356689013
[ 1.614317] UBI: available PEBs: 272, total reserved PEBs: 23, PEBs
reserved for bad PEB handling: 19
[ 1.623658] UBI: background thread "ubi_bgt0d" started, PID 333
[ 1.624275] mvsw61xx 1000000003.mvsw61xx: Found MV88E6172 at f1072004
.mdio-mi:10
[ 1.624282] mvsw61xx 1000000003.mvsw61xx: Using direct addressing
[ 1.624363] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 1.649786] UBIFS error (pid 1): ubifs_mount: cannot open
"ubi0:rootfs", error -19
[ 1.657538] VFS: Cannot open root device "(null)" or unknown-
block(0,0): error -6
[ 1.665082] Please append a correct "root=" boot option; here are the
available partitions:
[ 1.673505] 1f00 1024 mtdblock0 (driver?)
[ 1.678588] 1f01 256 mtdblock1 (driver?)
[ 1.683711] 1f02 256 mtdblock2 (driver?)
[ 1.688789] 1f03 1024 mtdblock3 (driver?)
[ 1.693911] 1f04 40960 mtdblock4 (driver?)
[ 1.698989] 1f05 37888 mtdblock5 (driver?)
[ 1.704111] 1f06 40960 mtdblock6 (driver?)
[ 1.709189] 1f07 37888 mtdblock7 (driver?)
[ 1.714321] 1f08 38912 mtdblock8 (driver?)
[ 1.719399] 1f09 32 mtdblock9 (driver?)
[ 1.724517] Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0)
[ 1.732840] CPU1: stopping
[ 1.735566] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 3.18.8 #2
[ 1.741500] Backtrace:
[ 1.743977] [<c001d134>] (dump_backtrace) from [<c001d4b8>]
(show_stack+0x18/0x1c)
[ 1.751565] r6:00000000 r5:00000000 r4:c04bb140 r3:dc8cb008
[ 1.757295] [<c001d4a0>] (show_stack) from [<c0196dcc>]
(dump_stack+0x8c/0x9c)
[ 1.764542] [<c0196d40>] (dump_stack) from [<c001f640>]
(handle_IPI+0xe8/0x174)
[ 1.771868] r5:c04a58f8 r4:00000001
[ 1.775480] [<c001f558>] (handle_IPI) from [<c00086dc>]
(armada_370_xp_handle_irq+0xa8/0xe0)
[ 1.783938] r6:c04f6098 r5:00000020 r4:00000005 r3:00000020
[ 1.789663] [<c0008634>] (armada_370_xp_handle_irq) from [<c00097a0>]
(__irq_svc+0x40/0x54)
[ 1.798036] Exception stack(0xcf853f28 to 0xcf853f70)
[ 1.803104] 3f20: 0012b6c8 00000000 3b9aca00 00000000
671f0308 00000000
[ 1.811307] 3f40: cfde2a48 c04b7484 00000002 00000000 c04ab0d4 cf853f9c
0000001a cf853f70
[ 1.819506] 3f60: 00000006 c025dd3c 20000153 ffffffff
[ 1.824570] r10:c04ab0d4 r9:00000000 r8:00000002 r7:cf853f5c
r6:ffffffff r5:20000153
[ 1.832478] r4:c025dd3c
[ 1.835033] [<c025dce0>] (cpuidle_enter_state) from [<c025dea4>]
(cpuidle_enter+0x1c/0x20)
[ 1.843317] r8:00000098 r7:c03fb1c0 r6:c04b73ec r5:cfde2a48
r4:cf852030
[ 1.850101] [<c025de88>] (cpuidle_enter) from [<c0056204>]
(cpu_startup_entry+0x288/0x2a8)
[ 1.858391] [<c0055f7c>] (cpu_startup_entry) from [<c001f328>]
(secondary_start_kernel+0x144/0x14c)
[ 1.867458] r7:c04f888c
[ 1.870012] [<c001f1e4>] (secondary_start_kernel) from [<00008804>]
(0x8804)
[ 1.877077] r5:00000015 r4:0f83c06a
[ 1.880689] ---[ end Kernel panic - not syncing: VFS: Unable to mount
root fs on unknown-block(0,0)
}}}
also openwrt_altnandboot is not able to start up:
{{{
Marvell>> run openwrt_altnandboot
NAND read: device 0 offset 0x3200000, size 0x4000000
Skipping bad block 0x03640000
67108864 bytes read: OK
## Booting kernel from Legacy Image at 02000000 ...
Image Name: ARM OpenWrt Linux-3.18.8
Created: 2015-03-17 21:12:36 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1741052 Bytes = 1.7 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.18.8 (vieaun@mac-vie-430) (gcc version
4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44827) ) #2 SMP Tue Mar 17 22:12:05
CET 2015
[ 0.000000] CPU: ARMv7 Processor [562f5842] revision 2 (ARMv7),
cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction
cache
[ 0.000000] Machine model: Linksys WRT1900AC (Mamba)
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPU: Embedded 9 pages/cpu @cfdd9000 s6912 r8192 d21760
u36864
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 65024
[ 0.000000] Kernel command line: console=ttyS0,115200 mtdparts=armada-
nand:1024K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),37m@13m(rot
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072
bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536
bytes)
[ 0.000000] Memory: 254636K/262144K available (3586K kernel code, 162K
rwdata, 920K rodata, 228K init, 174K bss, 7508K reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc046ee1c (4508 kB)
[ 0.000000] .init : 0xc046f000 - 0xc04a8000 ( 228 kB)
[ 0.000000] .data : 0xc04a8000 - 0xc04d0a70 ( 163 kB)
[ 0.000000] .bss : 0xc04d0a70 - 0xc04fc2f0 ( 175 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16,
nr_cpu_ids=2
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] Aurora cache controller enabled, 32 ways, 2048 kB
[ 0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a69ef12
[ 0.000008] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every
171798691800ns
[ 0.000222] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[ 0.040057] pid_max: default: 32768 minimum: 301
[ 0.040147] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.040156] Mountpoint-cache hash table entries: 1024 (order: 0, 4096
bytes)
[ 0.040474] CPU: Testing write buffer coherency: ok
[ 0.040623] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.043099] Setting up static identity map for 0x148a8 - 0x14900
[ 0.043377] mvebu-soc-id: MVEBU SoC ID=0x7823, Rev=0x2
[ 0.043502] mvebu-pmsu: Initializing Power Management Service Unit
[ 0.044384] Booting CPU 1
[ 0.044563] CPU1: Booted secondary processor
[ 0.080045] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.080107] Brought up 2 CPUs
[ 0.080121] SMP: Total of 2 processors activated (2382.23 BogoMIPS).
[ 0.080127] CPU: All CPU(s) started in SVC mode.
[ 0.080601] VFP support v0.3: implementor 56 architecture 2 part 20
variant 9 rev 6
[ 0.080794] pinctrl core: initialized pinctrl subsystem
[ 0.083472] NET: Registered protocol family 16
[ 0.083671] DMA: preallocated 256 KiB pool for atomic coherent
allocations
[ 0.110068] cpuidle: using governor ladder
[ 0.141532] Switched to clocksource armada_370_xp_clocksource
[ 0.142265] NET: Registered protocol family 2
[ 0.142767] TCP established hash table entries: 2048 (order: 1, 8192
bytes)
[ 0.142790] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.142814] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.142849] TCP: reno registered
[ 0.142860] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.142877] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.143008] NET: Registered protocol family 1
[ 0.143956] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.144453] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.144466] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME)
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.144708] msgmni has been set to 497
[ 0.146072] io scheduler noop registered
[ 0.146085] io scheduler deadline registered (default)
[ 0.146665] armada-xp-pinctrl f1018000.pin-ctrl: registered pinctrl
driver
[ 0.147126] irq: Cannot allocate irq_descs @ IRQ38, assuming pre-
allocated
[ 0.147442] irq: Cannot allocate irq_descs @ IRQ70, assuming pre-
allocated
[ 0.147912] mvebu-pcie soc:pcie-controller: PCI host bridge to bus
0000:00
[ 0.147927] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff]
[ 0.147936] pci_bus 0000:00: root bus resource [mem
0xf8000000-0xffdfffff]
[ 0.147946] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.148402] PCI: bus0: Fast back to back transfers disabled
[ 0.148413] pci 0000:00:01.0: bridge configuration invalid ([bus
00-00]), reconfiguring
[ 0.148424] pci 0000:00:02.0: bridge configuration invalid ([bus
00-00]), reconfiguring
[ 0.148435] pci 0000:00:03.0: bridge configuration invalid ([bus
00-00]), reconfiguring
[ 0.148825] PCI: bus1: Fast back to back transfers disabled
[ 0.149261] PCI: bus2: Fast back to back transfers disabled
[ 0.149668] PCI: bus3: Fast back to back transfers disabled
[ 0.149786] pci 0000:00:01.0: BAR 8: assigned [mem
0xf8000000-0xf80fffff]
[ 0.149798] pci 0000:00:02.0: BAR 8: assigned [mem
0xf8200000-0xf83fffff]
[ 0.149809] pci 0000:00:03.0: BAR 8: assigned [mem
0xf8400000-0xf85fffff]
[ 0.149821] pci 0000:01:00.0: BAR 0: assigned [mem
0xf8000000-0xf8007fff 64bit]
[ 0.149841] pci 0000:00:01.0: PCI bridge to [bus 01]
[ 0.149852] pci 0000:00:01.0: bridge window [mem
0xf8000000-0xf80fffff]
[ 0.149866] pci 0000:02:00.0: BAR 0: assigned [mem
0xf8200000-0xf82fffff 64bit pref]
[ 0.149887] pci 0000:02:00.0: BAR 2: assigned [mem
0xf8300000-0xf83fffff 64bit pref]
[ 0.149906] pci 0000:00:02.0: PCI bridge to [bus 02]
[ 0.149916] pci 0000:00:02.0: bridge window [mem
0xf8200000-0xf83fffff]
[ 0.149929] pci 0000:03:00.0: BAR 0: assigned [mem
0xf8400000-0xf84fffff 64bit pref]
[ 0.149948] pci 0000:03:00.0: BAR 2: assigned [mem
0xf8500000-0xf85fffff 64bit pref]
[ 0.149965] pci 0000:00:03.0: PCI bridge to [bus 03]
[ 0.149974] pci 0000:00:03.0: bridge window [mem
0xf8400000-0xf85fffff]
[ 0.150018] pci 0000:00:01.0: enabling device (0140 -> 0142)
[ 0.150039] pci 0000:01:00.0: enabling device (0140 -> 0142)
[ 0.150224] mv_xor f1060900.xor: Marvell shared XOR driver
[ 0.181609] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[ 0.221600] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[ 0.221696] mv_xor f10f0900.xor: Marvell shared XOR driver
[ 0.261600] mv_xor f10f0900.xor: Marvell XOR: ( xor cpy )
[ 0.301600] mv_xor f10f0900.xor: Marvell XOR: ( xor cpy )
[ 0.301785] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.302211] console [ttyS0] disabled
[ 0.322223] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 20,
base_baud = 15625000) is a 16550A
[ 0.979552] console [ttyS0] enabled
[ 0.983790] pxa3xx-nand f10d0000.nand: This platform can't do DMA on
this device
[ 0.991404] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[ 0.997792] nand: AMD/Spansion S34ML01G1
[ 1.001739] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[ 1.007417] pxa3xx-nand f10d0000.nand: ECC strength 16, ECC step size
2048
[ 1.014566] Bad block table found at page 65472, version 0x01
[ 1.020735] Bad block table found at page 65408, version 0x01
[ 1.026722] nand_read_bbt: bad block at 0x000003640000
[ 1.032081] 9 ofpart partitions found on MTD device pxa3xx_nand-0
[ 1.038193] Creating 9 MTD partitions on "pxa3xx_nand-0":
[ 1.043629] 0x000000000000-0x000000100000 : "u-boot"
[ 1.049093] 0x000000100000-0x000000140000 : "u_env"
[ 1.054440] 0x000000140000-0x000000180000 : "s_env"
[ 1.059738] 0x000000900000-0x000000a00000 : "devinfo"
[ 1.065227] 0x000000a00000-0x000003200000 : "kernel1"
[ 1.070759] 0x000000d00000-0x000003200000 : "rootfs1"
[ 1.076313] 0x000003200000-0x000005a00000 : "kernel2"
[ 1.081879] 0x000003500000-0x000005a00000 : "ubi"
[ 1.087080] 0x000005a00000-0x000008000000 : "syscfg"
[ 1.093060] m25p80 spi0.0: mr25h256 (32 Kbytes)
[ 1.098718] libphy: Fixed MDIO Bus: probed
[ 1.102980] libphy: orion_mdio_bus: probed
[ 1.108404] mvneta f1070000.ethernet eth0: Using random mac address
62:b5:c8:a9:5b:0d
[ 1.117504] mvneta f1074000.ethernet eth1: Using random mac address
e2:38:41:0e:a7:cd
[ 1.126247] Netfilter messages via NETLINK v0.30.
[ 1.130993] nf_tables: (c) 2007-2009 Patrick McHardy <[email protected]>
[ 1.137805] IPv4 over IPsec tunneling driver
[ 1.142649] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.148062] TCP: cubic registered
[ 1.151881] NET: Registered protocol family 10
[ 1.157694] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 1.164250] NET: Registered protocol family 17
[ 1.168798] bridge: automatic filtering via arp/ip/ip6tables has been
deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.181520] Bridge firewalling registered
[ 1.185598] l2tp_core: L2TP core driver, V2.0
[ 1.189991] l2tp_netlink: L2TP netlink interface
[ 1.194697] 8021q: 802.1Q VLAN Support v1.8
[ 1.198966] Registering SWP/SWPB emulation handler
[ 1.205985] UBI: auto-attach mtd7
[ 1.209320] UBI: attaching mtd7 to ubi0
[ 1.547586] UBI: scanning is finished
[ 1.565273] UBI: attached mtd7 (name "ubi", size 37 MiB) to ubi0
[ 1.571305] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976
bytes
[ 1.578159] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size
2048
[ 1.584922] UBI: VID header offset: 2048 (aligned 2048), data offset:
4096
[ 1.591839] UBI: good PEBs: 295, bad PEBs: 1, corrupted PEBs: 0
[ 1.597776] UBI: user volume: 0, internal volumes: 1, max. volumes
count: 128
[ 1.604973] UBI: max/mean erase counter: 2/1, WL threshold: 4096, image
sequence number: 356689013
[ 1.613999] UBI: available PEBs: 272, total reserved PEBs: 23, PEBs
reserved for bad PEB handling: 19
[ 1.623340] UBI: background thread "ubi_bgt0d" started, PID 333
[ 1.623956] mvsw61xx 1000000003.mvsw61xx: Found MV88E6172 at f1072004
.mdio-mi:10
[ 1.623962] mvsw61xx 1000000003.mvsw61xx: Using direct addressing
[ 1.624045] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 1.649466] UBIFS error (pid 1): ubifs_mount: cannot open
"ubi0:rootfs", error -19
[ 1.657218] VFS: Cannot open root device "(null)" or unknown-
block(0,0): error -6
[ 1.664763] Please append a correct "root=" boot option; here are the
available partitions:
[ 1.673185] 1f00 1024 mtdblock0 (driver?)
[ 1.678269] 1f01 256 mtdblock1 (driver?)
[ 1.683392] 1f02 256 mtdblock2 (driver?)
[ 1.688471] 1f03 1024 mtdblock3 (driver?)
[ 1.693594] 1f04 40960 mtdblock4 (driver?)
[ 1.698673] 1f05 37888 mtdblock5 (driver?)
[ 1.703795] 1f06 40960 mtdblock6 (driver?)
[ 1.708873] 1f07 37888 mtdblock7 (driver?)
[ 1.714006] 1f08 38912 mtdblock8 (driver?)
[ 1.719085] 1f09 32 mtdblock9 (driver?)
[ 1.724205] Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0)
[ 1.732529] CPU1: stopping
[ 1.735255] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 3.18.8 #2
[ 1.741189] Backtrace:
[ 1.743668] [<c001d134>] (dump_backtrace) from [<c001d4b8>]
(show_stack+0x18/0x1c)
[ 1.751255] r6:00000000 r5:00000000 r4:c04bb140 r3:dc8cb008
[ 1.756985] [<c001d4a0>] (show_stack) from [<c0196dcc>]
(dump_stack+0x8c/0x9c)
[ 1.764231] [<c0196d40>] (dump_stack) from [<c001f640>]
(handle_IPI+0xe8/0x174)
[ 1.771557] r5:c04a58f8 r4:00000001
[ 1.775169] [<c001f558>] (handle_IPI) from [<c00086dc>]
(armada_370_xp_handle_irq+0xa8/0xe0)
[ 1.783627] r6:c04f6098 r5:00000020 r4:00000005 r3:00000020
[ 1.789352] [<c0008634>] (armada_370_xp_handle_irq) from [<c00097a0>]
(__irq_svc+0x40/0x54)
[ 1.797724] Exception stack(0xcf853f28 to 0xcf853f70)
[ 1.802792] 3f20: 000deb70 00000000 3b9aca00 00000000
671f0358 00000000
[ 1.810995] 3f40: cfde2a48 c04b7484 00000002 00000000 c04ab0d4 cf853f9c
0000001a cf853f70
[ 1.819194] 3f60: 00000006 c025dd3c 20000153 ffffffff
[ 1.824258] r10:c04ab0d4 r9:00000000 r8:00000002 r7:cf853f5c
r6:ffffffff r5:20000153
[ 1.832168] r4:c025dd3c
[ 1.834723] [<c025dce0>] (cpuidle_enter_state) from [<c025dea4>]
(cpuidle_enter+0x1c/0x20)
[ 1.843006] r8:00000098 r7:c03fb1c0 r6:c04b73ec r5:cfde2a48
r4:cf852030
[ 1.849791] [<c025de88>] (cpuidle_enter) from [<c0056204>]
(cpu_startup_entry+0x288/0x2a8)
[ 1.858081] [<c0055f7c>] (cpu_startup_entry) from [<c001f328>]
(secondary_start_kernel+0x144/0x14c)
[ 1.867148] r7:c04f888c
[ 1.869701] [<c001f1e4>] (secondary_start_kernel) from [<00008804>]
(0x8804)
[ 1.876766] r5:00000015 r4:0f83c06a
[ 1.880378] ---[ end Kernel panic - not syncing: VFS: Unable to mount
root fs on unknown-block(0,0)
}}}
So I'm switching uboot manually to "boot nandboot":
{{{
Marvell>> print nandboot
nandboot=run linksys_nandboot
Marvell>> print linksys_nandboot
linksys_nandboot=nand read $default_load_addr $pri_kern_addr
$pri_kern_size; setenv bootargs $console $default_mtdparts
root=/dev/mtdblock5 ro rootfstype=$fs_;
Marvell>> print openwrt_nandboot
openwrt_nandboot=nand read $default_load_addr $pri_kern_addr
$openwrt_fw_size; setenv bootargs $console $default_mtdparts
root=/dev/mtdblock5 ro rootfstype=$f;
Marvell>> run nandboot
NAND read: device 0 offset 0xa00000, size 0x400000
4194304 bytes read: OK
## Booting kernel from Legacy Image at 02000000 ...
Image Name: ARM OpenWrt Linux-3.18.8
Created: 2015-03-17 21:12:36 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1741052 Bytes = 1.7 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.18.8 (vieaun@mac-vie-430) (gcc version
4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44827) ) #2 SMP Tue Mar 17 22:12:05
CET 2015
[ 0.000000] CPU: ARMv7 Processor [562f5842] revision 2 (ARMv7),
cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction
cache
[ 0.000000] Machine model: Linksys WRT1900AC (Mamba)
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPU: Embedded 9 pages/cpu @cfdd9000 s6912 r8192 d21760
u36864
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 65024
[ 0.000000] Kernel command line: console=ttyS0,115200 mtdparts=armada-
nand:1024K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),37m@13m(rot
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072
bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536
bytes)
[ 0.000000] Memory: 254636K/262144K available (3586K kernel code, 162K
rwdata, 920K rodata, 228K init, 174K bss, 7508K reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc046ee1c (4508 kB)
[ 0.000000] .init : 0xc046f000 - 0xc04a8000 ( 228 kB)
[ 0.000000] .data : 0xc04a8000 - 0xc04d0a70 ( 163 kB)
[ 0.000000] .bss : 0xc04d0a70 - 0xc04fc2f0 ( 175 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16,
nr_cpu_ids=2
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] Aurora cache controller enabled, 32 ways, 2048 kB
[ 0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a69ef12
[ 0.000008] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every
171798691800ns
[ 0.000222] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[ 0.040057] pid_max: default: 32768 minimum: 301
[ 0.040146] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.040155] Mountpoint-cache hash table entries: 1024 (order: 0, 4096
bytes)
[ 0.040476] CPU: Testing write buffer coherency: ok
[ 0.040626] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.043102] Setting up static identity map for 0x148a8 - 0x14900
[ 0.043380] mvebu-soc-id: MVEBU SoC ID=0x7823, Rev=0x2
[ 0.043505] mvebu-pmsu: Initializing Power Management Service Unit
[ 0.044386] Booting CPU 1
[ 0.044565] CPU1: Booted secondary processor
[ 0.080045] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.080106] Brought up 2 CPUs
[ 0.080120] SMP: Total of 2 processors activated (2382.23 BogoMIPS).
[ 0.080126] CPU: All CPU(s) started in SVC mode.
[ 0.080600] VFP support v0.3: implementor 56 architecture 2 part 20
variant 9 rev 6
[ 0.080794] pinctrl core: initialized pinctrl subsystem
[ 0.083471] NET: Registered protocol family 16
[ 0.083671] DMA: preallocated 256 KiB pool for atomic coherent
allocations
[ 0.110067] cpuidle: using governor ladder
[ 0.141531] Switched to clocksource armada_370_xp_clocksource
[ 0.142263] NET: Registered protocol family 2
[ 0.142766] TCP established hash table entries: 2048 (order: 1, 8192
bytes)
[ 0.142788] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.142812] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.142847] TCP: reno registered
[ 0.142859] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.142876] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.143005] NET: Registered protocol family 1
[ 0.143950] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.144446] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.144459] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME)
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.144698] msgmni has been set to 497
[ 0.146027] io scheduler noop registered
[ 0.146040] io scheduler deadline registered (default)
[ 0.146621] armada-xp-pinctrl f1018000.pin-ctrl: registered pinctrl
driver
[ 0.147081] irq: Cannot allocate irq_descs @ IRQ38, assuming pre-
allocated
[ 0.147398] irq: Cannot allocate irq_descs @ IRQ70, assuming pre-
allocated
[ 0.147868] mvebu-pcie soc:pcie-controller: PCI host bridge to bus
0000:00
[ 0.147883] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff]
[ 0.147893] pci_bus 0000:00: root bus resource [mem
0xf8000000-0xffdfffff]
[ 0.147903] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.148359] PCI: bus0: Fast back to back transfers disabled
[ 0.148370] pci 0000:00:01.0: bridge configuration invalid ([bus
00-00]), reconfiguring
[ 0.148382] pci 0000:00:02.0: bridge configuration invalid ([bus
00-00]), reconfiguring
[ 0.148392] pci 0000:00:03.0: bridge configuration invalid ([bus
00-00]), reconfiguring
[ 0.148782] PCI: bus1: Fast back to back transfers disabled
[ 0.149219] PCI: bus2: Fast back to back transfers disabled
[ 0.149624] PCI: bus3: Fast back to back transfers disabled
[ 0.149742] pci 0000:00:01.0: BAR 8: assigned [mem
0xf8000000-0xf80fffff]
[ 0.149755] pci 0000:00:02.0: BAR 8: assigned [mem
0xf8200000-0xf83fffff]
[ 0.149765] pci 0000:00:03.0: BAR 8: assigned [mem
0xf8400000-0xf85fffff]
[ 0.149777] pci 0000:01:00.0: BAR 0: assigned [mem
0xf8000000-0xf8007fff 64bit]
[ 0.149797] pci 0000:00:01.0: PCI bridge to [bus 01]
[ 0.149808] pci 0000:00:01.0: bridge window [mem
0xf8000000-0xf80fffff]
[ 0.149822] pci 0000:02:00.0: BAR 0: assigned [mem
0xf8200000-0xf82fffff 64bit pref]
[ 0.149843] pci 0000:02:00.0: BAR 2: assigned [mem
0xf8300000-0xf83fffff 64bit pref]
[ 0.149862] pci 0000:00:02.0: PCI bridge to [bus 02]
[ 0.149872] pci 0000:00:02.0: bridge window [mem
0xf8200000-0xf83fffff]
[ 0.149885] pci 0000:03:00.0: BAR 0: assigned [mem
0xf8400000-0xf84fffff 64bit pref]
[ 0.149904] pci 0000:03:00.0: BAR 2: assigned [mem
0xf8500000-0xf85fffff 64bit pref]
[ 0.149921] pci 0000:00:03.0: PCI bridge to [bus 03]
[ 0.149931] pci 0000:00:03.0: bridge window [mem
0xf8400000-0xf85fffff]
[ 0.149974] pci 0000:00:01.0: enabling device (0140 -> 0142)
[ 0.149996] pci 0000:01:00.0: enabling device (0140 -> 0142)
[ 0.150180] mv_xor f1060900.xor: Marvell shared XOR driver
[ 0.181608] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[ 0.221599] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[ 0.221696] mv_xor f10f0900.xor: Marvell shared XOR driver
[ 0.261598] mv_xor f10f0900.xor: Marvell XOR: ( xor cpy )
[ 0.301599] mv_xor f10f0900.xor: Marvell XOR: ( xor cpy )
[ 0.301782] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.302209] console [ttyS0] disabled
[ 0.322220] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 20,
base_baud = 15625000) is a 16550A
[ 0.979552] console [ttyS0] enabled
[ 0.983792] pxa3xx-nand f10d0000.nand: This platform can't do DMA on
this device
[ 0.991405] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[ 0.997793] nand: AMD/Spansion S34ML01G1
[ 1.001740] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[ 1.007418] pxa3xx-nand f10d0000.nand: ECC strength 16, ECC step size
2048
[ 1.014566] Bad block table found at page 65472, version 0x01
[ 1.020735] Bad block table found at page 65408, version 0x01
[ 1.026722] nand_read_bbt: bad block at 0x000003640000
[ 1.032079] 9 ofpart partitions found on MTD device pxa3xx_nand-0
[ 1.038191] Creating 9 MTD partitions on "pxa3xx_nand-0":
[ 1.043627] 0x000000000000-0x000000100000 : "u-boot"
[ 1.049091] 0x000000100000-0x000000140000 : "u_env"
[ 1.054438] 0x000000140000-0x000000180000 : "s_env"
[ 1.059738] 0x000000900000-0x000000a00000 : "devinfo"
[ 1.065229] 0x000000a00000-0x000003200000 : "kernel1"
[ 1.070762] 0x000000d00000-0x000003200000 : "ubi"
[ 1.075967] 0x000003200000-0x000005a00000 : "kernel2"
[ 1.081510] 0x000003500000-0x000005a00000 : "rootfs2"
[ 1.087080] 0x000005a00000-0x000008000000 : "syscfg"
[ 1.093064] m25p80 spi0.0: mr25h256 (32 Kbytes)
[ 1.098720] libphy: Fixed MDIO Bus: probed
[ 1.102979] libphy: orion_mdio_bus: probed
[ 1.108400] mvneta f1070000.ethernet eth0: Using random mac address
ae:c8:a9:e3:95:45
[ 1.117499] mvneta f1074000.ethernet eth1: Using random mac address
4a:f4:08:95:78:09
[ 1.126241] Netfilter messages via NETLINK v0.30.
[ 1.130987] nf_tables: (c) 2007-2009 Patrick McHardy <[email protected]>
[ 1.137798] IPv4 over IPsec tunneling driver
[ 1.142641] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.148056] TCP: cubic registered
[ 1.151886] NET: Registered protocol family 10
[ 1.157699] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 1.164265] NET: Registered protocol family 17
[ 1.168814] bridge: automatic filtering via arp/ip/ip6tables has been
deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.181547] Bridge firewalling registered
[ 1.185615] l2tp_core: L2TP core driver, V2.0
[ 1.190007] l2tp_netlink: L2TP netlink interface
[ 1.194712] 8021q: 802.1Q VLAN Support v1.8
[ 1.198980] Registering SWP/SWPB emulation handler
[ 1.205994] UBI: auto-attach mtd5
[ 1.209329] UBI: attaching mtd5 to ubi0
[ 1.548855] UBI: scanning is finished
[ 1.566274] UBI: attached mtd5 (name "ubi", size 37 MiB) to ubi0
[ 1.572354] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976
bytes
[ 1.579164] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size
2048
[ 1.585924] UBI: VID header offset: 2048 (aligned 2048), data offset:
4096
[ 1.592862] UBI: good PEBs: 296, bad PEBs: 0, corrupted PEBs: 0
[ 1.598801] UBI: user volume: 2, internal volumes: 1, max. volumes
count: 128
[ 1.605996] UBI: max/mean erase counter: 2/1, WL threshold: 4096, image
sequence number: 356689013
[ 1.615023] UBI: available PEBs: 0, total reserved PEBs: 296, PEBs
reserved for bad PEB handling: 20
[ 1.624275] UBI: background thread "ubi_bgt0d" started, PID 333
[ 1.630736] UBI: ubiblock0_0 created from ubi0:0(rootfs)
[ 1.636124] ubiblock: device ubiblock0_0 (rootfs) set to be root
filesystem
[ 1.643803] mvsw61xx 1000000003.mvsw61xx: Found MV88E6172 at f1072004
.mdio-mi:10
[ 1.651227] mvsw61xx 1000000003.mvsw61xx: Using direct addressing
[ 1.657473] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 1.670188] VFS: Mounted root (squashfs filesystem) readonly on device
254:0.
[ 1.677614] Freeing unused kernel memory: 228K (c046f000 - c04a8000)
[ 2.125639] init: Console is alive
[ 3.129617] init: - preinit -
[ 3.976442] random: nonblocking pool is initialized
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug
level
[ 7.598554] mount_root: loading kmods from internal overlay
[ 7.919938] UBIFS: background thread "ubifs_bgt0_1" started, PID 400
[ 8.076627] UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[ 8.083140] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit
sizes: 2048 bytes/2048 bytes
[ 8.092341] UBIFS: FS size: 24252416 bytes (23 MiB, 191 LEBs), journal
size 1269760 bytes (1 MiB, 10 LEBs)
[ 8.102060] UBIFS: reserved for root: 1145500 bytes (1118 KiB)
[ 8.107918] UBIFS: media format: w4/r0 (latest is w4/r0), UUID
8E62762B-A6DB-4530-93FD-6A900A6E94D5, small LPT model
[ 8.120392] block: attempting to load
/tmp/ubifs_cfg/upper/etc/config/fstab
[ 8.137392] block: extroot: not configured
[ 8.174887] UBIFS: un-mount UBI device 0, volume 1
[ 8.179757] UBIFS: background thread "ubifs_bgt0_1" stops
[ 8.190151] UBIFS: background thread "ubifs_bgt0_1" started, PID 403
[ 8.347061] UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[ 8.353572] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit
sizes: 2048 bytes/2048 bytes
[ 8.362772] UBIFS: FS size: 24252416 bytes (23 MiB, 191 LEBs), journal
size 1269760 bytes (1 MiB, 10 LEBs)
[ 8.372492] UBIFS: reserved for root: 1145500 bytes (1118 KiB)
[ 8.378349] UBIFS: media format: w4/r0 (latest is w4/r0), UUID
8E62762B-A6DB-4530-93FD-6A900A6E94D5, small LPT model
[ 8.791001] block: attempting to load
/tmp/ubifs_cfg/upper/etc/config/fstab
[ 8.807382] block: extroot: not configured
[ 8.842059] mount_root: switching to jffs2 overlay
[ 8.945346] UBI: attaching mtd8 to ubi1
[ 9.286327] UBI: scanning is finished
[ 9.303274] UBI warning: print_rsvd_warning: cannot reserve enough PEBs
for bad PEB handling, reserved 2, need 12
[ 9.314453] UBI: attached mtd8 (name "syscfg", size 38 MiB) to ubi1
[ 9.320752] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976
bytes
[ 9.327617] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size
2048
[ 9.334379] UBI: VID header offset: 2048 (aligned 2048), data offset:
4096
[ 9.341277] UBI: good PEBs: 296, bad PEBs: 8, corrupted PEBs: 0
[ 9.347253] UBI: user volume: 1, internal volumes: 1, max. volumes
count: 128
[ 9.354448] UBI: max/mean erase counter: 3/2, WL threshold: 4096, image
sequence number: 1777429653
[ 9.363557] UBI: available PEBs: 0, total reserved PEBs: 296, PEBs
reserved for bad PEB handling: 2
[ 9.372687] UBI: background thread "ubi_bgt1d" started, PID 411
UBI device number 1, total 296 LEBs (37584896 bytes, 35.8 MiB), available
0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
...
}}}
System comes back online in a state, as it wouldn't have been upgraded.
Environment
{{{
root@spike:/# fw_printenv | grep -E boot_part\|bootcmd=
boot_part_ready=3
boot_part=2
bootcmd=run altnandboot
}}}
Rather weird.
--
Ticket URL: <https://dev.openwrt.org/ticket/19202#comment:4>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets