tmolteno / d1_build

Debian disk image builder for the Sipeed Lichee RV Risc-v Single Board Computer
GNU General Public License v3.0
59 stars 16 forks source link

u-boot failing to compile #2

Closed tmolteno closed 2 years ago

tmolteno commented 2 years ago

From the build of u-boot

  cat spl/u-boot-spl-nodtb.bin spl/u-boot-spl.dtb > spl/u-boot-spl-dtb.bin
  cp spl/u-boot-spl-dtb.bin spl/u-boot-spl.bin
  ./tools/mkimage -A riscv -T "sunxi_egon" -a 0x20060 -n "sun20i-d1-nezha" -d spl/u-boot-spl.bin spl/sunxi-spl.bin >/dev/null  && cat /dev/null
  ./tools/binman/binman   --toolpath ./tools  build -u -d u-boot.dtb -O . -m --allow-missing --fake-ext-blobs -I . -I . -I ./board/sunxi -I arch/riscv/dts -a of-list="sun20i-d1-nezha"  -a atf-bl31-path= -a tee-os-path= -a opensbi-path= -a default-dt="sun20i-d1-nezha" -a scp-path= -a spl-bss-pad= -a tpl-bss-pad=1 -a spl-dtb=y -a tpl-dtb= -a pre-load-key-path= 
/uboot/u-boot/./tools/binman/binman:12: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.sysconfig import get_python_lib
/uboot/u-boot/./tools/binman/binman:12: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
  from distutils.sysconfig import get_python_lib
Image 'main-section' is missing external blobs and is non-functional: opensbi
Image 'main-section' has faked external blobs and is non-functional: fw_dynamic.bin

Some images are invalid
Removing intermediate cont
tmolteno commented 2 years ago

fixed by reordering the compilation to make sure opensbi and the boot blob are built before u-boot.