[openwrt/openwrt] ipq40xx: work-around borked QCA SDK bootloader

LEDE Commits lede-commits at lists.infradead.org
Sat Mar 6 19:07:10 GMT 2021


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/969083634481c3ab5fb80509f385ef10ab45b55f

commit 969083634481c3ab5fb80509f385ef10ab45b55f
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sat Mar 6 18:59:16 2021 +0000

    ipq40xx: work-around borked QCA SDK bootloader
    
    The bootloader of many ipq40xx boards seems to require the config node
    of the FIT image to be 'config at 1' (or a secific different value).
    This requirement used to be implicitely satisfied because OpenWrt used
    to also call the configuration node inside a FIT image 'config at 1'.
    However, as recent U-Boot now prohibits the use of the '@' symbol as
    part of node names, this was changed by
    commit 5ec60cbe9d ("scripts: mkits.sh: replace @ with - in nodes")
    Explicitely restore the default name of the configuration node to
    'config at 1' on ipq40xx.
    
    Reported-by: Chen Minqiang <ptpt52 at gmail.com>
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 target/linux/ipq40xx/image/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/ipq40xx/image/Makefile b/target/linux/ipq40xx/image/Makefile
index a7710cfe05..5851b29875 100644
--- a/target/linux/ipq40xx/image/Makefile
+++ b/target/linux/ipq40xx/image/Makefile
@@ -6,6 +6,7 @@ define Device/Default
 	KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
 	KERNEL_LOADADDR := 0x80208000
 	DEVICE_DTS = $$(SOC)-$(lastword $(subst _, ,$(1)))
+	DEVICE_DTS_CONFIG := config at 1
 	IMAGES := sysupgrade.bin
 	IMAGE/sysupgrade.bin = sysupgrade-tar | append-metadata
 	IMAGE/sysupgrade.bin/squashfs :=



More information about the lede-commits mailing list