From: Andreas Böhler <dev@aboehler.at>
Date: Sun, 19 Jun 2022 17:53:12 +0000 (+0200)
Subject: realtek: make "u-boot-env" partition writable for Netgear 3xx series
X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=d9e12c21fa98c90d0cc355e344d90469c5fd42c1;p=openwrt%2Fstaging%2Fmans0n.git

realtek: make "u-boot-env" partition writable for Netgear 3xx series

The Netgear GS3xx devices do not properly initialise the port LEDs during
startup unless the boot command in U-Boot is changed. Making the U-Boot
env partition writable allows this modification to be done from within
OpenWrt by calling "fw_setenv bootcmd rtk network on\; boota".

Signed-off-by: Andreas Böhler <dev@aboehler.at>
---

diff --git a/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit_3xx.dtsi b/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit_3xx.dtsi
index efb146a25a..0ade665c98 100644
--- a/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit_3xx.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit_3xx.dtsi
@@ -24,7 +24,6 @@
 			partition@e0000 {
 				label = "u-boot-env";
 				reg = <0x00e0000 0x0010000>;
-				read-only;
 			};
 
 			partition@f0000 {