Got a QS93-5210-Evalkit and tried to build this U-Boot tree with proper cross-toolchain only, without a BSP. The images produced do not work on the target board. Details below.
Steps to reproduce:
- clone this repo
- prepare:
PATH="/path/to/toolchain:${PATH}" CROSS_COMPILE=aarch64-v8a-linux-gnu- BL31=/path/to/imx93-bl31.bin BINMAN_INDIRS=/path/to/firmware/ddr/synopsys make O=/path/to/build/u-boot/karo qs93-5210_defconfig
- build:
PATH="/path/to/toolchain:${PATH}" CROSS_COMPILE=aarch64-v8a-linux-gnu- BL31=/path/to/imx93-bl31.bin BINMAN_INDIRS=/path/to/firmware/ddr/synopsys make O=/path/to/build/u-boot/karo
- change jumper to USB boot mode
- go to build dir:
cd /path/to/build/u-boot/karo
- use
uuu to transfer and start: /path/to/uuu flash.bin
- some output on serial console, but does not boot into U-Boot shell
Guesswork: Building https://github.com/karo-electronics/karo-nxp-bsp from scratch, finding the file flash.bin in some U-Boot build folder and using that with uuu actually works. So something in that Yocto BSP is different. Looks like Yocto clones this repo and with changeset karo-electronics/meta-karo-nxp@0dcfb6e overwrites at least the file arch/arm/dts/imx93-karo-u-boot.dtsi … and probably more.
Just porting over those changes leads to a failing build.
Got a QS93-5210-Evalkit and tried to build this U-Boot tree with proper cross-toolchain only, without a BSP. The images produced do not work on the target board. Details below.
Steps to reproduce:
PATH="/path/to/toolchain:${PATH}" CROSS_COMPILE=aarch64-v8a-linux-gnu- BL31=/path/to/imx93-bl31.bin BINMAN_INDIRS=/path/to/firmware/ddr/synopsys make O=/path/to/build/u-boot/karo qs93-5210_defconfigPATH="/path/to/toolchain:${PATH}" CROSS_COMPILE=aarch64-v8a-linux-gnu- BL31=/path/to/imx93-bl31.bin BINMAN_INDIRS=/path/to/firmware/ddr/synopsys make O=/path/to/build/u-boot/karocd /path/to/build/u-boot/karouuuto transfer and start:/path/to/uuu flash.binGuesswork: Building https://github.com/karo-electronics/karo-nxp-bsp from scratch, finding the file flash.bin in some U-Boot build folder and using that with
uuuactually works. So something in that Yocto BSP is different. Looks like Yocto clones this repo and with changeset karo-electronics/meta-karo-nxp@0dcfb6e overwrites at least the file arch/arm/dts/imx93-karo-u-boot.dtsi … and probably more.Just porting over those changes leads to a failing build.