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: SD card boot QNX, Unable to access /ti_fs/scripts/user.sh

Part Number: TDA4VM

Hi. expert

sdk: ti-processor-sdk-rtos-j721e-evm-07_02_00_06

SD card boot QNX,Unable to access /ti_fs/scripts/user.sh。

SD card has scripts directory

log:


U-Boot SPL 2020.01-g3c9ebdb87d (Jan 25 2021 - 04:06:36 +0000)
SYSFW ABI: 3.1 (firmware rev 0x0014 '20.8.5--v2020.08b (Terrific Lla')
Reading on-board EEPROM at 0x50 failed 1
Trying to boot from MMC2
Loading Environment from MMC... *** Warning - No MMC card found, using default environment

Starting ATF on ARM64 core...

NOTICE: BL31: v2.3():07.01.00.006-dirty
NOTICE: BL31: Built : 03:49:38, Jan 25 2021

U-Boot SPL 2020.01-dirty (Mar 03 2021 - 16:49:23 +0800)
SYSFW ABI: 3.1 (firmware rev 0x0014 '20.8.5--v2020.08b (Terrific Lla')
Reading on-board EEPROM at 0x50 failed 1
Trying to boot from MMC2
i2c_write: error waiting for data ACK (status=0x116)
Error reading output register


U-Boot 2020.01-dirty (Mar 03 2021 - 16:49:23 +0800)

SoC: J721E SR1.0
Model: Texas Instruments K3 J721E SoC
Reading on-board EEPROM at 0x50 failed 1
Board: J721EX-PM1-SOM rev E2
DRAM: 4 GiB
not found for dev hbmc-mux
Flash: 0 Bytes
MMC: sdhci@4f80000: 0, sdhci@4fb0000: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In: serial@2800000
Out: serial@2800000
Err: serial@2800000
Reading on-board EEPROM at 0x50 failed 1
Net: Could not get PHY for ethernet@46000000: addr 0
phy_connect() failed
No ethernet found.

