From: Bjørn Mork Date: Tue, 6 Apr 2021 09:43:05 +0000 (+0200) Subject: realtek: allow writing to "u-boot-env2" X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=11d24ffe961570533a4fc54a7511d30c17290623;p=openwrt%2Fstaging%2Fnbd.git 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 --- 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@f0000 { label = "u-boot-env2"; reg = <0x00f0000 0x0010000>; - read-only; }; partition@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@50000 { label = "u-boot-env2"; reg = <0x50000 0x10000>; - read-only; }; partition@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@90000 { label = "u-boot-env2"; reg = <0x90000 0x10000>; - read-only; }; partition@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@c0000 { label = "u-boot-env2"; reg = <0x000c0000 0x40000>; - read-only; }; partition@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@c0000 { label = "u-boot-env2"; reg = <0x000c0000 0x40000>; - read-only; }; partition@280000 { label = "firmware";