]> git.ipfire.org Git - thirdparty/openwrt.git/commit
gemini: override IB-4220-B partitions for firmware
authorLinus Walleij <linusw@kernel.org>
Mon, 26 Jan 2026 07:21:29 +0000 (08:21 +0100)
committerLinus Walleij <linusw@kernel.org>
Tue, 3 Feb 2026 12:33:12 +0000 (13:33 +0100)
commit387752dc76ba2de2510147427ff1361dfd90c556
tree6e2e11e81faa7d2bf57e74902170effa8f2798e6
parent5ac8f14ccb078d136db17716eff3a85685e55f9b
gemini: override IB-4220-B partitions for firmware

To optimize the flash usage and to make firmware upgrades
simpler, catenate the three firmware partitions "Kern",
"Ramdisk" and "Application" into one, and use all of this
for the combined MTD-splitted kernel+rootfs.

This works fine as long as the kernel is placed in the
beginning of this firmware partition and we leave the
RedBoot partition as is, so the boot loader still can load
the kernel from the first two RedBoot partitions.

Using the RedBoot partitions "as is" can be considered
harmful, because when you flash to a RedBoot partition the
file size is used for downsizing of the partition and make
firmware upgrades fail if they are larger than the RedBoot
partition size after flashing, despite there is actually
flash there. So overriding with fixed partitions is just
generally a good idea.

Link: https://github.com/openwrt/openwrt/pull/21820
Signed-off-by: Linus Walleij <linusw@kernel.org>
target/linux/gemini/base-files/lib/upgrade/platform.sh
target/linux/gemini/config-6.12
target/linux/gemini/image/Makefile
target/linux/gemini/patches-6.12/303-gemini-augment-DTS-with-botched-partitions.patch [new file with mode: 0644]