kirkwood: increase kernel partition of Linksyses
authorPawel Dembicki <paweldembicki@gmail.com>
Thu, 24 Jun 2021 11:10:09 +0000 (13:10 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 13 Sep 2021 13:24:35 +0000 (15:24 +0200)
At this moment kernel partition in Linksyses EA3500/E4200/EA4500 is
ended before start of rootfs partition. It was introduced in 9808b9ae02
and it broke easy revert to stock. Sysupgrade, when OFW is used, write
whole stock image to kernel partition. Most likeley image will be bigger
than small kernel partition and it make stock system invalid.

This patch change size of kernel partitions and now it overlaps rootfs.
Revert to stock will be possible again.

Fixes: 9808b9ae02 ("kirkwood: switch to kernel 4.9")
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
target/linux/kirkwood/files-5.4/arch/arm/boot/dts/kirkwood-ea3500.dts
target/linux/kirkwood/patches-5.4/105-linksys-viper-dts.patch

index b41243d8dde12cd20337472f38c6bffcf5e6df17..b911138541737c661b262dbd5afe4ab3f09af1e1 100644 (file)
 
                partition@200000 {
                        label = "kernel1";
-                       reg = <0x200000 0x290000>;
+                       reg = <0x200000 0x1400000>;
                };
 
                partition@490000 {
 
                partition@1600000 {
                        label = "kernel2";
-                       reg = <0x1600000 0x290000>;
+                       reg = <0x1600000 0x1400000>;
                };
 
                partition@1890000 {
index 0d97ad14a2a8f157880e47af5e9377724e7fa520..0933b567e47d5734045afdfd2dad97b4b854fe0c 100644 (file)
@@ -28,8 +28,9 @@
  
                partition@200000 {
 -                      label = "kernel";
+-                      reg = <0x200000 0x2A0000>;
 +                      label = "kernel1";
-                       reg = <0x200000 0x2A0000>;
++                      reg = <0x200000 0x1A00000>;
                };
  
                partition@4a0000 {
@@ -40,8 +41,9 @@
  
                partition@1c00000 {
 -                      label = "alt_kernel";
+-                      reg = <0x1C00000 0x2A0000>;
 +                      label = "kernel2";
-                       reg = <0x1C00000 0x2A0000>;
++                      reg = <0x1C00000 0x1A00000>;
                };
  
                partition@1ea0000 {