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.

RTOS/TDA2PXEVM: Issue with existing SD card MLO/AppImage replaced with new MLO/AppImage by using network_ctrl tool

Part Number: TDA2PXEVM

Tool/software: TI-RTOS

Hi,

 We tried to update  the SD card with new TDA2Px MLO/AppImage by using the network_ctrl tools from a window machine. For this ,we used below mentioned  commands

./network_ctrl.exe --ipaddr 192.168.1.200 --cmd mmc_wr_appimage AppImage.

./network_ctrl.exe --ipaddr 192.168.1.200 --cmd mmc_wr_sbl  MLO

Although it said it's successfully flashed the image onto the SD Card, but it didn't work. Here , we observed that ,when we are copying new AppImage/MLO which has less size than that of old AppImage/MLO then its not copying properly. we can see same AppImage/MLO size before and after copying.

Do we need to reconfigure the size  for MLO and AppImage?

Is there any size constraint or other limitation for MLO and AppImage when we update these image in sd card by using network_ctrl tool ?

Is there any way to format/erase the SD card before updating MLO and AppImage files?

Please let me know  your support to resolve above issue . 

Regards

Raj

  • Hi Raj,

    Similar issue is discussed in another e2e thread.
    Can you refer to e2e.ti.com/.../766897

    Regards,
    Rishabh
  • Hi Raj,

    Can you check what is the value of FATFS_PROC_TO_USE in your configuration. It should be ipu1_0.

    Regards,
    Rishabh
  • HI Rishabh,


    Thanks for support!

    I can find below mentioned output for showconfig:

    @:~/workspace/TDA2P-EVM/vision_sdk/build$ make -s showconfig
    #
    # Build Config is [ tda2px_evm_bios_all ]
    # Build Config file is @ /data/work/rveer/workspace/TDA2P-EVM/vision_sdk/configs/tda2px_evm_bios_all/cfg.mk
    # Build Config .h file is @ /data/work/rveer/workspace/TDA2P-EVM/vision_sdk/links_fw/include/config/apps/tda2px_evm_bios_all/system_cfg.h
    # Build CPUs is @ ipu1_0 ipu1_1 ipu2 a15_0 dsp1 dsp2 eve1 eve2
    #
    # CPUs included in application,
    # PROC_IPU1_0_INCLUDE=yes
    # PROC_IPU1_1_INCLUDE=yes
    # PROC_IPU2_INCLUDE=yes
    # PROC_DSP1_INCLUDE=yes
    # PROC_DSP2_INCLUDE=yes
    # PROC_EVE1_INCLUDE=yes
    # PROC_EVE2_INCLUDE=yes
    # PROC_EVE3_INCLUDE=no
    # PROC_EVE4_INCLUDE=no
    # PROC_A15_0_INCLUDE=yes
    #
    # Platform config,
    # VSDK_BOARD_TYPE=TDA2PX_EVM [options: TDA2XX_EVM TDA2EX_EVM TDA3XX_EVM TDA3XX_RVP TDA2XX_RVP]
    # PLATFORM=tda2px-evm
    # DUAL_A15_SMP_BIOS=no
    # DDR_MEM=DDR_MEM_512M [options: DDR_MEM_128M DDR_MEM_512M DDR_MEM_1024M]
    # NDK_PROC_TO_USE=a15_0 [options: a15_0 ipu1_0 ipu1_1 ipu2 none]
    # NSP_TFDTP_INCLUDE=no [options: yes no]
    # TDA2EX_ETHSRV_BOARD=no [options: yes no]
    # FATFS_PROC_TO_USE=ipu1_0 [options: ipu1_0 none]
    # RADAR_BOARD=none [options: TDA3XX_AR12_ALPS TDA3XX_AR12_VIB_DAB_BOOSTER TDA3XX_RADAR_RVP none]
    ...

    Regards
    Raj

  • Hi Raj,

    What is the release that you are using?
    I tried 3.06 release on TDA2P EVM and it is working for me.

    Regards,
    Rishabh
  • Hi Rishabh,

    We are using REL_VISION_SDK_03_03_00_0 on TDA2px EVM. It's not working , specially when we try to update smaller size of MLO/AppImage in compare to existing MLO/AppImage file size on to SD card.

    It's working fine when we update with same or larger size of MLO/AppImage. I tried same with release SDK_03_03_00_0 base code without any modification.
    I think , this issue is exist with target side network tool code. Here, i suspect , we are not opening a file with proper file mode during copying to smaller size MLO /AppImage file on to SD card.

    Regards
    Raj
  • Hi Raj,

    Can you download the latest release from software-dl.ti.com/.../index_FDS.html and see if still face the same issue.

    Regards,
    Rishabh
  • Hi,

    I haven't heard back from you, I'm assuming you were able to resolve your issue.
    If not, just post a reply below (or create a new thread if the thread has locked due to time-out).

    Regards,
    Rishabh
  • Hi Rishabh,

    No, still it's not resolved .

    We are working on vision sdk 3.03 based repo . This issue still exist with particularly when we try to update small size ( in compare to existing SD card Image) of image .

    As you mentioned in above discussion that, you tested successfully and its working fine for you.

    Did you verify by updating small size of AppImage/MLO( in compare to existing SD card Image) with vision sdk3.03 release on TDA2PX EVM?


    Regards
    Raj

  • Hi Raj,

    As mentioned above I have tested with 03.06, not the specific use case you are trying.
    Hence I have asked you to try if the latest release is working for you.

    Regards,
    Rishabh
  • Hi Rishabh,

    This issue is exist in vision sdk 03.06.

    After debug the released SDK code , i find that, FA_CREATE_ALWAY FatFs mode flag is missing from file_open api (links_fw/src/rtos/utils_common/src/file_api.c) if we update/truncate the same file.

    I tried with below mentioned code fix ,It's working fine in case of small size of AppImage/MLO update in SD card via network ctrl tool.

    file path : links_fw/src/rtos/utils_common/src/file_api.c

    Int32 File_open(char *filename, char *mode)
    {
    ...
    if(mode[0]=='w')
    {
    fresult = f_open(&gFileSys_obj.fileObj[fd], filename, FA_CREATE_ALWAYS | FA_WRITE);
    if (fresult != FR_OK)
    {
    File_freeObj(fd);
    fd = -1;
    }
    }
    }...

    I still see a time stamp issue with updated AppImage/MLO image in SD card. It's showing 6/5/2007 11.38 AM .

    Please let me know your input to resolve time stamp issue?


    Regards
    Raj
  • Hi Raj,

    Glad that you are able to fix flashing issue.
    This will be fixed in next release.
    Vision SDK does not support system time hence you are not getting the correct time stamp.

    Regards,
    Rishabh
  • Hi Rishabh,

    Is there any way to format/erase the SD card before updating MLO and AppImage files ,when sd card is connected on HW?

    Please let me know your input.

    Regards
    Raj
  • Hi Raj,

    Using File_delete you should be able to delete MLO and AppImage.
    However I don't think there is any API for formatting SD card.

    Regards,
    Rishabh
  • Thank you for Reply.

    Regards
    Raj
  • Hi Raj,

    Can you mark the posts that answered your query as "This resolved my issue" and close the thread.

    Regards,
    Rishabh