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.

PROCESSOR-SDK-AM62X: u-boot build issue

Part Number: PROCESSOR-SDK-AM62X

Hello,

i am trying to follow the guide onto processor sdk doc to rebuild u-boot, as documented here .

The doc says :

To build tiboot3.bin. Saved in ../k3-image-gen-<version>. Requires u-boot-spl.bin and ti-fs-firmware-am62x-gp.bin.

so i wrote in terminal

make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- SOC=am62x SBL=../u-boot-2021.01+gitAUTOINC+74fc69c889-g74fc69c889/build/r5/u-boot-spl.bin SYSFW_PATH=../../linux-devkit/sysroots/aarch64-linux/lib/firmware/ti-sysfw/ti-fs-stub-firmware-am62x-gp-signed.bin

and i get this error:

ema@ubuntu:~/psdk/board-support/k3-image-gen-2022.01$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- SOC=am62x SBL=../u-boot-2021.01+gitAUTOINC+74fc69c889-g74fc69c889/build/r5/u-boot-spl.bin SYSFW_PATH=../../linux-devkit/sysroots/aarch64-linux/lib/firmware/ti-sysfw/ti-fs-stub-firmware-am62x-gp-signed.bin 
./gen_its.sh am62x evm sysfw.bin board-cfg.bin pm-cfg.bin rm-cfg.bin sec-cfg.bin > out/soc/am62x/evm/sysfw-am62x-evm.its
error: object directory /jenkins/processor-sdk-build-generic/nightly/yocto-build_am62xx-evm-rt/downloads/git2/git.ti.com.k3-image-gen.k3-image-gen.git/objects does not exist; check .git/objects/info/alternates
error: Could not read aedb234133f82430aa332dccdc388c4f7d9bff3c
error: Could not read 71c3b202cc639aa2c5c64b011126942984828318
error: Could not read 42f8a307dc9af8eca4f6826ab788947e88925afe
error: Could not read c6658574a8b8b59bd98d5748cf0c6732a21fd9b3
error: Could not read 35aa84a39316bb706bb4b3e625f1ea0bc86ce870
error: Could not read de7fde36e3b8a233db7559754000a43c28156363
error: Could not read 2e02243e36bda543b9c6da815f75c014199aa143
error: Could not read 80c1243c031f20940113ce726a42f4f426206c33
error: Could not read e9eb14a8830b9f1294d5f9186656819afdd0756e
error: Could not read 924b530c3f757eb72fbd4c86a59b6719a9d68bd4
error: Could not read 07d64c18b294dc2311f1060504f631fa4e07dfa4
error: Could not read 562b1630d53d4ea7ca25aa4b52e31d0575c963f6
error: Could not read ffd3f5460adf24c37e89663e5e5ad70ded9786e0
error: Could not read 06bc083b12514566c7e9dca4a645c67aab0d93c1
error: Could not read 55e8208ecf41be0f78371bbb6c0b45eebcd5c92d
error: Could not read 7fdb1f5e99ce298e89d78203aaaa1508ba2e66fa
error: Could not read 2ca250048521e64b31a53242b779942d4711599f
error: Could not read be57d1edb52d8d61c3902e67fa8923f02f6f6e52
error: Could not read 4bfecebeb57febf28204060898b4560e7d45cca1
error: Could not read 7a17abf00dab030d1a8a8e42e9b435dbe449c619
error: Could not read 345764d86e7ed35704fada0264335caa07717ac4
error: Could not read 134129d0aea06b4db2c383728c2b31c05c4efd14
error: Could not read 5aca4e59c72c8d961330ebeb4d0cf0f61ed0e24b
error: Could not read e32c8ea3560f25bf69016a5af4f3cdee48140c58
error: Could not read b4facf195f77772eea5730e458a1aaa0cf98fa83
error: Could not read 2e426143ba9d95bb825fb8d3d8f043819e0e0dd2
error: Could not read 548c949a31f059b12020c632dea39659a2321206
error: Could not read 8249188da532d137add494a60425c075b711de3a
error: Could not read 1c87c10af90dcd0c7b4bbeced155e8433e239a0f
error: Could not read 3a8db55ca2cf609473dfd042b04b79ab83ef294f
error: Could not read d5ad6bbbd0255b006790f1e94f4b432293f5ca9c
error: Could not read 8c0b4bf668ee90690912b139233167f67044e899
error: Could not read 08d4cdc787544daa7583cac196bc46e4673d7568
error: Could not read 42125364ac7389749c26ddc020e009ee2323a1e6
error: Could not read cdcf3f25475368d1b5c19ffda7321e506d294bfb
error: Could not read fc161db0c12fdba1acea079b6444483fa8e261ae
fatal: bad object HEAD
mkimage -f out/soc/am62x/evm/sysfw-am62x-evm.its -r sysfw-am62x-evm.itb
FIT description: SYSFW and Config Fragments
Created:         Thu Jul 28 05:04:15 2022
 Image 0 (sysfw.bin)
  Description:  sysfw
  Created:      Thu Jul 28 05:04:15 2022
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    29641 Bytes = 28.95 KiB = 0.03 MiB
  Architecture: ARM
  OS:           Unknown OS
  Load Address: unavailable
 Image 1 (board-cfg.bin)
  Description:  board-cfg
  Created:      Thu Jul 28 05:04:15 2022
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    29 Bytes = 0.03 KiB = 0.00 MiB
  Architecture: ARM
  OS:           Unknown OS
  Load Address: unavailable
 Image 2 (pm-cfg.bin)
  Description:  pm-cfg
  Created:      Thu Jul 28 05:04:15 2022
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    2 Bytes = 0.00 KiB = 0.00 MiB
  Architecture: ARM
  OS:           Unknown OS
  Load Address: unavailable
 Image 3 (rm-cfg.bin)
  Description:  rm-cfg
  Created:      Thu Jul 28 05:04:15 2022
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    1494 Bytes = 1.46 KiB = 0.00 MiB
  Architecture: ARM
  OS:           Unknown OS
  Load Address: unavailable
 Image 4 (sec-cfg.bin)
  Description:  sec-cfg
  Created:      Thu Jul 28 05:04:15 2022
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    349 Bytes = 0.34 KiB = 0.00 MiB
  Architecture: ARM
  OS:           Unknown OS
  Load Address: unavailable
