bmips: Build U-Boot into the XG6846 target b4/xg6846-base
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 5 Aug 2023 07:02:20 +0000 (09:02 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 25 Apr 2024 19:14:15 +0000 (21:14 +0200)
commitbbcf5e513df895d90d714907c2cc69363da5ea9f
treeead7261430873a9b27d11cdc0b991d510a41d88c
parente78e870859ff83b2611295c945f2b51478a1de60
bmips: Build U-Boot into the XG6846 target

It appears that the CFE boot loader found in the XG6846
cannot load kernels over a certain size, and the old
relocate hack is not working.

What to do? We can build a small U-Boot into the image,
make CFE boot that, place the kernel immediately after
U-Boot, and use U-Boot to boot the system instead.

The compiled u-boot.bin becomes around ~300KB and with
LZMA compression it will swiftly fit into 128KB, so
we use two 64KB erase blocks right after the CFE to
store an imagetag:ed U-Boot.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
target/linux/bmips/dts/bcm6328-inteno-xg6846.dts
target/linux/bmips/image/Makefile
target/linux/bmips/image/bcm6328.mk
target/linux/bmips/image/null-initrd [new file with mode: 0644]
target/linux/bmips/image/u-boot.bin [new file with mode: 0644]