[openwrt/openwrt] realtek: rename u-boot-env2 to board-name

LEDE Commits lede-commits at lists.infradead.org
Sat Jul 9 01:05:53 PDT 2022


svanheule pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/128575d0fdc3838d843ff1441d7b29e39ec0151e

commit 128575d0fdc3838d843ff1441d7b29e39ec0151e
Author: Luiz Angelo Daros de Luca <luizluca at gmail.com>
AuthorDate: Mon Jul 4 14:11:26 2022 -0300

    realtek: rename u-boot-env2 to board-name
    
    Some realtek boards have two u-boot-env partitions. However, in the
    DGS-1210 series, the mtdblock2 partition is not a valid u-boot env
    and simply contains the board/device name, followed by nulls.
    
    00000000  44 47 53 2d 31 32 31 30  2d 32 38 2d 46 31 00 00 |DGS-1210-28-F1..|
    00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 |................|
    *
    00040000
    
    00000000  44 47 53 2d 31 32 31 30  2d 35 32 2d 46 31 00 00 |DGS-1210-52-F1..|
    00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 |................|
    *
    00040000
    
    The misleading u-boot-env2 name also confuses uboot-envtools.
    
    Signed-off-by: Luiz Angelo Daros de Luca <luizluca at gmail.com>
    (cherry picked from commit 8b798dbb39856463878efb07ddef87ce2e522ceb)
---
 target/linux/realtek/dts-5.10/rtl8382_d-link_dgs-1210.dtsi | 2 +-
 1 file changed, 1 insertion(+), 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 312a36c1a8..aaaa872162 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,7 @@
 				read-only;
 			};
 			partition at c0000 {
-				label = "u-boot-env2";
+				label = "board-name";
 				reg = <0x000c0000 0x40000>;
 			};
 			partition at 280000 {




More information about the lede-commits mailing list