Does sysupgrade apply a change in partition layout in the DTS?

Does sysupgrade apply a change in partition layout in the DTS? I have two AX53U devices and by chance one of them runs a snapshot before and one from after this commit:

https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=787ecdf66de6798540fb8b756404566341b4733c

And indeed they have separate layouts. If I sysupgrade them in the future, will the old layout be upgraded/changed, or do I have to do something?

DTS is hardcoded into the image so yes.

1 Like

But as kernel and rootfs are flashed separately in sysupgrade, based on the old (currently running) DTS partitions, it is quite possible that you brick the device if the new version's DTS expects a different structure.

In most cases where the kernel/rootfs size is changed, you need a flash with the factory image, as sysupgrade fails.

(I didn't look into details of this specific DTS change.)

1 Like

Ah, you're saying that perhaps, instead of a sysupgrade (of the one that runs the image from before the change), I should somehow write the factory image instead of the sysupgrade image? Going from stock to OpenWRT, I had to do the following. Repeat that?

mtd-write -i openwrt-22.03.3-ramips-mt7621-asus_rt-ax53u-squashfs-factory.bin -d Kernel

Not exactly. Depending of the partition structure, that really ancient command might be wrong. (you apparently edited the ancient command away while I was writing)

What are the instructions for your device??? what has been the discussion regarding this change?

Based on https://github.com/openwrt/openwrt/commit/787ecdf66de6798540fb8b756404566341b4733c
the relevant discussion might be in

You might read that for advice / warnings / success stories.

Thanks. I will study it. The mtd-write command worked fine and is from the device page.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.