Hi Folks !
I originally posted this here: Owut: OpenWrt Upgrade Tool - #354 by ozbenh but it was suggested I open a new topic so here it is.
TL;DR, generating a 24.10 rc4 update image for my AX6000 running rc2 results in an image that, while it looks valid, doesn't actually result in an upgrade of the router when fed into sysupgrade.
Details:
-
Xiaomi Redmi AX6000, originally "converted" to ubootmod (ie, using openwrt's uboot and partition layout) using 23.05.5 then updated to 24.10-rc2 successfully (I don't remember if I used owut/auc for this or not).
-
The image generated by owut/ASU is https://sysupgrade.openwrt.org/store/613e361ca4bf0ef501097a259249fd8a4a8aa4c7dbb0a688c1e6ab4016a50304/openwrt-24.10.0-rc4-b493cdd71979-mediatek-filogic-xiaomi_redmi-router-ax6000-ubootmod-squashfs-sysupgrade.itb
-
Flash layout, command line, etc... look fine:
root@OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "BL2"
mtd1: 00040000 00020000 "Nvram"
mtd2: 00040000 00020000 "Bdata"
mtd3: 00200000 00020000 "Factory"
mtd4: 00200000 00020000 "FIP"
mtd5: 07a80000 00020000 "ubi"
root@OpenWrt:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mtdblock0 31:0 0 1M 1 disk
mtdblock1 31:1 0 256K 0 disk
mtdblock2 31:2 0 256K 0 disk
mtdblock3 31:3 0 2M 1 disk
mtdblock4 31:4 0 2M 1 disk
mtdblock5 31:5 0 122.5M 0 disk
ubiblock0_3 254:0 0 11M 0 disk
fit0 259:0 0 5.5M 1 disk /rom
root@OpenWrt:/tmp# cat /proc/cmdline
console=ttyS0,115200n8 console_msg_format=syslog root=/dev/fit0 rootwait
root@OpenWrt:/tmp# sysupgrade --test -v /tmp/openwrt-24.10.0-rc4-b493cdd71979-mediatek-filogic-xiaomi_redmi-router-ax6000-ubootmod-squashfs-
sysupgrade.itb
root@OpenWrt:/tmp# echo $?
0
root@OpenWrt:/tmp#```
- There is no error from sysupgrade, the router reboots as expected by simply comes back with my -rc2 image. It's my existing image, not something else, as some packages I had installed with
opkg
such aslsblk
are still there. It simply doesn't do anything.
The same thing happens wether I run owut upgrade
, owut download
followed by sysupgrade, download of the image above with sysupgrade etc...
Is there any way to have sysupgrade leave some logs somwhere in flash ? I don't have a serial port hooked up to this router.