I am working to port a 5G mobile router based on IPQ4019. I ported from DK07.1-C1 targer as the main board seems to be most closer to that. I flashed the sysupgrade image from the uboot login using TFTP and UBoot Console and router works perfectly.
The problem I am facing is when I tried to test the upgrade firmware functionality. I used the same sysupgrade image which works fine using TFTP+UBoot. But the same image fails when I try to install using System Upgrade from Luci Web UI.
I am showing relevant sections in kernel log-
Working (TFTP+UBoot)-
[ 2.085486] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[ 2.087881] spi-nor spi0.0: w25q256 (32768 Kbytes) [ 2.093678] 12 fixed-partitions partitions found on MTD device spi0.0
[ 2.098209] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions
[ 2.104735] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions
[ 2.111683] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions
[ 2.117641] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions
[ 2.124337] Creating 12 MTD partitions on "spi0.0":
[ 2.130686] 0x000000000000-0x000000040000 : "0:SBL1"
[ 2.136059] 0x000000040000-0x000000060000 : "0:MIBIB"
[ 2.141305] 0x000000060000-0x0000000c0000 : "0:QSEE"
[ 2.146166] 0x0000000c0000-0x0000000d0000 : "0:CDT"
[ 2.151284] 0x0000000d0000-0x0000000e0000 : "0:DDRPARAMS"
[ 2.155798] 0x0000000e0000-0x0000000f0000 : "0:APPSBLENV"
[ 2.161365] 0x0000000f0000-0x000000170000 : "0:APPSBL"
[ 2.166728] 0x000000170000-0x000000180000 : "0:ART"
[ 2.171843] 0x000000180000-0x0000001c0000 : "nvram_backup"
[ 2.176568] 0x0000001c0000-0x000000200000 : "nvram"
[ 2.182125] 0x000000200000-0x000000700000 : "0:HLOS"
[ 2.186920] 0x000000700000-0x000002000000 : "rootfs"
[ 2.192213] mtd: setting mtd11 (rootfs) as root device
[ 2.196670] 1 squashfs-split partitions found on MTD device rootfs
[ 2.201434] 0x000001120000-0x000002000000 : "rootfs_data"
[ 2.255804] no rootfs found after FIT image in "rootfs"
Failed when same image is flashed using Luci Web UI-
[ 2.095541] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[ 2.097924] spi-nor spi0.0: w25q256 (32768 Kbytes)
[ 2.103754] 12 fixed-partitions partitions found on MTD device spi0.0
[ 2.108269] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions
[ 2.114788] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions
[ 2.121732] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions
[ 2.127700] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions
[ 2.134403] Creating 12 MTD partitions on "spi0.0":
[ 2.140744] 0x000000000000-0x000000040000 : "0:SBL1"
[ 2.146106] 0x000000040000-0x000000060000 : "0:MIBIB"
[ 2.151351] 0x000000060000-0x0000000c0000 : "0:QSEE"
[ 2.156228] 0x0000000c0000-0x0000000d0000 : "0:CDT"
[ 2.161352] 0x0000000d0000-0x0000000e0000 : "0:DDRPARAMS"
[ 2.165848] 0x0000000e0000-0x0000000f0000 : "0:APPSBLENV"
[ 2.171437] 0x0000000f0000-0x000000170000 : "0:APPSBL"
[ 2.176818] 0x000000170000-0x000000180000 : "0:ART"
[ 2.181869] 0x000000180000-0x0000001c0000 : "nvram_backup"
[ 2.186627] 0x0000001c0000-0x000000200000 : "nvram"
[ 2.192174] 0x000000200000-0x000000700000 : "0:HLOS"
[ 2.196977] 0x000000700000-0x000002000000 : "rootfs"
[ 2.202264] mtd: setting mtd11 (rootfs) as root device
[ 2.206727] mtdsplit: no squashfs found in "rootfs"
[ 2.213086] 2 fit-fw partitions found on MTD device rootfs
[ 2.216221] Creating 2 MTD partitions on "rootfs":
[ 2.221808] 0x000000000000-0x000000430000 : "kernel"
[ 2.227099] 0x000000500000-0x000001900000 : "rootfs"
[ 2.293914] i2c_dev: i2c /dev entries driver
[ 2.294182] i2c_qup 78b7000.i2c: using default clock-frequency 100000
[ 2.300201] sdhci: Secure Digital Host Controller Interface driver
[ 2.303600] sdhci: Copyright(c) Pierre Ossman
[ 2.309717] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.318326] NET: Registered PF_INET6 protocol family
[ 2.321520] Segment Routing with IPv6
[ 2.324846] In-situ OAM (IOAM) with IPv6
[ 2.328436] NET: Registered PF_PACKET protocol family
[ 2.332643] 8021q: 802.1Q VLAN Support v1.8
[ 2.337381] Registering SWP/SWPB emulation handler
[ 2.355353] qca8k-ipq4019 c000000.switch: configuring for fixed/internal link
mode
[ 2.355603] qca8k-ipq4019 c000000.switch: Link is Up - 1Gbps/Full - flow cont
rol rx/tx
[ 2.442228] qca8k-ipq4019 c000000.switch lan (uninitialized): PHY [90000.mdio
-1:02] driver [Qualcomm QCA8075] (irq=POLL)
[ 2.523586] qca8k-ipq4019 c000000.switch wan (uninitialized): PHY [90000.mdio
-1:04] driver [Qualcomm QCA8075] (irq=POLL)
[ 2.524543] DSA: tree 0 setup�[ 2.538450] List of all partitions:
[ 2.538508] 1f00 256 mtdblock0
[ 2.538520] (driver?)
[ 2.544924] 1f01 128 mtdblock1
[ 2.544935] (driver?)
[ 2.551455] 1f02 384 mtdblock2
[ 2.551465] (driver?)
[ 2.557941] 1f03 64 mtdblock3
[ 2.557950] (driver?)
[ 2.564454] 1f04 64 mtdblock4
[ 2.564463] (driver?)
[ 2.570977] 1f05 64 mtdblock5
[ 2.570986] (driver?)
[ 2.577473] 1f06 512 mtdblock6
[ 2.577481] (driver?)
[ 2.583984] 1f07 64 mtdblock7
[ 2.583993] (driver?)
[ 2.590507] 1f08 256 mtdblock8
[ 2.590516] (driver?)
[ 2.597005] 1f09 256 mtdblock9
[ 2.597013] (driver?)
[ 2.603516] 1f0a 5120 mtdblock10
[ 2.603524] (driver?)
[ 2.610386] 1f0b 25600 mtdblock11
[ 2.610395] (driver?)
[ 2.616969] 1f0c 4288 mtdblock12
[ 2.616978] (driver?)
[ 2.623568] 1f0d 20480 mtdblock13
[ 2.623577] (driver?)
[ 2.630174] No filesystem could mount root, tried:
[ 2.630179] squashfs
[ 2.632332]
[ 2.639562] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno
wn-block(31,11)
[ 2.641113] CPU2: stopping
[ 2.649520] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 5.15.167 #0
[ 2.652039] Hardware name: Generic DT based system
[ 2.658212] [<c030d224>] (unwind_backtrace) from [<c030969c>] (show_stack+0x1
0/0x14)
[ 2.662898] [<c030969c>] (show_stack) from [<c06063e4>] (dump_stack_lvl+0x40/
0x4c)
[ 2.670796] [<c06063e4>] (dump_stack_lvl) from [<c030bdbc>] (do_handle_IPI+0x
f8/0x12c)
[ 2.678174] [<c030bdbc>] (do_handle_IPI) from [<c030be08>] (ipi_handler+0x18/
0x20)
[ 2.686070] [<c030be08>] (ipi_handler) from [<c0376380>] (handle_percpu_devid
_irq+0x78/0x13c)
[ 2.693627] [<c0376380>] (handle_percpu_devid_irq) from [<c0370574>] (handle_
domain_irq+0x5c/0x78)
[ 2.702221] [<c0370574>] (handle_domain_irq) from [<c03012a4>] (gic_handle_ir
q+0x7c/0x90)
[ 2.711073] [<c03012a4>] (gic_handle_irq) from [<c0300b3c>] (__irq_svc+0x5c/0
x78)
[ 2.719318] Exception stack(0xc108bf58 to 0xc108bfa0)
[ 2.726782] bf40: 00000
370 00000000
[ 2.731824] bf60: 00000001 c0312ce0 00000002 c0d04f28 c108a000 00000000 00000
000 ffffe000
[ 2.739984] bf80: 00000000 c0d04f5c 00000002 c108bfa8 c0306ed8 c0306edc 60000
013 ffffffff
[ 2.748140] [<c0300b3c>] (__irq_svc) from [<c0306edc>] (arch_cpu_idle+0x38/0x
3c)
[ 2.756299] [<c0306edc>] (arch_cpu_idle) from [<c0351874>] (do_idle+0x238/0x2
98)
[ 2.763764] [<c0351874>] (do_idle) from [<c0351bd8>] (cpu_startup_entry+0x18/
0x1c)
[ 2.771141] [<c0351bd8>] (cpu_startup_entry) from [<80301350>] (0x80301350)
[ 2.778520] CPU3: stopping
[ 2.785369] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 5.15.167 #0
[ 2.788150] Hardware name: Generic DT based system
[ 2.794316] [<c030d224>] (unwind_backtrace) from [<c030969c>] (show_stack+0x1
0/0x14)
[ 2.799007] [<c030969c>] (show_stack) from [<c06063e4>] (dump_stack_lvl+0x40/
0x4c)
[ 2.806906] [<c06063e4>] (dump_stack_lvl) from [<c030bdbc>] (do_handle_IPI+0x
f8/0x12c)
[ 2.814282] [<c030bdbc>] (do_handle_IPI) from [<c030be08>] (ipi_handler+0x18/
0x20)
[ 2.822181] [<c030be08>] (ipi_handler) from [<c0376380>] (handle_percpu_devid
_irq+0x78/0x13c)
[ 2.829738] [<c0376380>] (handle_percpu_devid_irq) from [<c0370574>] (handle_
domain_irq+0x5c/0x78)
[ 2.838329] [<c0370574>] (handle_domain_irq) from [<c03012a4>] (gic_handle_ir
q+0x7c/0x90)
[ 2.847182] [<c03012a4>] (gic_handle_irq) from [<c0300b3c>] (__irq_svc+0x5c/0
x78)
[ 2.855427] Exception stack(0xc108df58 to 0xc108dfa0)
[ 2.862893] df40: 00000
444 00000000
[ 2.867937] df60: 00000001 c0312ce0 00000003 c0d04f28 c108c000 00000000 00000
000 ffffe000
[ 2.876094] df80: 00000000 c0d04f5c 00000003 c108dfa8 c0306ed8 c0306edc 60000
013 ffffffff
[ 2.884251] [<c0300b3c>] (__irq_svc) from [<c0306edc>] (arch_cpu_idle+0x38/0x
3c)
[ 2.892409] [<c0306edc>] (arch_cpu_idle) from [<c0351874>] (do_idle+0x238/0x2
98)
[ 2.899871] [<c0351874>] (do_idle) from [<c0351bd8>] (cpu_startup_entry+0x18/
0x1c)
[ 2.907250] [<c0351bd8>] (cpu_startup_entry) from [<80301350>] (0x80301350)
[ 2.914630] CPU1: stopping
[ 2.921479] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.15.167 #0
[ 2.924261] Hardware name: Generic DT based system
[ 2.930425] [<c030d224>] (unwind_backtrace) from [<c030969c>] (show_stack+0x1
0/0x14)
[ 2.935117] [<c030969c>] (show_stack) from [<c06063e4>] (dump_stack_lvl+0x40/
0x4c)
[ 2.943017] [<c06063e4>] (dump_stack_lvl) from [<c030bdbc>] (do_handle_IPI+0x
f8/0x12c)
[ 2.950392] [<c030bdbc>] (do_handle_IPI) from [<c030be08>] (ipi_handler+0x18/
0x20)
[ 2.958292] [<c030be08>] (ipi_handler) from [<c0376380>] (handle_percpu_devid
_irq+0x78/0x13c)
[ 2.965848] [<c0376380>] (handle_percpu_devid_irq) from [<c0370574>] (handle_
domain_irq+0x5c/0x78)
[ 2.974443] [<c0370574>] (handle_domain_irq) from [<c03012a4>] (gic_handle_ir
q+0x7c/0x90)
[ 2.983294] [<c03012a4>] (gic_handle_irq) from [<c0300b3c>] (__irq_svc+0x5c/0
x78)
[ 2.991537] Exception stack(0xc1089f58 to 0xc1089fa0)
[ 2.999004] 9f40: 00000
3da 00000000
[ 3.004045] 9f60: 00000001 c0312ce0 00000001 c0d04f28 c1088000 00000000 00000
000 ffffe000
[ 3.012205] 9f80: 00000000 c0d04f5c 00000001 c1089fa8 c0306ed8 c0306edc 60000
013 ffffffff
[ 3.020362] [<c0300b3c>] (__irq_svc) from [<c0306edc>] (arch_cpu_idle+0x38/0x
3c)
[ 3.028518] [<c0306edc>] (arch_cpu_idle) from [<c0351874>] (do_idle+0x238/0x2
98)
[ 3.035982] [<c0351874>] (do_idle) from [<c0351bd8>] (cpu_startup_entry+0x18/
0x1c)
[ 3.043362] [<c0351bd8>] (cpu_startup_entry) from [<80301350>] (0x80301350)
[ 3.050749] Rebooting in 1 seconds..
Can someone guide why is it failing? The difference between the two logs is that when it fails, it is not able to see rootfa_data for some reason.
Or could it be some other reason?