realtek: merge Zyxel GS1900 firmware partitions
authorSander Vanheule <sander@svanheule.net>
Sat, 21 Sep 2024 13:09:34 +0000 (15:09 +0200)
committerSander Vanheule <sander@svanheule.net>
Sun, 22 Dec 2024 18:22:58 +0000 (19:22 +0100)
commit654c9732dc3ff6172d87c57b19b3d4cf0e5c0c44
tree47b53eb5a1d6394ca2a7a983d4ee0cf15af86af8
parentfeb7a2a232ade8803920fc56220b77e4f8114301
realtek: merge Zyxel GS1900 firmware partitions

The dual-boot partition layout for the Zyxel GS1900 switches results in
6.9MB for both kernel and rootfs. Depending on the package selection,
this may already leave no space for the user overlay.

Merge the two firmware partitions, effectively dropping dual boot
support with OpenWrt. This results in a firmware partition of 13.9MB,
which should leave some room for the future.

To maintain install capabilites on new devices, an image is required
that still fits inside the original partition. The initramfs is used as
factory install image, so ensure this meets the old size constraints.
The factory image can be flashed via the same procedure as vendor images
when reverting to stock, can be installed from stock, or can be launched
via tftpboot.

Link: https://github.com/openwrt/openwrt/issues/16439
Link: https://github.com/openwrt/openwrt/pull/16442
Tested-by: Stijn Segers <foss@volatilesystems.org>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
(cherry picked from commit 35acdbe9095d81e896a2dfa65e7df871a023b996)
target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi
target/linux/realtek/dts/rtl8393_zyxel_gs1900-48.dts
target/linux/realtek/image/common.mk