[PATCH v3 3/3] realtek: allow writing to "u-boot-env2"
Bjørn Mork
bjorn at mork.no
Tue Apr 6 10:43:05 BST 2021
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>
---
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 d31eb7400145..0d34ca5dc221 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 c4441ec30eef..d61ac3b2b8f0 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 681d699e8a32..fdcc01fdac41 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 a2ebdad11be0..e2f5e7a4c0e1 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 e41c6f9f22e1..a14738c8a962 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";
--
2.20.1
More information about the openwrt-devel
mailing list