[Buildroot] U-boot stable asks for SYS_LOAD_ADDR when compiling for Le Potato

Andreas Ziegler br015 at umbiko.net
Fri Mar 24 08:07:12 UTC 2023


On 2023-03-23 13:09, Kenneth Roland wrote:
> Hello,
> Make-cleaned my directory before this, but I did it one more time and 
> got the same error.
> Only thing that I was different was that the value increased from 432 
> to 448 for CONFIG_SYS_INIT_RAM_SIZE.

For a quick test, I cloned the board/amlogic package into an existing 
buildroot-git instance (2023.02-100-g9833247d49). In the build directory 
I ran:

wget 
https://raw.githubusercontent.com/mathieu-lm/libretech-cc-buildroot/master/configs/meson-gxl-s905x-libretech-cc_defconfig
mv meson-gxl-s905x-libretech-cc_defconfig .config
make nconfig
make uboot

It builds successfully:

>>> uboot v2020.01-rc5 Installing to target
>>> uboot v2020.01-rc5 Installing to images directory
cp -dpf /home/data/test/autobuild/build/uboot-v2020.01-rc5/u-boot.bin 
/home/data/test/autobuild/images/

> ```
>   CC      board/amlogic/p212/p212.o
>   CC      arch/arm/lib/reset.o
>   CC      arch/arm/lib/cache.o
>   CC      arch/arm/lib/psci-dt.o
>   AR      arch/arm/lib/lib.a
>   CC      boot/bootm.o
>   CC      boot/bootm_os.o
>   AR      cmd/arm/built-in.o
>   CC      cmd/boot.o
> arch/arm/lib/crt0_64.S: Assembler messages:
> arch/arm/lib/crt0_64.S:85: Error: constant expression expected at 
> operand 2 -- `ldr 
> x0,=((CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_SIZE-448))'

You seem to use a different u-boot version than specified in the 
original configuration. You might need to update the u-boot defconfig in 
board/amlogic/s905x-libretech-cc/uboot and probably also the toolchain 
(currently gcc 6 based, from 2017).

Kind regards,
Andreas

> make[2]: *** [scripts/Makefile.build:293: arch/arm/lib/crt0_64.o] Error 
> 1
> make[2]: *** Waiting for unfinished jobs....
>   CC      boot/pxe_utils.o
>   CC      boot/image.o
>   CC      cmd/bootm.o
>   CC      boot/image-board.o
>   CC      boot/bootdev-uclass.o
>   CC      boot/bootflow.o
>   CC      boot/bootmeth-uclass.o
>   CC      boot/bootstd-uclass.o
>   CC      boot/bootmeth_distro.o
> ```



More information about the buildroot mailing list