mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
0e29e05dee
At this moment kernel partition in Linksyses EA3500/E4200/EA4500 is ended before start of rootfs partition. It was introduced in9808b9ae02
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>
55 lines
1.1 KiB
Diff
55 lines
1.1 KiB
Diff
--- a/arch/arm/boot/dts/kirkwood-linksys-viper.dts
|
|
+++ b/arch/arm/boot/dts/kirkwood-linksys-viper.dts
|
|
@@ -24,6 +24,10 @@
|
|
};
|
|
|
|
aliases {
|
|
+ led-boot = &led_white_health;
|
|
+ led-failsafe = &led_white_health;
|
|
+ led-running = &led_white_health;
|
|
+ led-upgrade = &led_white_health;
|
|
serial0 = &uart0;
|
|
};
|
|
|
|
@@ -56,9 +60,10 @@
|
|
pinctrl-0 = < &pmx_led_white_health &pmx_led_white_pulse >;
|
|
pinctrl-names = "default";
|
|
|
|
- white-health {
|
|
+ led_white_health: white-health {
|
|
label = "viper:white:health";
|
|
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
|
|
+ default-state = "on";
|
|
};
|
|
|
|
white-pulse {
|
|
@@ -114,22 +119,22 @@
|
|
};
|
|
|
|
partition@200000 {
|
|
- label = "kernel";
|
|
- reg = <0x200000 0x2A0000>;
|
|
+ label = "kernel1";
|
|
+ reg = <0x200000 0x1A00000>;
|
|
};
|
|
|
|
partition@4a0000 {
|
|
- label = "rootfs";
|
|
+ label = "rootfs1";
|
|
reg = <0x4A0000 0x1760000>;
|
|
};
|
|
|
|
partition@1c00000 {
|
|
- label = "alt_kernel";
|
|
- reg = <0x1C00000 0x2A0000>;
|
|
+ label = "kernel2";
|
|
+ reg = <0x1C00000 0x1A00000>;
|
|
};
|
|
|
|
partition@1ea0000 {
|
|
- label = "alt_rootfs";
|
|
+ label = "rootfs2";
|
|
reg = <0x1EA0000 0x1760000>;
|
|
};
|
|
|