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-DRA8X-TDA4X: TDA4 SD card creation issue

Part Number: PROCESSOR-SDK-DRA8X-TDA4X


Hi Champs:

I follow those steps to create the TDA4 Booting SD card as the following:

#Run below script to partition SD, answer "y" to all questions
cd ${PSDKRA_PATH}
cd psdk_rtos_auto/scripts
./mk-linux-card.sh /dev/sdb
sync
sync
sync

#Unplug SD then plug SD, two partitions (BOOT and rootfs) should appear

#Copy/untar filesystem and boot files to SD card by executing the script as shown below
cd ${PSDKRA_PATH}
./psdk_rtos_auto/scripts/install_to_sd_card.sh <--- must run this command under ${PSDKRA_PATH} directorysusy

#copy psdk_rtos_auto_ti_data_set_06_00_01_00.tar.gz to your home directory. (psdk_rtos_auto_ti_data_set_06_00_01_00.tar.gz is included in PSDKRA)
cd /media/root/rootfs/ <--- root is your username
mkdir -p opt/vision_apps
cd opt/vision_apps
tar -xvf ~/psdk_rtos_auto_ti_data_set_06_00_01_00.tar.gz (ps: don't use the tar -xvzf, see here:www.linuxquestions.org/.../)
Rio: commmand usage: tar -xf file_name.tar.gz --directory /target/directory
==>tar -xvf psdk_rtos_auto_ti_data_set_06_00_01_00.tar.gz --directory /media/root/rootfs/opt/vision_apps/

In the red word steps, I found my SD card will have this kind of contain:

user@ubuntu-vm:/opt/psdk_rtos_auto_j7_06_00_01_00/psdk_rtos_auto/scripts$ ls /media/ -al
total 16
drwxr-xr-x 4 root root 4096 Sep 11 2019 .
drwxr-xr-x 26 root root 4096 Apr 22 18:25 ..
drwxr-x---+ 3 root root 4096 Apr 21 15:10 root
drwxr-x---+ 4 root root 4096 Apr 24 11:37 user

The BOOT/rootfs should be the 1st directory depth, but I found they are in the "user" folder like this.

user@ubuntu-vm:/opt/psdk_rtos_auto_j7_06_00_01_00/psdk_rtos_auto/scripts$ ls /media/user -al
total 13
drwxr-x---+ 4 root root 4096 Apr 24 11:37 .
drwxr-xr-x 4 root root 4096 Sep 11 2019 ..
drwxr-xr-x 2 user user 512 Jan 1 1970 BOOT
drwxr-xr-x 3 root root 4096 Apr 24 11:35 rootfs

This result will cause this steps to fail: /psdk_rtos_auto/scripts/install_to_sd_card.sh

How to solve it?

BR Rio

  • Hi , 

    I executed the script at this path again, and the SD card contain is like this:

    user@ubuntu-vm:/opt/psdk_rtos_auto_j7_06_00_01_00$ ./psdk_rtos_auto/scripts/install_to_sd_card.sh
    Installing /opt/psdk_rtos_auto_j7_06_00_01_00/boot-j7-evm.tar.gz to /media/user/BOOT ...
    /opt/psdk_rtos_auto_j7_06_00_01_00
    Installing /opt/psdk_rtos_auto_j7_06_00_01_00/boot-j7-evm.tar.gz to /media/user/BOOT ... Done
    Installing /opt/psdk_rtos_auto_j7_06_00_01_00/tisdk-rootfs-image-j7-evm.tar.xz to /media/user/rootfs ...
    /opt/psdk_rtos_auto_j7_06_00_01_00
    Installing /opt/psdk_rtos_auto_j7_06_00_01_00/tisdk-rootfs-image-j7-evm.tar.xz to /media/user//media/user/rootfs ... Done
    user@ubuntu-vm:/opt/psdk_rtos_auto_j7_06_00_01_00$ ls /media/
    root user
    user@ubuntu-vm:/opt/psdk_rtos_auto_j7_06_00_01_00$

    This time, it shows no error, please review if my result is okay.

    BR Rio

  • Rio,

    The key to have a proper SD card is to NOT get into the "psdk_rtos_auto/scripts/" folder before executing the
    install_to_sd_card.sh script.

    ./psdk_rtos_auto/scripts/install_to_sd_card.sh <--- must run this command under ${PSDKRA_PATH} directorysusy

    The above should be done as mentioned.

    They seem good to me. I believe you have the /opt/vision_apps in your SD card rootfs.

    You can quickly check by entering: cd /opt/vision_apps & doing souce ./vision_apps_init.sh and it should
    succeed.

    BR,
    Keerthy


  • Hi Keerthy:

    Thanks, this issue is closed.

    BR Rio

  • Hi Rio,

    Thanks for confirming. Please resolve this issue.

    Best Regards,
    Keerthy