[openwrt/openwrt] kirkwood: increase kernel partition of Linksyses

LEDE Commits lede-commits at lists.infradead.org
Wed Sep 15 06:17:32 PDT 2021


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/0e29e05deed1edd3884ca888ae7e1b549c84bfd0

commit 0e29e05deed1edd3884ca888ae7e1b549c84bfd0
Author: Pawel Dembicki <paweldembicki at gmail.com>
AuthorDate: Thu Jun 24 13:10:09 2021 +0200

    kirkwood: increase kernel partition of Linksyses
    
    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 at gmail.com>
---
 .../linux/kirkwood/files-5.4/arch/arm/boot/dts/kirkwood-ea3500.dts  | 4 ++--
 target/linux/kirkwood/patches-5.4/105-linksys-viper-dts.patch       | 6 ++++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/target/linux/kirkwood/files-5.4/arch/arm/boot/dts/kirkwood-ea3500.dts b/target/linux/kirkwood/files-5.4/arch/arm/boot/dts/kirkwood-ea3500.dts
index b41243d8dd..b911138541 100644
--- a/target/linux/kirkwood/files-5.4/arch/arm/boot/dts/kirkwood-ea3500.dts
+++ b/target/linux/kirkwood/files-5.4/arch/arm/boot/dts/kirkwood-ea3500.dts
@@ -165,7 +165,7 @@
 
 		partition at 200000 {
 			label = "kernel1";
-			reg = <0x200000 0x290000>;
+			reg = <0x200000 0x1400000>;
 		};
 
 		partition at 490000 {
@@ -175,7 +175,7 @@
 
 		partition at 1600000 {
 			label = "kernel2";
-			reg = <0x1600000 0x290000>;
+			reg = <0x1600000 0x1400000>;
 		};
 
 		partition at 1890000 {
diff --git a/target/linux/kirkwood/patches-5.4/105-linksys-viper-dts.patch b/target/linux/kirkwood/patches-5.4/105-linksys-viper-dts.patch
index 0d97ad14a2..0933b567e4 100644
--- a/target/linux/kirkwood/patches-5.4/105-linksys-viper-dts.patch
+++ b/target/linux/kirkwood/patches-5.4/105-linksys-viper-dts.patch
@@ -28,8 +28,9 @@
  
  		partition at 200000 {
 -			label = "kernel";
+-			reg = <0x200000 0x2A0000>;
 +			label = "kernel1";
- 			reg = <0x200000 0x2A0000>;
++			reg = <0x200000 0x1A00000>;
  		};
  
  		partition at 4a0000 {
@@ -40,8 +41,9 @@
  
  		partition at 1c00000 {
 -			label = "alt_kernel";
+-			reg = <0x1C00000 0x2A0000>;
 +			label = "kernel2";
- 			reg = <0x1C00000 0x2A0000>;
++			reg = <0x1C00000 0x1A00000>;
  		};
  
  		partition at 1ea0000 {



More information about the lede-commits mailing list