It appears this has been broken for quite some time, likely before LEDE forked from OpenWrt, as there are CC builds with initrams images working fine (early 2016), however the CC repo no longer compiles a working initrams image, nor does LEDE.
-
The changes causing the issue appear to have occurred between 2016.02.18 and 2016.09.06
- I have a working OpenWrt initramfs image created 2016.02.17 @14:26:46 UTC which boots w/o issue.
-
This post from the SolidRun forum on 2016.09.06 @ 10:30am (local) verifies boot issues occurring at least as of this date.
-
(Xue Liu's [clockworkbird9] repo is mentioned and a link to his blog is provided, however he either forked OpenWrt prior to the issue originating or fixed whatever was broken.)
-
(Xue Liu's [clockworkbird9] repo is mentioned and a link to his blog is provided, however he either forked OpenWrt prior to the issue originating or fixed whatever was broken.)
-
A LEDE initramfs image is a mess all around:
- Created: 2018-01-25
Marvell>> tftpboot lede-mvebu-armada-388-clearfog-pro-initramfs Using egiga1 device TFTP from server 10.4.50.38; our IP address is 10.4.50.170 Filename 'lede-mvebu-armada-388-clearfog-pro-initramfs'. Load address: 0x2000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ####### 2.4 MiB/s done Bytes transferred = 4690096 (4790b0 hex) Marvell>> bootm Wrong Image Format for bootm command ERROR: cant get kernel image!
- Likely due to two specific options being removed from
menuconfig -> Target Images
:-
Include kernel in root filesystem
include uImage
include zImage
include FIT
-
Include DTB in root filesystem
(Left: Old OpenWrt Repo | Right: LEDE Repo)
-
-
Booting a LEDE zImage goes a bit better... until the kernel panic:
Marvell>> tftpboot zImage-Solidrun-Clearfog-A1 Using egiga1 device TFTP from server 10.4.50.38; our IP address is 10.4.50.170 Filename 'zImage-Solidrun-Clearfog-A1'. Load address: 0x2000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ########################## 2.4 MiB/s done Bytes transferred = 2132324 (208964 hex) Marvell>> bootz Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.4.14 (thepeople@trabant) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 50140) ) #1 SMP Thu Dec 7 14:50:07 UTC 2017 [ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine model: SolidRun Clearfog A1 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] PERCPU: Embedded 12 pages/cpu @ef7ce000 s17984 r8192 d22976 u49152 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260608 [ 0.000000] Kernel command line: [ 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] Memory: 1032820K/1048576K available (4223K kernel code, 178K rwdata, 1572K rodata, 264K init, 301K bss, 15756K reserved, 0K cma-reserved, 262144K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc05b1078 (5797 kB) [ 0.000000] .init : 0xc05b2000 - 0xc05f4000 ( 264 kB) [ 0.000000] .data : 0xc05f4000 - 0xc0620a5c ( 179 kB) [ 0.000000] .bss : 0xc0620a5c - 0xc066c244 ( 302 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 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] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 [ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9 [ 0.000000] L2C-310 D prefetch enabled, offset 1 lines [ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled [ 0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB [ 0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001 [ 0.000000] Switching to timer-based delay loop, resolution 40ns [ 0.000002] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns [ 0.000009] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns [ 0.000106] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000) [ 0.000113] pid_max: default: 32768 minimum: 301 [ 0.000148] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000152] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000340] CPU: Testing write buffer coherency: ok [ 0.000439] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.000465] Setting up static identity map for 0x8280 - 0x82d8 [ 0.000550] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4 [ 0.000633] mvebu-pmsu: Initializing Power Management Service Unit [ 0.001026] Booting CPU 1 [ 0.001190] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.001218] Brought up 2 CPUs [ 0.001223] SMP: Total of 2 processors activated (100.00 BogoMIPS). [ 0.001226] CPU: All CPU(s) started in SVC mode. [ 0.002883] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 [ 0.002954] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.003000] pinctrl core: initialized pinctrl subsystem [ 0.003380] NET: Registered protocol family 16 [ 0.003837] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.029930] cpuidle: using governor ladder [ 0.032504] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling [ 0.032512] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling [ 0.060714] SCSI subsystem initialized [ 0.060995] usbcore: registered new interface driver usbfs [ 0.061020] usbcore: registered new interface driver hub [ 0.061042] usbcore: registered new device driver usb [ 0.061712] clocksource: Switched to clocksource armada_370_xp_clocksource [ 0.062143] NET: Registered protocol family 2 [ 0.062382] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.062424] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.062484] TCP: Hash tables configured (established 8192 bind 8192) [ 0.062516] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.062538] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.062619] NET: Registered protocol family 1 [ 0.062981] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.065945] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.065956] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.066587] bounce: pool size: 64 pages [ 0.066594] io scheduler noop registered [ 0.066599] io scheduler deadline registered (default) [ 0.066978] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver [ 0.067276] irq: Cannot allocate irq_descs @ IRQ50, assuming pre-allocated [ 0.067412] irq: Cannot allocate irq_descs @ IRQ82, assuming pre-allocated [ 0.067660] mv_xor f1060800.xor: Marvell shared XOR driver [ 0.101937] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr ) [ 0.102017] mv_xor f1060900.xor: Marvell shared XOR driver [ 0.141919] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr ) [ 0.142055] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled [ 0.142889] console [ttyS0] disabled [ 0.162961] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 15625000) is a 16550A [ 0.715227] console [ttyS0] enabled [ 0.738916] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 15625000) is a 16550A [ 0.748295] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode [ 0.757374] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs [ 0.766754] scsi host0: ahci-mvebu [ 0.770314] scsi host1: ahci-mvebu [ 0.773824] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 45 [ 0.781766] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 45 [ 0.789792] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode [ 0.798869] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs [ 0.808345] scsi host2: ahci-mvebu [ 0.811918] scsi host3: ahci-mvebu [ 0.815415] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 46 [ 0.823359] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 46 [ 0.832327] libphy: Fixed MDIO Bus: probed [ 0.836538] libphy: orion_mdio_bus: probed [ 0.841803] mvneta f1030000.ethernet eth0: Using hardware mac address 00:50:43:4c:18:3b [ 0.850637] mvneta f1034000.ethernet eth1: Using random mac address c6:31:9b:9c:a7:67 [ 0.859250] mvneta f1070000.ethernet eth2: Using hardware mac address 00:50:43:ee:18:3b [ 0.867330] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.873879] ehci-pci: EHCI PCI platform driver [ 0.878359] ehci-platform: EHCI generic platform driver [ 0.883691] ehci-orion: EHCI orion driver [ 0.887777] orion-ehci f1058000.usb: EHCI Host Controller [ 0.893203] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1 [ 0.900847] orion-ehci f1058000.usb: irq 40, io mem 0xf1058000 [ 0.921501] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00 [ 0.927667] hub 1-0:1.0: USB hub found [ 0.931437] hub 1-0:1.0: 1 port detected [ 0.935663] xhci-hcd f10f0000.usb3: xHCI Host Controller [ 0.940994] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2 [ 0.948605] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010 [ 0.957170] xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000 [ 0.963146] hub 2-0:1.0: USB hub found [ 0.966914] hub 2-0:1.0: 1 port detected [ 0.970927] xhci-hcd f10f0000.usb3: xHCI Host Controller [ 0.976265] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3 [ 0.983796] usb usb3: We dont know the algorithms for LPM for this host, disabling LPM. [ 0.992105] hub 3-0:1.0: USB hub found [ 0.995872] hub 3-0:1.0: 1 port detected [ 0.999930] xhci-hcd f10f8000.usb3: xHCI Host Controller [ 1.005271] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4 [ 1.012863] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010 [ 1.021422] xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000 [ 1.027391] hub 4-0:1.0: USB hub found [ 1.031159] hub 4-0:1.0: 1 port detected [ 1.035201] xhci-hcd f10f8000.usb3: xHCI Host Controller [ 1.040528] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5 [ 1.048072] usb usb5: We dont know the algorithms for LPM for this host, disabling LPM. [ 1.056389] hub 5-0:1.0: USB hub found [ 1.060156] hub 5-0:1.0: 1 port detected [ 1.064290] usbcore: registered new interface driver usb-storage [ 1.070460] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0 [ 1.078105] i2c /dev entries driver [ 1.092469] orion_wdt: Initial timeout 171 sec [ 1.097786] marvell-cesa f1090000.crypto: CESA device successfully registered [ 1.105445] NET: Registered protocol family 10 [ 1.110382] NET: Registered protocol family 17 [ 1.114870] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. [ 1.127526] Bridge firewalling registered [ 1.131551] 8021q: 802.1Q VLAN Support v1.8 [ 1.135771] Registering SWP/SWPB emulation handler [ 1.141319] armada38x-rtc f10a3800.rtc: setting system clock to 1970-06-02 16:51:43 UTC (13193503) [ 1.141517] ata1: SATA link down (SStatus 0 SControl 300) [ 1.141542] ata2: SATA link down (SStatus 0 SControl 300) [ 1.161504] ata4: SATA link down (SStatus 0 SControl 300) [ 1.166942] ata3: SATA link down (SStatus 0 SControl 300) [ 1.172389] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6 [ 1.179889] Please append a correct "root=" boot option; here are the available partitions: [ 1.188270] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 1.196553] CPU1: stopping [ 1.199266] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.14 #1 [ 1.205198] Hardware name: Marvell Armada 380/385 (Device Tree) [ 1.211142] [<c001fab8>] (unwind_backtrace) from [<c001c420>] (show_stack+0x10/0x14) [ 1.218909] [<c001c420>] (show_stack) from [<c019f54c>] (dump_stack+0x8c/0xa0) [ 1.226149] [<c019f54c>] (dump_stack) from [<c001e94c>] (handle_IPI+0x108/0x1a0) [ 1.233563] [<c001e94c>] (handle_IPI) from [<c0009508>] (gic_handle_irq+0x80/0x94) [ 1.241151] [<c0009508>] (gic_handle_irq) from [<c000a5f4>] (__irq_svc+0x54/0x70) [ 1.248650] Exception stack(0xef073f80 to 0xef073fc8) [ 1.253712] 3f80: 00000001 00000000 00000000 c000b3c0 ef072000 c05f6498 c04fcab4 00000000 [ 1.261909] 3fa0: c05ee224 ef073fd8 00000000 c05f1118 00000000 ef073fd0 c00194cc c00194d0 [ 1.270104] 3fc0: 60000013 ffffffff [ 1.273600] [<c000a5f4>] (__irq_svc) from [<c00194d0>] (arch_cpu_idle+0x34/0x50) [ 1.281015] [<c00194d0>] (arch_cpu_idle) from [<c005b324>] (cpu_startup_entry+0x148/0x210) [ 1.289298] [<c005b324>] (cpu_startup_entry) from [<000095ac>] (0x95ac) [ 1.295928] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
-
If a current OpenWrt CC initramfs is booted, it freezes upon loading the kernel:
Marvell>> tftpboot openwrt-mvebu-armada-388-clearfog-initramfs Using egiga1 device TFTP from server 10.4.50.38; our IP address is 10.4.50.170 Filename 'openwrt-mvebu-armada-388-clearfog-initramfs'. Load address: 0x2000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# #################################################### 2.4 MiB/s done Bytes transferred = 7925725 (78efdd hex) Marvell>> bootm ## Booting kernel from Legacy Image at 02000000 ... Image Name: ARM OpenWrt Linux-3.18.91 Created: 2018-01-27 3:22:24 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 7925661 Bytes = 7.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... <<<<< it freezes at this point, with no further output, regardless >>>>> <<<<< of how long its left for (5+ mins one time) >>>>>