12/9/21 10:14 PM, Ivar Orskaug:
Hi,
P2812HNUF3 is currently broken in main because of the kernel 5.10
increase in size. This patch increases the kernel flash partition to
3072k, aligning with P2812HNUF1. Would it be possible to apply it to
main?
Regards Ivar
diff --git
a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_zyxel_p-2812hnu-f3.dts
b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_zyxel_p-2812hnu-f3.dts
index 376cdaeb61..86520247d0 100644
---
a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_zyxel_p-2812hnu-f3.dts
+++
b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_zyxel_p-2812hnu-f3.dts
@@ -55,11 +55,11 @@
partition@0 {
label = "kernel";
- reg = <0x0 0x200000>;
+ reg = <0x0 0x300000>;
};
- partition@200000 {
+ partition@300000 {
label = "ubi";
- reg = <0x200000 0x7e00000>;
+ reg = <0x300000 0x7d00000>;
};
};
};
diff --git a/target/linux/lantiq/image/vr9.mk b/target/linux/lantiq/image/vr9.mk
index 909479587c..9e9818bdbf 100644
--- a/target/linux/lantiq/image/vr9.mk
+++ b/target/linux/lantiq/image/vr9.mk
@@ -282,7 +282,7 @@ define Device/zyxel_p-2812hnu-f3
DEVICE_VARIANT := F3
BOARD_NAME := P2812HNUF3
DEVICE_PACKAGES := kmod-rt2800-pci wpad-basic-wolfssl kmod-usb-dwc2
- KERNEL_SIZE := 2048k
+ KERNEL_SIZE := 3072k
SUPPORTED_DEVICES += P2812HNUF3
DEFAULT := n
endef
I'm quite sure it's only half of the fix. Isn't is necessary to change
u-boots bootcmd as well to increase the number of to be read bytes to 3072k?
Please provide some kind of migration guide in the commit message. I'm
in doubt that only sysupgrading to the changed image is all that's required.
Finally, if you have a migration path, you can enable the default build
of the P2812HNUF3 image by dropping the "DEFAULT := n".
Mathias
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel