[PATCH] base-files: fix sysupgrade with ubi and kernel sharing partition

Sungbo Eo mans0n at gorani.run
Wed May 4 08:09:54 PDT 2022

On 2022-05-02 17:10, Bjørn Mork wrote:
> Lanchon <lanchon at gmail.com> writes:
>> hi,
>> sorry for the delay. I didn't expect that kind of sharing.
> I can understand that. I have not been able to find any other examples,
> so I have to take full responsibility for this unexpected configuration.
> I guess I thought it would make sense to have a "Kernel" partition large
> enough to allow reverting to OEM firmware.
> But I recently found out that the bootloader can be configured to boot
> from "Kernel2", which means that we can document a "revert to OEM"
> procedure using that partition instead.  Will fail if/when we add dual
> image support to OpenWrt though.
> Another alternative is of course to add another partition for the
> OpenWrt kernel (pointed to by $CI_KERNPART), keeping the "Kernel" as an
> unused container only.  Maybe the safest solution?

How about using partition nesting here? I've started to use it for NAND
devices recently. One example:


More information about the openwrt-devel mailing list