[openwrt/openwrt] mediatek: add mt7623 u-boot build for Banana Pi R2

LEDE Commits lede-commits at lists.infradead.org
Wed Jul 8 17:22:55 EDT 2020


ynezz pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/f0b51c1389e495d6fba3694b76e4df29c00617d5

commit f0b51c1389e495d6fba3694b76e4df29c00617d5
Author: David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Thu Jun 11 19:32:12 2020 +0100

    mediatek: add mt7623 u-boot build for Banana Pi R2
    
    For building full SD/eMMC images for Banana Pi R2 we'll want a u-boot
    image built for that platform.
    
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 package/boot/uboot-mediatek/Makefile                       |  9 ++++++++-
 .../patches/005-update-bpir2-defconfig.patch               | 14 ++++++++++++++
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/package/boot/uboot-mediatek/Makefile b/package/boot/uboot-mediatek/Makefile
index a8256529bf..f6745f6cad 100644
--- a/package/boot/uboot-mediatek/Makefile
+++ b/package/boot/uboot-mediatek/Makefile
@@ -27,7 +27,14 @@ define U-Boot/mt7622
   UBOOT_CONFIG:=mt7622_rfb
 endef
 
-UBOOT_TARGETS := mt7629 mt7622
+define U-Boot/mt7623n_bpir2
+  NAME:=Banana Pi R2 (mt7623)
+  BUILD_SUBTARGET:=mt7623
+  UBOOT_IMAGE:=u-boot.bin
+  UBOOT_CONFIG:=mt7623n_bpir2
+endef
+
+UBOOT_TARGETS := mt7629 mt7622 mt7623n_bpir2
 
 UBOOT_MAKE_FLAGS += $(UBOOT_IMAGE)
 
diff --git a/package/boot/uboot-mediatek/patches/005-update-bpir2-defconfig.patch b/package/boot/uboot-mediatek/patches/005-update-bpir2-defconfig.patch
new file mode 100644
index 0000000000..4ec0edeca5
--- /dev/null
+++ b/package/boot/uboot-mediatek/patches/005-update-bpir2-defconfig.patch
@@ -0,0 +1,14 @@
+diff --git a/configs/mt7623n_bpir2_defconfig b/configs/mt7623n_bpir2_defconfig
+index 6b9fbd7e22..fb2a004803 100644
+--- a/configs/mt7623n_bpir2_defconfig
++++ b/configs/mt7623n_bpir2_defconfig
+@@ -52,3 +52,9 @@ CONFIG_TIMER=y
+ CONFIG_WDT_MTK=y
+ CONFIG_LZMA=y
+ # CONFIG_EFI_LOADER is not set
++CONFIG_CMD_BOOTZ=y
++CONFIG_OF_LIBFDT_OVERLAY=y
++#enables savenenv-command
++CONFIG_ENV_IS_IN_MMC=y
++CONFIG_CMD_ASKENV=y
++CONFIG_ENV_SIZE=0x2000



More information about the lede-commits mailing list