Thank you for you response. But still no luck. Sorry if I'm missing something. It's the first time I'm doing that low-level stuff with linux and embedded devices.
I'm thinking the issue may be that the initramfs image doesn't boot up correctly.
Below is what I see on screen. I can see that it's entering procd: - init - but it never completes (I do see the procd: - init completed - message during the regular boot sequence, but never with the new image).
I also noticed that during regular boot sequence that squashfs complains about corrupted data. Could the 2 be related?
Finally, I used the luma snapshot files from https://downloads.openwrt.org/snapshots/targets/ipq40xx/generic/. Should I try building them myself instead?
Many thanks in advance for your help.
(IPQ40xx) # bootm 0x84000000
## Booting kernel from FIT Image at 84000000 ...
Using 'config@1' configuration
Trying 'kernel@1' kernel subimage
Description: ARM OpenWrt Linux-5.4.69
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x840000e4
Data Size: 7815694 Bytes = 7.5 MiB
Architecture: ARM
OS: Linux
Load Address: 0x80208000
Entry Point: 0x80208000
Hash algo: crc32
Hash value: 1968800b
Hash algo: sha1
Hash value: 0ecdd180b04109f1add82b998b5bcfc1dffa0c4d
Verifying Hash Integrity ... crc32+ sha1+ OK
## Flattened Device Tree from FIT Image at 84000000
Using 'config@1' configuration
Trying 'fdt@1' FDT blob subimage
Description: ARM OpenWrt luma_wrtq-329acn device tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x84774430
Data Size: 16577 Bytes = 16.2 KiB
Architecture: ARM
Hash algo: crc32
Hash value: 46f7f5ee
Hash algo: sha1
Hash value: 5307df7909c1371dc62339197551f3ecc4858dd8
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x84774430
Uncompressing Kernel Image ... OK
Loading Device Tree to 86ff8000, end 86fff0c0 ... OK
ipq: fdt fixup unable to find compatible node
Using machid 0x8010100 from environment
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.69 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r14653-a439f1bb47)) #0 SMP Fri Oct 9 01:10:05 2020
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Luma Home WRTQ-329ACN
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 15 pages/cpu s30092 r8192 d23156 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64448
[ 0.000000] Kernel command line:
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 239408K/260096K available (5711K kernel code, 187K rwdata, 1492K rodata, 9216K init, 238K bss, 20688K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] random: get_random_bytes called from start_kernel+0x2f0/0x49c with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 48.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb11fd3bfb, max_idle_ns: 440795203732 ns
[ 0.000007] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
[ 0.000021] Switching to timer-based delay loop, resolution 20ns
[ 0.000232] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[ 0.000250] pid_max: default: 32768 minimum: 301
[ 0.000453] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000471] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001474] CPU: Testing write buffer coherency: ok
[ 0.002528] Setting up static identity map for 0x80300000 - 0x80300060
[ 0.002663] rcu: Hierarchical SRCU implementation.
[ 0.003111] smp: Bringing up secondary CPUs ...
[ 0.006248] smp: Brought up 1 node, 4 CPUs
[ 0.006266] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[ 0.006274] CPU: All CPU(s) started in SVC mode.
[ 0.010666] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.010821] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.010845] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.011119] pinctrl core: initialized pinctrl subsystem
[ 0.012182] NET: Registered protocol family 16
[ 0.012459] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.013653] cpuidle: using governor ladder
[ 0.013701] cpuidle: using governor menu
[ 0.033240] cryptd: max_cpu_qlen set to 1000
[ 0.036638] usbcore: registered new interface driver usbfs
[ 0.036705] usbcore: registered new interface driver hub
[ 0.036791] usbcore: registered new device driver usb
[ 0.036838] pps_core: LinuxPPS API ver. 1 registered
[ 0.036848] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.036874] PTP clock support registered
[ 0.037559] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[ 0.038617] clocksource: Switched to clocksource arch_sys_counter
[ 0.039411] thermal_sys: Registered thermal governor 'step_wise'
[ 0.039714] NET: Registered protocol family 2
[ 0.040609] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.040654] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.040691] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.040739] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.040863] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.040900] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.041132] NET: Registered protocol family 1
[ 0.041174] PCI: CLS 0 bytes, default 64
[ 0.146075] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 0.151668] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.151683] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.202649] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.205913] bam-dma-engine 8e04000.dma: num-channels unspecified in dt
[ 0.205932] bam-dma-engine 8e04000.dma: num-ees unspecified in dt
[ 0.206620] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
[ 0.206718] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[ 0.206801] tcsr 1953000.ess_tcsr: setting ess interface select = 0
[ 0.206890] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
[ 0.207198] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.209139] msm_serial 78af000.serial: msm_serial: detected port #0
[ 0.209186] msm_serial 78af000.serial: uartclk = 1843200
[ 0.209244] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 25, base_baud = 115200) is a MSM
[ 0.209273] msm_serial: console setup on port #0
[ 0.694632] printk: console [ttyMSM0] enabled
[ 0.699604] msm_serial: driver initialized
[ 0.708535] loop: module loaded
[ 0.709676] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[ 0.713737] spi-nor spi0.0: gd25q16 (2048 Kbytes)
[ 0.717907] 8 fixed-partitions partitions found on MTD device spi0.0
[ 0.722518] Creating 8 MTD partitions on "spi0.0":
[ 0.728915] 0x000000000000-0x000000040000 : "0:SBL1"
[ 0.734396] 0x000000040000-0x000000060000 : "0:MIBIB"
[ 0.739449] 0x000000060000-0x0000000c0000 : "0:QSEE"
[ 0.744349] 0x0000000c0000-0x0000000d0000 : "0:CDT"
[ 0.749507] 0x0000000d0000-0x0000000e0000 : "0:DDRPARAMS"
[ 0.753988] 0x0000000e0000-0x0000000f0000 : "0:APPSBLENV"
[ 0.759627] 0x0000000f0000-0x000000170000 : "0:APPSBL"
[ 0.764929] 0x000000170000-0x000000180000 : "0:ART"
[ 0.770691] spi-nand spi0.1: GigaDevice SPI NAND was found.
[ 0.773945] spi-nand spi0.1: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
[ 0.779895] 1 fixed-partitions partitions found on MTD device spi0.1
[ 0.787828] Creating 1 MTD partitions on "spi0.1":
[ 0.794295] 0x000000000000-0x000008000000 : "ubi"
[ 0.805662] random: fast init done
[ 1.297294] libphy: ipq40xx_mdio: probed
[ 1.339164] ESS reset ok!
[ 1.372147] ESS reset ok!
[ 1.789994] libphy: Fixed MDIO Bus: probed
[ 1.794322] i2c /dev entries driver
[ 1.796250] sdhci: Secure Digital Host Controller Interface driver
[ 1.796620] sdhci: Copyright(c) Pierre Ossman
[ 1.802943] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.810829] NET: Registered protocol family 10
[ 1.814365] Segment Routing with IPv6
[ 1.817366] NET: Registered protocol family 17
[ 1.821114] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 1.825367] 8021q: 802.1Q VLAN Support v1.8
[ 1.838527] Registering SWP/SWPB emulation handler
[ 1.854346] UBI: auto-attach mtd8
[ 1.854393] ubi0: attaching mtd8
[ 2.246512] random: crng init done
[ 4.853207] ubi0: scanning is finished
[ 4.891473] ubi0: attached mtd8 (name "ubi", size 128 MiB)
[ 4.891511] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 4.895860] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 4.902780] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 4.909625] ubi0: good PEBs: 1022, bad PEBs: 2, corrupted PEBs: 0
[ 4.916345] ubi0: user volume: 6, internal volumes: 1, max. volumes count: 128
[ 4.922629] ubi0: max/mean erase counter: 343/97, WL threshold: 4096, image sequence number: 1673397952
[ 4.929743] ubi0: available PEBs: 0, total reserved PEBs: 1022, PEBs reserved for bad PEB handling: 18
[ 4.939062] ubi0: background thread "ubi_bgt0d" started, PID 100
[ 4.941191] block ubiblock0_1: created from ubi0:1(rootfs)
▒[ 4.980679] Freeing unused kernel memory: 9216K) set to be root filesystem
[ 4.980952] Run /init as init process
[ 4.996447] init: Console is alive
[ 4.996680] init: - watchdog -
[ 5.007145] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.012192] dwc3-qcom 8af8800.usb3: IRQ hs_phy_irq not found
[ 5.012928] dwc3-qcom 8af8800.usb3: IRQ dp_hs_phy_irq not found
[ 5.018714] dwc3-qcom 8af8800.usb3: IRQ dm_hs_phy_irq not found
[ 5.024298] dwc3-qcom 8af8800.usb3: IRQ ss_phy_irq not found
[ 5.031936] dwc3-qcom 60f8800.usb2: IRQ hs_phy_irq not found
[ 5.036103] dwc3-qcom 60f8800.usb2: IRQ dp_hs_phy_irq not found
[ 5.041783] dwc3-qcom 60f8800.usb2: IRQ dm_hs_phy_irq not found
[ 5.047384] dwc3-qcom 60f8800.usb2: IRQ ss_phy_irq not found
[ 5.058109] dwc3 8a00000.dwc3: Failed to get clk 'ref': -2
[ 5.224009] dwc3 6000000.dwc3: Failed to get clk 'ref': -2
[ 5.359628] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 5.359784] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 5.364549] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f665 hci version 0x100 quirks 0x0000000002010010
[ 5.371730] xhci-hcd xhci-hcd.0.auto: irq 93, io mem 0x08a00000
[ 5.381905] hub 1-0:1.0: USB hub found
[ 5.386908] hub 1-0:1.0: 1 port detected
[ 5.391141] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 5.394775] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 5.400108] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[ 5.407756] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 5.414824] hub 2-0:1.0: USB hub found
[ 5.422519] hub 2-0:1.0: 1 port detected
[ 5.426511] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 5.430159] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[ 5.435614] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f665 hci version 0x100 quirks 0x0000000002010010
[ 5.443033] xhci-hcd xhci-hcd.1.auto: irq 94, io mem 0x06000000
[ 5.453174] hub 3-0:1.0: USB hub found
[ 5.458267] hub 3-0:1.0: 1 port detected
[ 5.462397] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 5.466130] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[ 5.471573] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 5.479213] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 5.486143] hub 4-0:1.0: USB hub found
[ 5.493905] hub 4-0:1.0: config failed, hub doesn't have any ports! (err -19)
[ 5.499104] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.508834] init: - preinit -
[ 5.828719] usb 3-1: new full-speed USB device number 2 using xhci-hcd
[ 5.981097] ess_edma c080000.edma: eth0: GMAC Link is down
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
[ 10.192540] procd: - early -
[ 10.192679] procd: - watchdog -
[ 10.739545] procd: - watchdog -
[ 10.742434] procd: - ubus -
[ 10.796526] procd: - init -
Please press Enter to activate this console.
[ 11.073312] kmodloader: loading kernel modules from /etc/modules.d/*
[ 11.081816] Loading modules backported from Linux version v5.8-0-gbcf876870b95
[ 11.081853] Backport generated by backports.git v5.8-1-0-g79400d9e
[ 11.100374] xt_time: kernel timezone is -0000
[ 11.106270] urngd: v1.0.2 started.
[ 11.133528] PPP generic driver version 2.4.2
[ 11.134459] NET: Registered protocol family 24
[ 11.157799] ath10k_mac_create, priv_size: 924 hw: 3fb145a8 hw->priv: 305f0158
[ 11.765298] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[ 11.765378] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[ 11.777201] ath10k_ahb a000000.wifi: firmware ver 10.4b-ct-4019-fW-13-8c5b2baa2 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 1f3ed50f
[ 11.834866] ath10k_ahb a000000.wifi: board_file api 2 bmi_id 0:16 crc32 e2dfaa91
[ 13.141903] ath10k_ahb a000000.wifi: unsupported HTC service id: 1536
[ 13.143328] ath10k_ahb a000000.wifi: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96
[ 13.147347] ath10k_ahb a000000.wifi: msdu-desc: 2500 skid: 32
[ 13.183697] ath10k_ahb a000000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0'
[ 13.184671] ath10k_ahb a000000.wifi: wmi print 'free: 53252 iram: 13576 sram: 35752'
[ 13.352650] ath10k_ahb a000000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[ 13.519279] ath10k_mac_create, priv_size: 924 hw: d4182570 hw->priv: 6d09574b
[ 14.225542] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[ 14.225598] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[ 14.244917] ath10k_ahb a800000.wifi: firmware ver 10.4b-ct-4019-fW-13-8c5b2baa2 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 1f3ed50f
[ 14.295821] ath10k_ahb a800000.wifi: board_file api 2 bmi_id 0:17 crc32 e2dfaa91
[ 15.603040] ath10k_ahb a800000.wifi: unsupported HTC service id: 1536
[ 15.604022] ath10k_ahb a800000.wifi: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96
[ 15.608478] ath10k_ahb a800000.wifi: msdu-desc: 2500 skid: 32
[ 15.645232] ath10k_ahb a800000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0 ct-sta: 0'
[ 15.646201] ath10k_ahb a800000.wifi: wmi print 'free: 53252 iram: 13576 sram: 35752'
[ 15.776522] ath10k_ahb a800000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[ 15.926576] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 34.833574] br-lan: port 1(eth0) entered blocking state
[ 34.833612] br-lan: port 1(eth0) entered disabled state
[ 34.837945] device eth0 entered promiscuous mode
[ 34.860115] ess_edma c080000.edma: eth1: GMAC Link is down
[ 39.050113] ess_edma c080000.edma: eth1: GMAC Link is up with phy_speed=1000
[ 39.051084] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready