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.

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>
This commit is contained in:
Sander Vanheule 2024-09-21 15:09:34 +02:00
parent 18cbd19c8d
commit c7d2887c41
3 changed files with 3 additions and 11 deletions

View File

@ -91,14 +91,10 @@
}; };
partition@b260000 { partition@b260000 {
label = "firmware"; label = "firmware";
reg = <0x260000 0x6d0000>; reg = <0x260000 0xda0000>;
compatible = "openwrt,uimage", "denx,uimage"; compatible = "openwrt,uimage", "denx,uimage";
openwrt,ih-magic = <0x83800000>; openwrt,ih-magic = <0x83800000>;
}; };
partition@930000 {
label = "runtime2";
reg = <0x930000 0x6d0000>;
};
}; };
}; };
}; };

View File

@ -126,14 +126,10 @@
}; };
partition@260000 { partition@260000 {
label = "firmware"; label = "firmware";
reg = <0x260000 0x6d0000>; reg = <0x260000 0xda0000>;
compatible = "openwrt,uimage", "denx,uimage"; compatible = "openwrt,uimage", "denx,uimage";
openwrt,ih-magic = <0x83800000>; openwrt,ih-magic = <0x83800000>;
}; };
partition@930000 {
label = "runtime2";
reg = <0x930000 0x6d0000>;
};
}; };
}; };
}; };

View File

@ -58,7 +58,7 @@ endef
define Device/zyxel_gs1900 define Device/zyxel_gs1900
DEVICE_VENDOR := Zyxel DEVICE_VENDOR := Zyxel
IMAGE_SIZE := 6976k IMAGE_SIZE := 13952k
UIMAGE_MAGIC := 0x83800000 UIMAGE_MAGIC := 0x83800000
KERNEL_INITRAMFS := \ KERNEL_INITRAMFS := \
kernel-bin | \ kernel-bin | \