IPQ4019 Sysupgrade not working

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?

I also tried changing the name of the partition to firmware (as that is common in many targets of ipq4xxx). After that I see followin in the kernel log-

[    2.095527] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64 
[    2.097909] spi-nor spi0.0: w25q256 (32768 Kbytes)                           
[    2.103718] 12 fixed-partitions partitions found on MTD device spi0.0        
[    2.108259] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions       
[    2.114785] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions       
[    2.121737] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions       
[    2.127691] OF: Bad cell count for /soc/spi@78b5000/flash@0/partitions       
[    2.134396] Creating 12 MTD partitions on "spi0.0":                          
[    2.140734] 0x000000000000-0x000000040000 : "0:SBL1"                         
[    2.146110] 0x000000040000-0x000000060000 : "0:MIBIB"                        
[    2.151341] 0x000000060000-0x0000000c0000 : "0:QSEE"                         
[    2.156225] 0x0000000c0000-0x0000000d0000 : "0:CDT"                          
[    2.161333] 0x0000000d0000-0x0000000e0000 : "0:DDRPARAMS"                    
[    2.165842] 0x0000000e0000-0x0000000f0000 : "0:APPSBLENV"                    
[    2.171427] 0x0000000f0000-0x000000170000 : "0:APPSBL"                       
[    2.176799] 0x000000170000-0x000000180000 : "0:ART"                          
[    2.181860] 0x000000180000-0x0000001c0000 : "nvram_backup"                   
[    2.186621] 0x0000001c0000-0x000000200000 : "nvram"                          
[    2.192167] 0x000000200000-0x000000700000 : "0:HLOS"                         
[    2.196966] 0x000000700000-0x000002000000 : "firmware"                       
[    2.249571] no rootfs found after FIT image in "firmware"                    
[    2.310227] i2c_dev: i2c /dev entries driver                                 
[    2.310532] i2c_qup 78b7000.i2c: using default clock-frequency 100000        
[    2.316480] sdhci: Secure Digital Host Controller Interface driver           
[    2.319953] sdhci: Copyright(c) Pierre Ossman                                
[    2.325986] sdhci-pltfm: SDHCI platform and OF driver helper                 
[    2.334665] NET: Registered PF_INET6 protocol family                         
[    2.337847] Segment Routing with IPv6                                        
[    2.341239] In-situ OAM (IOAM) with IPv6                                     
[    2.344751] NET: Registered PF_PACKET protocol family                        
[    2.348882] 8021q: 802.1Q VLAN Support v1.8                                  
[    2.353741] Registering SWP/SWPB emulation handler                           
[    2.371463] qca8k-ipq4019 c000000.switch: configuring for fixed/internal line
[    2.371749] qca8k-ipq4019 c000000.switch: Link is Up - 1Gbps/Full - flow conx
[    2.452205] qca8k-ipq4019 c000000.switch lan (uninitialized): PHY [90000.mdi)
[    2.503989] qca8k-ipq4019 c000000.switch wan (uninitialized): PHY [90000.mdi)
[    2.505022] DSA: tree 0 setup�[    2.517793] Waiting for root device ...

and now it can't be found ...

Yes. However, the sysupgrade image is same except name of the partition. Then why Linux kernel is unable to find the partition?

I tried to work with OpenWRT 24.10 with the same changes. OpenWRT 24.10 gives more detailed information when sysupgrade happens. Here is the log-
Does this give any clue about why failure to boot happens after sysupgrade?

