mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 18:19:02 +00:00
ed50004319
Build U-Boot for the Linksys E8450 in order to have support for UBI. The loader has a default environment with scripts handling the reset button as well as fall-back to recovery firmware. If the loader comes up without a valid environment found in UBI, it will automatically make sure UBI is formatted and create a new environment and proceed to load recovery firmware (either from UBI or via TFTP if recovery is corrupted or unavailable). If the button is held down during power-on, the yellow status LED turns on and the bootloader environment is reset to factory defaults. If the button is released at this point, the recovery firmware (if existing) is loaded from UBI and booted. If the button is continously held down even beyond the point that the yellow LED turned on, the loader will try to load the recovery firmware via TFTP from server 192.168.1.254, write it to UBI and boot. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
24 lines
795 B
Diff
24 lines
795 B
Diff
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -1716,6 +1716,10 @@ u-boot-elf.lds: arch/u-boot-elf.lds prep
|
|
|
|
ifeq ($(CONFIG_SPL),y)
|
|
spl/u-boot-spl-mtk.bin: spl/u-boot-spl
|
|
+OBJCOPYFLAGS_u-boot-mtk.bin = -I binary -O binary \
|
|
+ --pad-to=$(CONFIG_SPL_PAD_TO) --gap-fill=0xff
|
|
+u-boot-mtk.bin: u-boot.img spl/u-boot-spl-mtk.bin FORCE
|
|
+ $(call if_changed,pad_cat)
|
|
else
|
|
MKIMAGEFLAGS_u-boot-mtk.bin = -T mtk_image \
|
|
-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) \
|
|
--- a/arch/arm/mach-mediatek/Kconfig
|
|
+++ b/arch/arm/mach-mediatek/Kconfig
|
|
@@ -36,7 +36,6 @@ config TARGET_MT7629
|
|
bool "MediaTek MT7629 SoC"
|
|
select CPU_V7A
|
|
select SPL
|
|
- select BINMAN
|
|
help
|
|
The MediaTek MT7629 is a ARM-based SoC with a dual-core Cortex-A7
|
|
including DDR3, crypto engine, 3x3 11n/ac Wi-Fi, Gigabit Ethernet,
|