[openwrt/openwrt] realtek: allow writing to "u-boot-env2"

LEDE Commits lede-commits at lists.infradead.org
Sun Apr 18 13:15:45 BST 2021


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

commit 59980f7aaf585e65f87730b2f77d55662c362f22
Author: Bjørn Mork <bjorn at mork.no>
AuthorDate: Tue Apr 6 11:43:05 2021 +0200

    realtek: allow writing to "u-boot-env2"
    
    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 at mork.no>
    (cherry picked from commit 11d24ffe961570533a4fc54a7511d30c17290623)
---
 target/linux/realtek/dts/rtl8380_netgear_gigabit.dtsi    | 1 -
 target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi       | 1 -
 target/linux/realtek/dts/rtl8382_allnet_all-sg8208m.dts  | 1 -
 target/linux/realtek/dts/rtl8382_d-link_dgs-1210-10p.dts | 1 -
 target/linux/realtek/dts/rtl8382_d-link_dgs-1210.dtsi    | 1 -
 5 files changed, 5 deletions(-)

diff --git a/target/linux/realtek/dts/rtl8380_netgear_gigabit.dtsi b/target/linux/realtek/dts/rtl8380_netgear_gigabit.dtsi
index d31eb74001..0d34ca5dc2 100644
--- a/target/linux/realtek/dts/rtl8380_netgear_gigabit.dtsi
+++ b/target/linux/realtek/dts/rtl8380_netgear_gigabit.dtsi
@@ -61,7 +61,6 @@
 			partition at f0000 {
 				label = "u-boot-env2";
 				reg = <0x00f0000 0x0010000>;
-				read-only;
 			};
 
 			partition at 100000 {
diff --git a/target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi b/target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi
index c4441ec30e..d61ac3b2b8 100644
--- a/target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi
+++ b/target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi
@@ -79,7 +79,6 @@
 			partition at 50000 {
 				label = "u-boot-env2";
 				reg = <0x50000 0x10000>;
-				read-only;
 			};
 			partition at 60000 {
 				label = "jffs";
diff --git a/target/linux/realtek/dts/rtl8382_allnet_all-sg8208m.dts b/target/linux/realtek/dts/rtl8382_allnet_all-sg8208m.dts
index 681d699e8a..fdcc01fdac 100644
--- a/target/linux/realtek/dts/rtl8382_allnet_all-sg8208m.dts
+++ b/target/linux/realtek/dts/rtl8382_allnet_all-sg8208m.dts
@@ -79,7 +79,6 @@
 			partition at 90000 {
 				label = "u-boot-env2";
 				reg = <0x90000 0x10000>;
-				read-only;
 			};
 
 			partition at a0000 {
diff --git a/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-10p.dts b/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-10p.dts
index a2ebdad11b..e2f5e7a4c0 100644
--- a/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-10p.dts
+++ b/target/linux/realtek/dts/rtl8382_d-link_dgs-1210-10p.dts
@@ -77,7 +77,6 @@
 			partition at c0000 {
 				label = "u-boot-env2";
 				reg = <0x000c0000 0x40000>;
-				read-only;
 			};
 			partition at 280000 {
 				label = "firmware";
diff --git a/target/linux/realtek/dts/rtl8382_d-link_dgs-1210.dtsi b/target/linux/realtek/dts/rtl8382_d-link_dgs-1210.dtsi
index e41c6f9f22..a14738c8a9 100644
--- a/target/linux/realtek/dts/rtl8382_d-link_dgs-1210.dtsi
+++ b/target/linux/realtek/dts/rtl8382_d-link_dgs-1210.dtsi
@@ -61,7 +61,6 @@
 			partition at c0000 {
 				label = "u-boot-env2";
 				reg = <0x000c0000 0x40000>;
-				read-only;
 			};
 			partition at 280000 {
 				label = "firmware";



More information about the lede-commits mailing list