diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2022-03-04 09:39:04 +0100 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2022-03-11 08:02:30 +0100 |
commit | 0d45e1ea96ef29649f080c54f99fb1c80482421b (patch) | |
tree | d91126810da398affb0cc9e4e73ad2af769dfaf0 /package/boot/uboot-bcm4908/patches/200-configs-bcm94908-unset-CONFIG_SPL.patch | |
parent | 25d1c85d1ad3bf48832634c6a37e981a4572a569 (diff) | |
download | upstream-0d45e1ea96ef29649f080c54f99fb1c80482421b.tar.gz upstream-0d45e1ea96ef29649f080c54f99fb1c80482421b.tar.bz2 upstream-0d45e1ea96ef29649f080c54f99fb1c80482421b.zip |
uboot-bcm4908: add package with BCM4908 U-Boot
New BCM4908 devices come with U-Boot instead of CFE. Firmwares for such
devices has to include U-Boot.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'package/boot/uboot-bcm4908/patches/200-configs-bcm94908-unset-CONFIG_SPL.patch')
-rw-r--r-- | package/boot/uboot-bcm4908/patches/200-configs-bcm94908-unset-CONFIG_SPL.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/package/boot/uboot-bcm4908/patches/200-configs-bcm94908-unset-CONFIG_SPL.patch b/package/boot/uboot-bcm4908/patches/200-configs-bcm94908-unset-CONFIG_SPL.patch new file mode 100644 index 0000000000..26189bc571 --- /dev/null +++ b/package/boot/uboot-bcm4908/patches/200-configs-bcm94908-unset-CONFIG_SPL.patch @@ -0,0 +1,38 @@ +From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl> +Date: Fri, 4 Mar 2022 09:21:32 +0100 +Subject: [PATCH] configs: bcm94908: unset CONFIG_SPL +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Compiling SPL is always tricky as it needs to fit limited resources. +Fortunately in most cases there is no need to replace SPL or TPL while +flashing a new firmware. + +Compiling SPL for BCM4908 seems to fail with non-Broadcom toolchain: +aarch64-openwrt-linux-musl-ld.bfd: u-boot-spl section `.u_boot_list' will not fit in region `.sram' +aarch64-openwrt-linux-musl-ld.bfd: section .bss VMA [00000000822b9000,00000000822b93ef] overlaps section .u_boot_list VMA [00000000822b8f60,00000000822b9a87] +aarch64-openwrt-linux-musl-ld.bfd: region `.sram' overflowed by 2696 bytes + +It also requires hashtable.h which has to be generated using some +Broadcom's custom perl script that isn't integrated as this point. + +For now just disable SPL and use only last-stage U-Boot that must be +shipped with every firmware. + +Signed-off-by: Rafał Miłecki <rafal@milecki.pl> +--- + configs/bcm94908_defconfig | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/configs/bcm94908_defconfig ++++ b/configs/bcm94908_defconfig +@@ -21,7 +21,7 @@ CONFIG_SPL_SERIAL_SUPPORT=y + CONFIG_TPL_LIBCOMMON_SUPPORT=y + CONFIG_TPL_LIBGENERIC_SUPPORT=y + CONFIG_NR_DRAM_BANKS=1 +-CONFIG_SPL=y ++# CONFIG_SPL is not set + CONFIG_SPL_LIBDISK_SUPPORT=y + CONFIG_ENV_VARS_UBOOT_CONFIG=y + CONFIG_TPL_SYS_MALLOC_F_LEN=0x11000 |