Hit any key to stop autoboot: 0
i2c_write: error waiting for data ACK (status=0x116)
Error reading output register
switch to partitions #0, OK
mmc1 is current device
i2c_write: error waiting for data ACK (status=0x116)
Error reading output register
SD/MMC found on device 1
530 bytes read in 3 ms (171.9 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc1 ...
Running uenvcmd ...
5216568 bytes read in 219 ms (22.7 MiB/s)
Load Remote Processor 2 with data@addr=0x82000000 5216568 bytes: Success!
1964000 bytes read in 84 ms (22.3 MiB/s)
Load Remote Processor 3 with data@addr=0x82000000 1964000 bytes: Success!
1579120 bytes read in 64 ms (23.5 MiB/s)
Load Remote Processor 6 with data@addr=0x82000000 1579120 bytes: Success!
1579120 bytes read in 65 ms (23.2 MiB/s)
Load Remote Processor 7 with data@addr=0x82000000 1579120 bytes: Success!
9969592 bytes read in 162 ms (58.7 MiB/s)
Load Remote Processor 8 with data@addr=0x82000000 9969592 bytes: Success!
8176336 bytes read in 342 ms (22.8 MiB/s)
## Starting application at 0x80080000 ...
MMU: 16-bit ASID 44-bit PA TCR_EL1=b5183519
cpu0: MPIDR=80000000
cpu0: MIDR=411fd080 Cortex-A72 r1p0
cpu0: CWG=4 ERG=4 Dminline=4 Iminline=4 PIPT
cpu0: CLIDR=a200023 LoUU=1 LoC=2 LoUIS=1
cpu0: L1 Icache 48K linesz=64 set/way=256/3
cpu0: L1 Dcache 32K linesz=64 set/way=256/2
cpu0: L2 Unified 1024K linesz=64 set/way=1024/16
Display set to R5
Loading IFS...decompressing...done
cpu1: MPIDR=80000001
cpu1: MIDR=411fd080 Cortex-A72 r1p0
cpu1: CWG=4 ERG=4 Dminline=4 Iminline=4 PIPT
cpu1: CLIDR=a200023 LoUU=1 LoC=2 LoUIS=1
cpu1: L1 Icache 48K linesz=64 set/way=256/3
cpu1: L1 Dcache 32K linesz=64 set/way=256/2
cpu1: L2 Unified 1024K linesz=64 set/way=1024/16

System page at phys:0000000080011000 user:ffffff8040254000 kern:ffffff8040251000
Starting next program at vffffff8060086e10
All ClockCycles offsets within tolerance
Welcome to QNX Neutrino 7.1.0 on the TI J721E EVM Board!!
Starting random service ...
start serial driver
Starting MMC/SD memory card driver... eMMC
Starting MMC/SD memory card driver... SD
Starting XHCI driver on USB3SS0 and USB3SS1
Path=0 - am65x
target=0 lun=0 Direct-Access(0) - SDMMC: R1J55A Rev: 1.0
Setting environment variables...
done..
Looking for user script to run: /ti_fs/scripts/user.sh
Unable to access /ti_fs/scripts/user.sh

  • HI,

    The error is indicating that the a  filesystem script, that was expected to be part of the filesystem could not be located.  There are a few reasons this could be occurring:

    1) The filesystem on the SD card, does not contain the file "/ti_fs/scripts/user.sh".   Please validate that the file is present on the SD card on the host machine.  If PSDK QNX installation steps are followed, expectation is that this file is present

    2) The SD card could not be mounted, and as such the file could not be found, as the filesystem is not accessible.   Assuming is that the QNX command prompt was still reached, could the output from below commands, when running command, please be provided:

    • pidin ar
    • ls -lR /proc/boot
    • ls -lR /ti_fs/

    Thanks,

    kb

  • HI . 

    Can be found on the SD card./scripts/user.sh,

    But could not find the ti_fs directory, I was completely following the manual to do the SD boot card


    root@ubuntu:/media/root/boot$
    root@ubuntu:/media/root/boot$ ls
    lib qnx-ifs-spl sysfw.itb tispl.bin version
    bin  sbin tibin u-boot.img vision_apps
    boot  scripts  tiboot3.bin uEnv.txt
    etc QNX-IFS sysfw.bin tilib usr

    root@ubuntu:/media/root/boot$ find -name user.sh
    ./scripts/user.sh

    J7EVM# pidin ar
    pid Arguments
    1 procnto-smp-instr -v
    2 slogger2
    3 pipe
    4 dumper -d /tmp
    5 random -t
    6 devc-seromap -e -F 0x02800000,224
    7 i2c-omap35xx -p0x2000000 -i232 -d
    8 i2c-omap35xx -p0x2010000 -i233 -d
    9 devb-sdmmc-am65x blk cache=1m sdio addr=0x4f80000,irq=35,timing=~hs400,emmc,bs=sscfg=0x8000 disk name=emmc
    10 devb-sdmmc-am65x blk noatime,cache=8M,automount=@/proc/boot/automount cam cache,async,quiet,pnp sdio addr=0x04fb0000,irq=36,bs=sscfg=0x8000:ldo=0x600000^117:pwrdev=/dev/i2c0 dos exe=all disk name=sd1
    11 io-pkt-v6-hc
    12300 io-usb-otg -d xhci ioport=0x6010000,irq=128,iosize=65536,nousb3,ioport=0x6410000,irq=136,iosize=65536,nousb3
    12301 ksh /proc/boot/.console_ti.sh
    20494 ksh ksh
    73743 pidin ar
    J7EVM#
    J7EVM# ls -lR /proc/boot

    /proc/boot:
    total 30320
    -rwxrwxr-x 1 qnxuser 1000 21998 Feb 10 2021 arp
    -r--r--r-- 1 qnxuser 1000 23 Feb 21 2021 automount
    -rwxrwxr-x 1 qnxuser 1000 22889 Feb 10 2021 cam-disk.so
    -rwxrwxr-x 1 qnxuser 1000 13271 Feb 10 2021 cat
    -rwxrwxr-x 1 qnxuser 1000 17806 Feb 10 2021 chmod
    -rwxrwxr-x 1 qnxuser 1000 62791 Feb 10 2021 cp
    -rwxrwxr-x 1 qnxuser 1000 19079 Feb 10 2021 date
    -rwxrwxr-x 1 qnxuser 1000 24945 Feb 10 2021 dd
    -rwxrwxr-x 1 qnxuser 1000 22158 Feb 10 2021 devb-ram
    -rwxrwxr-x 1 qnxuser 1000 124962 Feb 21 2021 devb-sdmmc-am65x
    -rwxrwxr-x 1 qnxuser 1000 60303 Feb 10 2021 devb-umass
    -rwxrwxr-x 1 qnxuser 1000 71142 Feb 10 2021 devc-pty
    -rwxrwxr-x 1 qnxuser 1000 72015 Feb 21 2021 devc-seromap
    -rwxrwxr-x 1 qnxuser 1000 405288 Feb 21 2021 devf-j7-ospi
    -rwxrwxr-x 1 qnxuser 1000 85585 Feb 10 2021 devnp-asix.so
    -rwxrwxr-x 1 qnxuser 1000 110823 Feb 10 2021 devu-hcd-xhci.so
    -rwxrwxr-x 1 qnxuser 1000 830021 Feb 10 2021 dhcpd
    -rwxrwxr-x 1 qnxuser 1000 138106 Feb 10 2021 dumper
    -rwxrwxr-x 1 qnxuser 1000 13486 Feb 10 2021 echo
    -rwxrwxr-x 1 qnxuser 1000 13169 Feb 10 2021 env
    -rwxrwxr-x 1 qnxuser 1000 57444 Feb 10 2021 fdisk
    -rwxrwxr-x 1 qnxuser 1000 22436 Feb 10 2021 flashctl
    -rwxrwxr-x 1 qnxuser 1000 102220 Feb 10 2021 fs-cifs
    -rwxrwxr-x 1 qnxuser 1000 109095 Feb 10 2021 fs-dos.so
    -rwxrwxr-x 1 qnxuser 1000 101833 Feb 10 2021 fs-nfs3
    -rwxrwxr-x 1 qnxuser 1000 271141 Feb 10 2021 fs-qnx6.so
    -rwxrwxr-x 1 qnxuser 1000 415788 Feb 10 2021 ftp
    -rwxrwxr-x 1 qnxuser 1000 38755 Feb 10 2021 getconf
    -rwxrwxr-x 1 qnxuser 1000 23580 Feb 10 2021 grep
    -rwxrwxr-x 1 qnxuser 1000 13149 Feb 10 2021 hostname
    -rwxrwxr-x 1 qnxuser 1000 37891 Feb 21 2021 i2c-omap35xx
    -rwxrwxr-x 1 qnxuser 1000 13900 Feb 10 2021 if_up
    -rwxrwxr-x 1 qnxuser 1000 119702 Feb 10 2021 ifconfig
    -rwxrwxr-x 1 qnxuser 1000 62868 Feb 10 2021 inetd
    -rwxrwxr-x 1 qnxuser 1000 355548 Feb 10 2021 io-blk.so
    -rwxrwxr-x 1 qnxuser 1000 1623927 Feb 10 2021 io-pkt-v6-hc
    -rwxrwxr-x 1 qnxuser 1000 484197 Feb 10 2021 io-usb-otg
    -rwxrwxr-x 1 qnxuser 1000 13298 Feb 10 2021 isend
    -rwxrwxr-x 1 qnxuser 1000 295818 Feb 10 2021 ksh
    -rwxrwxr-x 1 qnxuser 1000 13046 Feb 10 2021 ldd
    lrwxrwxrwx 1 qnxuser 1000 13 Feb 10 2021 ldqnx-64.so -> ldqnx-64.so.2
    -rwxrwxr-x 1 qnxuser 1000 237611 Feb 10 2021 ldqnx-64.so.2
    lrwxrwxrwx 1 qnxuser 1000 9 Feb 10 2021 libc.so -> libc.so.5
    -rwxrwxr-x 1 qnxuser 1000 740460 Feb 10 2021 libc.so.5
    lrwxrwxrwx 1 qnxuser 1000 11 Feb 10 2021 libcam.so -> libcam.so.2
    -rwxrwxr-x 1 qnxuser 1000 111145 Feb 10 2021 libcam.so.2
    lrwxrwxrwx 1 qnxuser 1000 16 Feb 10 2021 libcrypto.so -> libcrypto.so.2.1
    -rwxr-xr-x 1 qnxuser 1000 2693908 Feb 10 2021 libcrypto.so.2.1
    lrwxrwxrwx 1 qnxuser 1000 13 Feb 10 2021 libgcc_s.so -> libgcc_s.so.1
    -rwxr-xr-x 1 qnxuser 1000 82044 Feb 10 2021 libgcc_s.so.1
    lrwxrwxrwx 1 qnxuser 1000 9 Feb 10 2021 libm.so -> libm.so.3
    -rwxrwxr-x 1 qnxuser 1000 254976 Feb 10 2021 libm.so.3
    lrwxrwxrwx 1 qnxuser 1000 14 Feb 10 2021 libnbutil.so -> libnbutil.so.1
    -rwxrwxr-x 1 qnxuser 1000 49807 Feb 10 2021 libnbutil.so.1
    lrwxrwxrwx 1 qnxuser 1000 16 Feb 10 2021 libncursesw.so -> libncursesw.so.1
    -rwxrwxr-x 1 qnxuser 1000 382708 Feb 10 2021 libncursesw.so.1
    lrwxrwxrwx 1 qnxuser 1000 17 Feb 10 2021 libqcrypto.so -> libqcrypto.so.1.0
    -rwxrwxr-x 1 qnxuser 1000 64216 Feb 10 2021 libqcrypto.so.1.0
    lrwxrwxrwx 1 qnxuser 1000 10 Feb 10 2021 libqh.so -> libqh.so.1
    -rwxrwxr-x 1 qnxuser 1000 63189 Feb 10 2021 libqh.so.1
    lrwxrwxrwx 1 qnxuser 1000 13 Feb 10 2021 libregex.so -> libregex.so.1
    -rwxrwxr-x 1 qnxuser 1000 46097 Feb 10 2021 libregex.so.1
    lrwxrwxrwx 1 qnxuser 1000 14 Feb 10 2021 libsecpol.so -> libsecpol.so.1
    -rwxrwxr-x 1 qnxuser 1000 21132 Feb 10 2021 libsecpol.so.1
    lrwxrwxrwx 1 qnxuser 1000 13 Feb 10 2021 libslog2.so -> libslog2.so.1
    -rwxrwxr-x 1 qnxuser 1000 25413 Feb 10 2021 libslog2.so.1
    lrwxrwxrwx 1 qnxuser 1000 18 Feb 10 2021 libslog2parse.so -> libslog2parse.so.1
    -rwxrwxr-x 1 qnxuser 1000 41594 Feb 10 2021 libslog2parse.so.1
    lrwxrwxrwx 1 qnxuser 1000 14 Feb 10 2021 libsocket.so -> libsocket.so.3
    -rwxrwxr-x 1 qnxuser 1000 247210 Feb 10 2021 libsocket.so.3
    lrwxrwxrwx 1 qnxuser 1000 13 Feb 10 2021 libssl.so -> libssl.so.2.1
    -rwxr-xr-x 1 qnxuser 1000 612820 Feb 10 2021 libssl.so.2.1
    lrwxrwxrwx 1 qnxuser 1000 13 Feb 10 2021 libusbdi.so -> libusbdi.so.2
    -rwxrwxr-x 1 qnxuser 1000 87630 Feb 10 2021 libusbdi.so.2
    lrwxrwxrwx 1 qnxuser 1000 9 Feb 10 2021 libz.so -> libz.so.2
    -rwxrwxr-x 1 qnxuser 1000 107114 Feb 10 2021 libz.so.2
    -rwxrwxr-x 1 qnxuser 1000 17887 Feb 10 2021 ln
    -rwxrwxr-x 1 qnxuser 1000 26535 Feb 10 2021 ls
    -rwxrwxr-x 1 qnxuser 1000 17629 Feb 10 2021 mkdir
    -rwxrwxr-x 1 qnxuser 1000 30424 Feb 10 2021 mkdosfs
    -rwxrwxr-x 1 qnxuser 1000 176074 Feb 10 2021 more
    -rwxrwxr-x 1 qnxuser 1000 22938 Feb 10 2021 mount
    -rwxrwxr-x 1 qnxuser 1000 62791 Feb 10 2021 mv
    -rwxrwxr-x 1 qnxuser 1000 21622 Feb 10 2021 nicinfo
    -rwxrwxr-x 1 qnxuser 1000 491372 Feb 10 2021 omshell
    -rwxrwxr-x 1 qnxuser 1000 38138 Feb 10 2021 on
    -rwxrwxr-x 1 qnxuser 1000 123483 Feb 10 2021 pidin
    -rwxrwxr-x 1 qnxuser 1000 51885 Feb 10 2021 ping
    -rwxrwxr-x 1 qnxuser 1000 29985 Feb 10 2021 pipe
    -rwxrwxr-x 1 qnxuser 1000 921600 Feb 10 2021 procnto-smp-instr
    -rwxrwxr-x 1 qnxuser 1000 88203 Feb 10 2021 ptpd
    -rwxrwxr-x 1 qnxuser 1000 13059 Feb 10 2021 ptpd_ctrl
    -rwxrwxr-x 1 qnxuser 1000 153982 Feb 10 2021 qconn
    -rwxrwxr-x 1 qnxuser 1000 137967 Feb 10 2021 qcrypto-openssl.so
    -rwxrwxr-x 1 qnxuser 1000 43209 Feb 10 2021 random
    -rwxrwxr-x 1 qnxuser 1000 62791 Feb 10 2021 rm
    -rwxrwxr-x 1 qnxuser 1000 43254 Feb 10 2021 route
    -rwxr-xr-x 1 qnxuser 1000 136106 Feb 10 2021 sed
    -rwxrwxr-x 1 qnxuser 1000 38755 Feb 10 2021 setconf
    -rwxrwxr-x 1 qnxuser 1000 25899 Feb 10 2021 shutdown
    -rwxrwxr-x 1 qnxuser 1000 28268 Feb 10 2021 slay
    -rwxrwxr-x 1 qnxuser 1000 13154 Feb 10 2021 sleep
    -rwxrwxr-x 1 qnxuser 1000 32377 Feb 10 2021 slog2info
    -rwxrwxr-x 1 qnxuser 1000 79764 Feb 10 2021 slogger2
    -rwxrwxr-x 1 qnxuser 1000 102011 Feb 10 2021 telnet
    -rwxrwxr-x 1 qnxuser 1000 42613 Feb 10 2021 tftp
    -rwxrwxr-x 1 qnxuser 1000 29792 Feb 10 2021 top
    -rwxrwxr-x 1 qnxuser 1000 13643 Feb 10 2021 touch
    -rwxrwxr-x 1 qnxuser 1000 13143 Feb 10 2021 umount
    -rwxrwxr-x 1 qnxuser 1000 13518 Feb 10 2021 uname
    -rwxrwxr-x 1 qnxuser 1000 50514 Feb 10 2021 usb
    -rwxrwxr-x 1 qnxuser 1000 83638 Feb 10 2021 use
    -rwxrwxr-x 1 qnxuser 1000 38138 Feb 10 2021 waitfor
    J7EVM#
    J7EVM# ls -lR /ti_fs/
    ls: No such file or directory (/ti_fs/)
    J7EVM#

  • Thanks for the information.

    The user.sh you have shown, is in the correct location.

    The SD card when mounted, should be mounted as "/ti_fs", such that the the path /ti_fs/scripts/user.sh, can be seen from the QNX command prompt, and/or seen by the build script in the IFS image.

    Can you please try running the below commands and provide the output.  

    slay -f devb-sdmmc-am65x 

    slog2info -c

    slog2info -w &

    devb-sdmmc-am65x blk noatime,cache=8M,automount=@/proc/boot/automount cam cache,async,quiet,pnp sdio addr=0x04fb0000,irq=36,timing=~sdr,bs=sscfg=0x8000:ldo=0x600000^117:pwrdev=/dev/i2c0 dos exe=all disk name=sd1

    sleep 1

    ls /ti_fs

    Expectation is that this would successfully mount the SD card and the /ti_fs path will be present. 

    If above command does not work then one additional test would be  to try would be to use a different SD card.

    If above command does work then this same command format can be used to replace the line in psdkqa/qnx/bsp/images/j721e-evm-ti-spl.build.   Note the addition of the "timing=~sdr", which will force the SD card to run at a lower speed.

    Regards,

    kb