This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM6548: Building Uboot 2021.01 with meta-ti kirkstone 09.01.00.007

Part Number: AM6548

meta-ti kirkstone 09.01.00.007 provides build recipes for u-boot 2023.01 and Kernel 6.1.46.

For our SOC, we need to keep the u-boot version fixed to Uboot 2021.01 for which we had already migrated on Dunfell.

Is U-boot 2021 compatible to be built using yocto kirkstone along with Kernel 6.1.46 ?

We are facing below issues while compiling Uboot 2021 on kirkstone branch:

  • do_deploy tasks fails by giving missing file errors for tiboot3-am65x_sr2-gp-evm.bin. The deploy directory only had tiboot3.bin which we renamed.
  • Also the sysfw.itb is missing from deploy directory. We observed that in case of Uboot 2023 do_deploy_setscene tasks fetches this file. We want to know from where this file is fetched. In case of dunfell this file is compiled and deployed by ti-sci-fw.
  • Can we use prebuilt sysfw.itb file as it is from dunfell u-boot 2021 environment inside Uboot 2023?
  • Hi Nikhil,

    Is U-boot 2021 compatible to be built using yocto kirkstone along with Kernel 6.1.46 ?

    This is not a configuration that is recommend to be used and that we can support here from a TI POV. I think if sufficiently motivated you can make it work by debugging and addressing the build issues you encountered (e.g., by back-porting specific patches from TI U-Boot 2023.04 to TI U-Boot 2021.01, and updating any Yocto recipes to accommodate how the build output from the older U-Boot might be different), but this doesn't mean you should.

    Instead, you sound consider migrating to current SDK's U-Boot. It will bring a range of fixes and improvements your system will likely benefit from (just some examples, that list is by no means exhaustive)

    • Updated device drivers for peripherals such as DDR and MMC to ensure more robust operation
    • Updated device firmwares (SYSFW, ATF, OP-TEE)
    • General bug fixes (including security-related fixes) across the U-Boot software stack
    Also the sysfw.itb is missing from deploy directory. We observed that in case of Uboot 2023 do_deploy_setscene tasks fetches this file. We want to know from where this file is fetched. In case of dunfell this file is compiled and deployed by ti-sci-fw.

    In case of TI U-Boot 2023.04 this file is now being built and provided by U-Boot itself, via U-Boot's binman build process. You need to build U-Boot for the 'k3r5' multi-config target to get this file, something like this:

    # Build and deploy tiboot3*.bin (and sysfw*.itb) in SDK v9.x
    $ MACHINE=am65xx-evm bitbake -C deploy mc:k3r5:u-boot
    
    # And the result...
    a0797059@dasso:~/tisdk/am65xx-evm/build (dev)
    $ ll deploy-ti/images/am65xx-evm/
    total 1432
    drwxr-xr-x 3 a0797059 a0797059   4096 May 13 02:28 ./
    drwxr-xr-x 3 a0797059 a0797059   4096 May 13 02:27 ../
    -rw-r--r-- 2 a0797059 a0797059 267714 May 13 02:28 sysfw-am65x_sr2-gp-evm.itb
    -rw-r--r-- 2 a0797059 a0797059 276990 May 13 02:28 sysfw-am65x_sr2-hs-evm.itb
    -rw-r--r-- 2 a0797059 a0797059 267714 May 13 02:28 sysfw.itb
    lrwxrwxrwx 2 a0797059 a0797059     83 May 13 02:28 tiboot3-am65x_sr2-gp-evm -> tiboot3-am65x_sr2-gp-evm-am65xx-evm-k3r5-2023.04+gitAUTOINC+c1c2bdf272-r0.psdk3.bin
    -rw-r--r-- 2 a0797059 a0797059 152037 May 13 02:28 tiboot3-am65x_sr2-gp-evm-am65xx-evm-k3r5-2023.04+gitAUTOINC+c1c2bdf272-r0.psdk3.bin
    -rw-r--r-- 2 a0797059 a0797059 152037 May 13 02:28 tiboot3-am65x_sr2-gp-evm.bin
    -rw-r--r-- 2 a0797059 a0797059 152812 May 13 02:28 tiboot3-am65x_sr2-hs-evm.bin
    lrwxrwxrwx 2 a0797059 a0797059     83 May 13 02:28 tiboot3.bin -> tiboot3-am65x_sr2-gp-evm-am65xx-evm-k3r5-2023.04+gitAUTOINC+c1c2bdf272-r0.psdk3.bin
    drwxr-xr-x 2 a0797059 a0797059   4096 May 13 02:27 ti-sysfw/
    -rw-r--r-- 2 a0797059 a0797059 151064 May 13 02:28 u-boot-r5spl-am65xx-evm-2023.04+gitAUTOINC+c1c2bdf272-r0.psdk3.bin
    lrwxrwxrwx 2 a0797059 a0797059     66 May 13 02:28 u-boot-r5spl-am65xx-evm.bin -> u-boot-r5spl-am65xx-evm-2023.04+gitAUTOINC+c1c2bdf272-r0.psdk3.bin
    lrwxrwxrwx 2 a0797059 a0797059     66 May 13 02:28 u-boot-r5spl.bin -> u-boot-r5spl-am65xx-evm-2023.04+gitAUTOINC+c1c2bdf272-r0.psdk3.bin

    Can we use prebuilt sysfw.itb file as it is from dunfell u-boot 2021 environment inside Uboot 2023?

    Also this is not recommended/supported. The sysfw.itb blob contains device firmware and this should not be moved between SDK versions, otherwise things may break due to feature or API changes amongst the different SW components.

    Regards, Andreas