[  113.159492] stage2 (2540): drop_caches: 3                                                                                                                                                                       
Sun Apr 13 16:41:43 UTC 2025 upgrade: Switching to ramdisk...                                                                                                                                                      
mount: mounting /dev/mtdblock12 on /overlay failed: Resource busy                                                                                                                                                  
[  116.845438] ------------[ cut here ]------------                                                                                                                                                                
[  116.845494] WARNING: CPU: 2 PID: 2540 at fs/super.c:695 generic_shutdown_super+0x118/0x170                                                                                                                      
[  116.849153] VFS: Busy inodes after unmount of jffs2 (jffs2)                                                                                                                                                     
[  116.849161] Modules linked in: pppoe ppp_async option nft_fib_inet nf_flow_table_inet cdc_mbim ath10k_pci(O) ath10k_core(O) ath(O) usb_wwan rndis_host pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_rec
[  116.919705] CPU: 2 PID: 2540 Comm: busybox Tainted: G           O       6.6.86 #0                                                                                                                               
[  116.941861] Hardware name: Generic DT based system                                                                                                                                                              
[  116.949504]  unwind_backtrace from show_stack+0x10/0x14                                                                                                                                                         
[  116.954184]  show_stack from dump_stack_lvl+0x40/0x4c                                                                                                                                                           
[  116.959304]  dump_stack_lvl from __warn+0x94/0xbc                                                                                                                                                               
[  116.964512]  __warn from warn_slowpath_fmt+0xf8/0x15c                                                                                                                                                           
[  116.969200]  warn_slowpath_fmt from generic_shutdown_super+0x118/0x170                                                                                                                                          
[  116.974237]  generic_shutdown_super from kill_mtd_super+0xc/0x20                                                                                                                                                
[  116.980661]  kill_mtd_super from jffs2_kill_sb+0x28/0x40                                                                                                                                                        
[  116.986821]  jffs2_kill_sb from deactivate_locked_super+0x4c/0x94                                                                                                                                               
[  116.992119]  deactivate_locked_super from cleanup_mnt+0xe4/0x174                                                                                                                                                
[  116.998110]  cleanup_mnt from task_work_run+0x8c/0xbc                                                                                                                                                           
[  117.004184]  task_work_run from do_work_pending+0x434/0x460                                                                                                                                                     
[  117.009131]  do_work_pending from slow_work_pending+0xc/0x24                                                                                                                                                    
[  117.014514] Exception stack(0xc36e1fb0 to 0xc36e1ff8)                                                                                                                                                           
[  117.020420] 1fa0:                                     00000000 00000000 00000000 00000000                                                                                                                       
[  117.025373] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000                                                                                                                       
[  117.033530] 1fe0: 00000000 bef50dd0 00000000 b6f42278 00000010 00000000                                                                                                                                         
[  117.041726] ---[ end trace 0000000000000000 ]---                                                                                                                                                                
Sun Apr 13 16:41:46 UTC 2025 upgrade: Performing system upgrade...                                                                                                                                                 
[  117.148177] do_stage2 (2540): drop_caches: 3                                                                                                                                                                    
Unlocking rootfs ...                                                                                                                                                                                               
                                                                                                                                                                                                                   
Writing from <stdin> to rootfs ...                                                                                                                                                                                 
Sun Apr 13 16:42:37 UTC 2025 upgrade: Upgrade completed                                                                                                                                                            
Sun Apr 13 16:42:38 UTC 2025 upgrade: Rebooting system...                                                                                                                                                          
umount: can't unmount /dev: Resource busy                                                                                                                                                                          
umount: can't unmount /tmp:

I compared 2 images- Working image and non-working image using binwalk. Here is the result-

binwalk OpenWrt.mtd11.rootfs.bin_working

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             Squashfs filesystem, little endian, version 4.0, compression:xz, size: 4386538 bytes, 1529 inodes, blocksize: 262144 bytes, created: 2025-04-13 16:38:32
4390912       0x430000        JFFS2 filesystem, little endian

binwalk OpenWrt.mtd11.rootfs.bin_notworking

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             Flattened device tree, size: 4977752 bytes, version: 17
228           0xE4            gzip compressed data, maximum compression, from Unix, last modified: 1970-01-01 00:00:00 (null date)
4957624       0x4BA5B8        Flattened device tree, size: 18768 bytes, version: 17
5242880       0x500000        Squashfs filesystem, little endian, version 4.0, compression:xz, size: 4386538 bytes, 1529 inodes, blocksize: 262144 bytes, created: 2025-04-13 16:38:32
9764864       0x950000        JFFS2 filesystem, little endian

The issue is solved. It was due to wrong partition in the dts.