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.

[TDA4VM] leoPmicLib_Test binary does not execute on linux kernel prompt

Other Parts Discussed in Thread: TDA4VM

Hi,

I have several questions about j721e_evm board diagnostic test.

leoPmicLib_Test binary built with j721e_evm, armv8 and mpu1.0 options, and I tried to run this binary after linux kernel boot complete,

but it cannot excute binary file with uart log( "cannot execute binary file: Exec format error" ).

Q1) I tried to build diagnostic module(LeoPMIC and framework) to run Leo PMIC diagnostic application on A72 core after linux kernel boot complete, not on main r5f cores.

       As you know, running diag app at linux kernel prompt and testing the devices is much easier than those on other DSP cores where it is not possible to execute it on the prompt manually.

       Is it supported that the specific diagnostic executable application can run on linux kernel or only on ti rtos or baremetal ?

      If diag software can run on linux os with j721e_evm, can you share how to build for linux os and run the executable file?

       I tried like that:

       Build)

        : cd pdk/packages/ti/build

        : make -s leoPmicLib_board_diag BOARD=j721e_evm CORE=mpu1_0
        : make -s framework_board_diag BOARD=j721e_evm CORE=mpu1_0

       Create sd)

        : cd pdk/packages/ti/board/diag

        ; ./create_sd.sh j721e_evm armv8 mpu1_0

 

Q2) I can not found any document about board diagnostic test in the documents of psdk v1.0.

       Can you share the related document like training materials: build guide of diagnostic software on linux and tirtos using SD card boot?

BRs,

Soolim

  • Hi Soolim,

    The Board diagnostics for the J7 should be run either with CCS flow or with the SBL boot flow.

    If you are using the SBL boot flow you should use the release. 

    If you are using the CCS flow you should use the debug binary.

    Detailed instruction for running examples using these boot flow is available as part of sdk user guide.  

    Regards,

    Ankur

  • Hi Ankur,

    I tried to make sbl boot images for sd card.

    and create sd for leo pmic with below options

    mcu1_0

    j721e_evm

    armv7

    I cannot see any uart log with my images.

    Please share the sbl boot 2 binaries and leo pmic sd bootable binary that run on mcu1_0 with j721e evm.

    BRs,

    Soolim

  • Hi Ankur,

    About preparing sd card for the boot, I have a question.

    1)  from sdk user guide, tiboot3.bin, sysfw.bin, app are copied at root directory of sd card.

       does Root directory of sd card is SD_BOOT, which is the label of sd card?

    2) If I am wrong, can you give a correct information on creating sd card(partitioning, formatting).

        I use ubuntu pc, so can you share the shell script to make sd card bootable using sbl boot images.

    BRs,

    Soolim

  • Hi Ankur,

    To verify HW path and tda4vm performance, the application such as single camera app is needed.

    It could be the application running on A72 linux os, and send and receive the message to/from main R5 core(mcu2_1).

    Can you make the patch based on psdk v1.0? As you know, A72 uses linux os, while other cores use ti-rtos.

    Performance test should be done with A72(linux) + other cores(tirtos) not using CCS tool or SBL boot.

    Please answer my questions and requests ASAP.

    BRs,

    Soolim

  • Hi Soolim,

    Let me answer your questions regarding the SD boot and running the PMIC lib test through SD card.

    Please check the below steps.

    - Build PMIC lib test from pdk/packages/ti/build folder using the below command

       make BOARD=j721e_evm leoPmicLib_board_diag

    -  Successful execution of above command creates test images under 'pdk/packages/ti/board/bin/j721e_evm/armv7' folder

    - Rename 'leoPmicLib_DiagExample_j721e_evm_mcu1_0_release.appimage' to 'app' and copy to SD card along with RTOS SBL (tiboot3.bin) and sysfw.bin files.

    - Insert the SD card to MicroSD slot of the EVM

    - Configure the board for SD boot

    - Connect MCU UART port (J43) of the board to host PC

    - Configure serial console application on host PC to use MCU UART port

    - Power ON the board. PMIC test should start running and shows test logs on MCU UART console.

    For running the PMIC test through SD boot, there is no specific SD card partitioning requirements. You can have single FAT32 partition on the SD card and copy all the boot images to this partition. If you are using Linux make SD script for formatting SD card, you can copy the images to the partition named as 'boot'.

    Let me know if you get into any issues.

    - Pratap.