[openwrt/openwrt] realtek: make DGS-1210 u-boot-env partition writeable
LEDE Commits
lede-commits at lists.infradead.org
Tue Jul 26 00:16:16 PDT 2022
svanheule pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/b2681e584c0674788fc1f11dd9950cb769d961e9
commit b2681e584c0674788fc1f11dd9950cb769d961e9
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Fri Jul 8 17:27:22 2022 +0200
realtek: make DGS-1210 u-boot-env partition writeable
We are close to provide enduser friendly OpenWrt images for DGS-1210
switches that do not need serial console. Nevertheless a small bit is
missing. We cannot switch back to the vendor partition or initiate a
download of a vendor firmware image. To issue this from inside OpenWrt
we need write access to U-Boot environment.
Case 1: Switch back to secondary (vendor) image
> fw_setenv bootcmd run addargs\; bootm 0xb4e80000
> fw_setenv image /dev/mtdblock7
> reboot
Case 2: Issue D-Link Network Assistant based download on next reboot.
This is a combination of some vendor specific protocol (DDP) and a
TFTP download afterwards.
> fw_setenv bootstop on
> reboot
Allow these commands by opening up u-boot-env for write access.
Tested on DGS-1210-20.
Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
---
target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi | 1 -
1 file changed, 1 deletion(-)
diff --git a/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi b/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi
index 09f5555307..565ba45de6 100644
--- a/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi
@@ -55,7 +55,6 @@
partition at 80000 {
label = "u-boot-env";
reg = <0x00080000 0x40000>;
- read-only;
};
partition at c0000 {
label = "board-name";
More information about the lede-commits
mailing list