realtek: allow writing to "u-boot-env2"
authorBjørn Mork <bjorn@mork.no>
Tue, 6 Apr 2021 09:43:05 +0000 (11:43 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 18 Apr 2021 10:06:57 +0000 (12:06 +0200)
U-Boot uses the "bootpartition" variable stored in
"u-boot-env2" to select the active system partition. Allow
updates to enable system switching from OpenWrt.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
(cherry picked from commit 11d24ffe961570533a4fc54a7511d30c17290623)

target/linux/realtek/dts/rtl8380_netgear_gigabit.dtsi
target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi
target/linux/realtek/dts/rtl8382_allnet_all-sg8208m.dts
target/linux/realtek/dts/rtl8382_d-link_dgs-1210-10p.dts
target/linux/realtek/dts/rtl8382_d-link_dgs-1210.dtsi

index d31eb7400145808fb62c43f2103d3a2124712734..0d34ca5dc221b97f10fe0ef46ac9fae3dabf114e 100644 (file)
@@ -61,7 +61,6 @@
                        partition@f0000 {
                                label = "u-boot-env2";
                                reg = <0x00f0000 0x0010000>;
-                               read-only;
                        };
 
                        partition@100000 {
index c4441ec30eef3224eee97d31cc2f388c8aa37c83..d61ac3b2b8f094859f946b7c56d027b77e26efe1 100644 (file)
@@ -79,7 +79,6 @@
                        partition@50000 {
                                label = "u-boot-env2";
                                reg = <0x50000 0x10000>;
-                               read-only;
                        };
                        partition@60000 {
                                label = "jffs";
index 681d699e8a326151ed94d08ecadd309c3c9d0472..fdcc01fdac410c5fe6391d9e8c321a78e5d60267 100644 (file)
@@ -79,7 +79,6 @@
                        partition@90000 {
                                label = "u-boot-env2";
                                reg = <0x90000 0x10000>;
-                               read-only;
                        };
 
                        partition@a0000 {
index a2ebdad11be012fda0f8d19f4e82696363fc214e..e2f5e7a4c0e15e765c195d0f8fe1d271ce1954d2 100644 (file)
@@ -77,7 +77,6 @@
                        partition@c0000 {
                                label = "u-boot-env2";
                                reg = <0x000c0000 0x40000>;
-                               read-only;
                        };
                        partition@280000 {
                                label = "firmware";
index e41c6f9f22e19eb72cf60b720ea21a5a43f15714..a14738c8a962d0b99cf42c4d26e0507be4d0ff45 100644 (file)
@@ -61,7 +61,6 @@
                        partition@c0000 {
                                label = "u-boot-env2";
                                reg = <0x000c0000 0x40000>;
-                               read-only;
                        };
                        partition@280000 {
                                label = "firmware";