[openwrt/openwrt] ramips: add U-Boot env support for ALFA Network AC1200RM

LEDE Commits lede-commits at lists.infradead.org
Fri Apr 6 15:19:29 PDT 2018


pepe2k pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/10ea53f900ee0cb384a9610d8870ba86cd837791

commit 10ea53f900ee0cb384a9610d8870ba86cd837791
Author: Piotr Dymacz <pepe2k at gmail.com>
AuthorDate: Mon Feb 26 23:00:07 2018 +0100

    ramips: add U-Boot env support for ALFA Network AC1200RM
    
    Signed-off-by: Piotr Dymacz <pepe2k at gmail.com>
---
 package/boot/uboot-envtools/files/ramips | 1 +
 target/linux/ramips/dts/AC1200RM.dts     | 7 ++++++-
 target/linux/ramips/image/mt7620.mk      | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/package/boot/uboot-envtools/files/ramips b/package/boot/uboot-envtools/files/ramips
index 88f561b..f992f41 100644
--- a/package/boot/uboot-envtools/files/ramips
+++ b/package/boot/uboot-envtools/files/ramips
@@ -13,6 +13,7 @@ touch /etc/config/ubootenv
 board=$(board_name)
 
 case "$board" in
+alfa-network,ac1200rm|\
 alfa-network,awusfree1)
 	ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x1000"
 	;;
diff --git a/target/linux/ramips/dts/AC1200RM.dts b/target/linux/ramips/dts/AC1200RM.dts
index 9305cb0..9bdbf5c 100644
--- a/target/linux/ramips/dts/AC1200RM.dts
+++ b/target/linux/ramips/dts/AC1200RM.dts
@@ -148,8 +148,13 @@
 		};
 
 		partition at 30000 {
+			label = "u-boot-env";
+			reg = <0x30000 0x1000>;
+		};
+
+		partition at 031000 {
 			label = "config";
-			reg = <0x30000 0x10000>;
+			reg = <0x31000 0xf000>;
 			read-only;
 		};
 
diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk
index e0a47b7..c12a915 100644
--- a/target/linux/ramips/image/mt7620.mk
+++ b/target/linux/ramips/image/mt7620.mk
@@ -32,7 +32,7 @@ define Device/alfa-network_ac1200rm
   DTS := AC1200RM
   IMAGE_SIZE := 16064k
   DEVICE_TITLE := ALFA Network AC1200RM
-  DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
+  DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci uboot-envtools
 endef
 TARGET_DEVICES += alfa-network_ac1200rm
 



More information about the lede-commits mailing list