9dfc2b3ca4
MediaTek published their current U-Boot patchset on github: https://github.com/mtk-openwrt/u-boot/commits/mtksoc Import the platform patches from there (`00-mtk-*.patch`), arrange, them nicely, drop no longer needed local patches and rebase on top of U-Boot 2021.04-rc3. Tested and works well on Linksys E8450 (snand-1ddr) as well as Bananapi BPi-R64 (sdmmc-2ddr, emmc-2ddr). Signed-off-by: Daniel Golle <daniel@makrotopia.org>
34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
From e5a71a0eebadfb3d75d8619a8b317eec58b2bca2 Mon Sep 17 00:00:00 2001
|
|
From: Weijie Gao <weijie.gao@mediatek.com>
|
|
Date: Sat, 6 Mar 2021 16:29:33 +0800
|
|
Subject: [PATCH 20/21] configs: mt7622: enable environment for mt7622_rfb
|
|
|
|
Enable environment vairables for mt7622_rfb
|
|
|
|
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
|
|
---
|
|
configs/mt7622_rfb_defconfig | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
--- a/configs/mt7622_rfb_defconfig
|
|
+++ b/configs/mt7622_rfb_defconfig
|
|
@@ -4,6 +4,8 @@ CONFIG_ARCH_MEDIATEK=y
|
|
CONFIG_SYS_TEXT_BASE=0x41e00000
|
|
CONFIG_SYS_MALLOC_F_LEN=0x4000
|
|
CONFIG_NR_DRAM_BANKS=1
|
|
+CONFIG_ENV_SIZE=0x20000
|
|
+CONFIG_ENV_OFFSET=0x280000
|
|
CONFIG_DEBUG_UART_BASE=0x11002000
|
|
CONFIG_DEBUG_UART_CLOCK=25000000
|
|
CONFIG_DEFAULT_DEVICE_TREE="mt7622-rfb"
|
|
@@ -21,6 +23,9 @@ CONFIG_CMD_SF_TEST=y
|
|
CONFIG_CMD_PING=y
|
|
CONFIG_CMD_SMC=y
|
|
CONFIG_ENV_OVERWRITE=y
|
|
+CONFIG_ENV_IS_IN_MTD=y
|
|
+CONFIG_ENV_MTD_NAME="spi-nand0"
|
|
+CONFIG_ENV_SIZE_REDUND=0x40000
|
|
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
|
|
CONFIG_NET_RANDOM_ETHADDR=y
|
|
CONFIG_REGMAP=y
|