make: ***  Nessuna regola per generare l'obiettivo "../u-boot-2021.01+gitAUTOINC+74fc69c889-g74fc69c889/build/r5/u-boot-spl.bin", necessario per "tiboot3.bin".  Arresto.

what can i do to compile??

  • Hello,
    "ti-fs-firmware-am62x-gp.bin" is under "SDK_install_folder/board-support/prebuilt-images" folder.
    There's another "easy" option to build u-boot via the top level "Makefile"
    1. cd "SDK_intall_folder"
    2. make u-boot
    3. export PATH=$PWD/board-support/u-boot_build/r5/tools:$PATH
    4. make sysfw-image
    Note that
    #2 build u-boot binary for R5 and A53
    #3 set path for "mkimage"
    #4 build "tiboot3.bin". where multiple line errors "error: object directory /jenkins/...." can be ignored.

  • Ok, top makefile is working, now i m trying to do it also following processor sdk guide: taking "ti-fs-firmware-am62x-gp.bin" is under "SDK_install_folder/board-support/prebuilt-images" works too.

    Now i m stuck in building binaries for a53, the guide says:

    make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- ATF=<path-to-atf>/build/k3/generic/release/bl31.bin TEE=<path-to-optee>/out/arm-plat-k3/core/tee-pager_v2.bin DM=<path-to-ti-linux-firmware>/ti-dm/am62x/ipc_echo_testb_mcu1_0_release_strip.xer5f O=<path-to-u-boot-a53>/a53

    but i cannot find tee-pager_v2.bin what should i feed to "make"?

    Thank You

    Emanuele P.

  • Hello Emanuele,
    In reference to the top level Makefile:
    UBOOT_ATF=$(TI_SDK_PATH)/board-support/prebuilt-images/bl31.bin
    UBOOT_TEE=$(TI_SDK_PATH)/board-support/prebuilt-images/bl32.bin
    It would work either by "make u-boot" or cmdline by picking-up "bl31.bin" and "bl32.bin" from "prebuilt-images" folder.
    Best,
    -Hong