J721EXCPXEVM: J721EXCPXEVM: Procedure to generate DRA821/J7200 RTOS SD card image

Part Number: J721EXCPXEVM
Other Parts Discussed in Thread: DRA821,

Tool/software:

Hi,


I am looking for instructions to generate the SD card image for DRA821/J7200 EVM which contains Linux and R5 core samples. Since I want to run RTOS on the MCU core, I am using the PROCESSOR-SDK-RTOS-J7200 version 11.00.00.03.
But, I am unable find proper instructions to build and generate the SD card image.
Do you guys have any advice or links that could point me in the right direction?

Thank you.

  • Hello,

    Apologies for the delayed response. By default Linux SDK has the R5F firmware which is a minimal ipc echo test examples.
    You can start with Linux SDK and then go on to build ipc examples from the RTOS SDK.

    - Keerthy

  • Hi Keerthy,

    Thank you for your response. I am trying to run U-Boot on A72 and RTOS/other apps on R5 cores.
    I would like to share the steps that I followed.

    Document referred:
    <PDK>/docs/userguide/j7200/boot/boot_k3.html#building-the-sbl-and-its-componentsfile

    Step 1.:  Compiling SBL for GP device to a [.tiimage] file
    Command executed:
    cd <PDK>/packages/ti/boot/sbl/build
    make clean all
    This is supposed to generate [sbl_mmcsd_img_mcu1_0_release.tiimage] and [sbl_mmcsd_img_hlos_mcu1_0_release.tiimage] under the folder:
    <PDK>packages\ti\boot\sbl\binary\j7200_evm\mmcsd\bin


    Results are as follows on ti-processor-sdk-rtos-j7200-evm-xx_xx_xx_xx:
    Version 11_00_00_03 : Compilation error, doesn't generate .tiimage files
    Version 08_02_00_05 : Compilation error occurs, but generates the .tiimage  files.
    Version 10_01_00_04 : Compilation error occurs, but generates the .tiimage  files

    Step 2.: Generate [.appimage] for HLOS+RTOS image
    Step 2.1: Create a folder and copy the ATF, OPTEE, U-Boot-SPL images to that folder.
    Eg: Copy bl31.bin, bl32.bin, A72 u-boot-spl.bin to the folder /home/work/e-drive/DRA821/J721EXCPXEVM/SDK_11_00_10_01/PROCESSOR-SDK-RTOS-J7200/ti-processor-sdk-rtos-j7200-evm-08_02_00_05/HLOS-files/

    Step 2.2: Modify the following variables in file [<PDK>\packages\ti\boot\sbl\tools\combined_appimage\config.mk]
    HLOS_BIN_PATH ?= /home/work/e-drive/DRA821/J721EXCPXEVM/SDK_11_00_10_01/PROCESSOR-SDK-RTOS-J7200/ti-processor-sdk-rtos-j7200-evm-08_02_00_05/HLOS-files/
    HLOS_BOOT ?= development
    IMG1 ?= mcu1_0,$(PDK_INSTALL_PATH)/ti/boot/sbl/example/k3MulticoreApp/binary/j7200/sbl_baremetal_boot_perf_j7200_evm_mcu1_0TestApp_release.xer5f
    IMG2 ?= mcu1_1,$(PDK_INSTALL_PATH)/ti/boot/sbl/example/k3MulticoreApp/binary/j7200/sbl_baremetal_boot_test_j7200_evm_mcu1_1TestApp_release.xer5f
    IMG3 ?= mcu2_0,$(PDK_INSTALL_PATH)/ti/boot/sbl/example/k3MulticoreApp/binary/j7200/sbl_baremetal_boot_test_j7200_evm_mcu2_0TestApp_release.xer5f
    IMG4 ?= mcu2_1,$(PDK_INSTALL_PATH)/ti/boot/sbl/example/k3MulticoreApp/binary/j7200/sbl_baremetal_boot_test_j7200_evm_mcu2_1TestApp_release.xer5f

    Step 2.3: 
    Execute the command
    cd <PDK>/packages/ti/boot/sbl/tools/combined_appimage
    make BOARD=j7200_evm

    Result: The binary file [combined.appimage] is generated under the folder:
    <PDK>\packages\ti\boot\sbl\tools\combined_appimage\bin\j7200_evm

    Step 3. Copy files to SD card.
    Copy the file [sbl_mmcsd_img_hlos_mcu1_0_release.tiimage] to the SD card and rename it to [tiboot3.bin].
    Copy the file [combined.appimage] to the SD card and rename to [app].
    Copy the TIFS file [tifs.bin] found in <PDK>/packages/ti/drv/sciclient/soc/Vx to the SD card.

    Result on Booting from SD card:
    The R5 apps run, but U-Boot SPL does not run on A72.

    Please let me know if you have any tips.

    Thank you.
    Best regards,
    Aiyappa

  • Hi Aiyappa,

    Thanks for the steps. I’ll test them on my side and update you tomorrow.

    Regards,

    Karthik

  • Hi Aiyappa,

    Could you please refer the attached HLOS Boot procedure , let us know if this helps.

    HLOS_Boot_using_SBL.zip

    Regards,

    Karthik

  • Hi Karthik,

    Thank you for your reply and the instructions.
    I appreciate that you took the effort to look into the problem.

    However, when I try Step 3.2 [make BOARD=j7200_evm sbl_mmcsd_img_hlos -sj], the following error is displayed:
    make: *** No rule to make target 'sbl_mmcsd_img_hlos'.

    I am using ti-processor-sdk-rtos-j7200-evm-11_00_00_03 and am running the build from the directory
     <pdk install path>/packages/ti/boot/sbl/build
     
    On a different note, executing [make clean; make all BOARD=j7200_evm] results in the following error:
    /packages/ti/boot/sbl/build/sbl_multicore_boot_test.mk:30: force_multi_core_img_gen.c] Segmentation fault (core dumped)

    [sbl_mmcsd_img_hlos_mcu1_0_release.tiimage] is still created though under the folder
    <pdk install path>/packages/ti/boot/sbl/binary/j7200_evm/mmcsd/bin

    I followed the rest of the instructions and created the SD card, but an error occurs during boot in U-boot SPL and the target keeps rebooting.
    Since the entire process is not working as expected, I'll let it rest for now.
    Perhaps I'll pursue this problem when I have some free time in the future.

    Thank you.
    Best regards,
    Aiyappa

  • Hi Aiyappa,

    Could you please build from below  directory.

    <pdk install path>pdk_j7200_11_00_00_21/packages/ti/build$ make BOARD=j7200_evm sbl_mmcsd_img_hlos -sj

    Regards,

    Karthik