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: Problems with getting access to UFS interface

Part Number: TDA4VM

Hi,

I am currently trying to execute the instructions given from this thread e2e.ti.com/.../922975 to mount UFS in Linux. I am using the PSDKLA

07_00_01 and I updated to SD card boot files according to the Getting Started Guide of the PSDKLA to u-boot version 2020.01. However I get some strange output when booting up and additionally, when I try to execute step 3) and 5) of the already mentioned thread from the beginning.

U-Boot SPL 2020.01-dirty (Oct 06 2020 - 08:23:24 +0200)
SYSFW ABI: 3.0 (firmware rev 0x0014 '20.04.1-v2020.04a (Terrific Lla')
Trying to boot from MMC2
Loading Environment from MMC... *** Warning - No MMC card found, using default environment

Remoteproc 2 started successfully
** File not found /lib/firmware/j7-mcu-r5f0_0-fw **
Starting ATF on ARM64 core...

NOTICE:  BL31: v2.3():07.00.00.005-dirty
NOTICE:  BL31: Built : 14:33:55, Jun 17 2020

U-Boot SPL 2020.01-dirty (Oct 06 2020 - 08:22:27 +0200)
SYSFW ABI: 3.0 (firmware rev 0x0014 '20.04.1-v2020.04a (Terrific Lla')
Detected: J7X-BASE-CPB rev E3
Detected: J7X-VSC8514-ETH rev E2
Trying to boot from MMC2


U-Boot 2020.01-dirty (Oct 06 2020 - 08:22:27 +0200)

SoC:   J721E SR1.0
Model: Texas Instruments K3 J721E SoC
Board: J721EX-PM2-SOM rev E7
DRAM:  4 GiB
not found for dev hbmc-mux
Flash: 0 Bytes
MMC:   ti_sci_power_domain_on: get_device(91) failed (-19)
sdhci@4f80000 - probe failed: -19
ti_sci_power_domain_on: get_device(91) failed (-19)

Loading Environment from MMC... *** Warning - No MMC card found, using default environment

In:    serial@2800000
Out:   serial@2800000
Err:   serial@2800000
Detected: J7X-BASE-CPB rev E3
Detected: J7X-VSC8514-ETH rev E2
Net:   
Warning: ethernet@046000000 using MAC address from ROM
eth0: ethernet@046000000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc1 is current device
SD/MMC found on device 1
40 bytes read in 1 ms (39.1 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc1 ...
16654344 bytes read in 338 ms (47 MiB/s)
89857 bytes read in 4 ms (21.4 MiB/s)
## Flattened Device Tree blob at 82000000
   Booting using the fdt blob at 0x82000000
   Loading Device Tree to 00000000fdda1000, end 00000000fdeb9fff ... OK

Starting kernel ...

After the kernel has been started, I get this output when executing step 3) from the thread:
root@j7-evm:~# ufs-utils desc -t 1 -w ./config_desc_data_ind_-p /dev/bsg/ufs-bsg0

 Err: Missing device path type

And for step 5) at the u-boot prompt, I get this error:

=> ufs init
ti_sci_power_domain_on: get_device(277) failed (-19)

What is missing in my configuration so that I can execute these commands properly? Sorry if the solution is obvious, but I am new at working with the TDA4 board. 

Thank You!

  • Hi,

    U-Boot SPL 2020.01-dirty So something is dirty(changed) can you prepare the card using bin/mksdboot.sh script?
    So that we use the pre-built images.

    Are you using a custom board or its a TDA standard TI EVM?

    Best Regards,
    Keerthy

  • Hi,

    this partly solved my issue. I get now this output when booting:

    U-Boot SPL 2020.01 (Oct 06 2020 - 11:15:30 +0200)
    SYSFW ABI: 3.0 (firmware rev 0x0014 '20.04.1-v2020.04a (Terrific Lla')
    Trying to boot from MMC2
    Loading Environment from MMC... *** Warning - No MMC card found, using default environment
    
    Remoteproc 2 started successfully
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.3():07.00.00.005-dirty
    NOTICE:  BL31: Built : 14:33:55, Jun 17 2020
    
    U-Boot SPL 2020.01 (Oct 06 2020 - 11:14:28 +0200)
    SYSFW ABI: 3.0 (firmware rev 0x0014 '20.04.1-v2020.04a (Terrific Lla')
    Detected: J7X-BASE-CPB rev E3
    Detected: J7X-VSC8514-ETH rev E2
    Trying to boot from MMC2
    
    
    U-Boot 2020.01 (Oct 06 2020 - 11:14:28 +0200)
    
    SoC:   J721E SR1.0
    Model: Texas Instruments K3 J721E SoC
    Board: J721EX-PM2-SOM rev E7
    DRAM:  4 GiB
    not found for dev hbmc-mux
    Flash: 0 Bytes
    MMC:   sdhci@4f80000: 0, sdhci@4fb0000: 1
    Loading Environment from MMC... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Detected: J7X-BASE-CPB rev E3
    Detected: J7X-VSC8514-ETH rev E2
    Net:   eth0: ethernet@046000000
    Hit any key to stop autoboot:  0 
    switch to partitions #0, OK
    mmc1 is current device
    SD/MMC found on device 1
    0 bytes read in 1 ms (0 Bytes/s)
    Loaded env from uEnv.txt
    Importing environment from mmc1 ...
    ethernet@046000000 Waiting for PHY auto negotiation to complete... done
    link up on port 1, speed 1000, full duplex
    BOOTP broadcast 1
    DHCP client bound to address 172.16.1.168 (3 ms)
    link up on port 1, speed 1000, full duplex
    BOOTP broadcast 1
    DHCP client bound to address 172.16.1.168 (2 ms)
    link up on port 1, speed 1000, full duplex
    Using ethernet@046000000 device
    TFTP from server 172.16.1.167; our IP address is 172.16.1.168
    Filename 'Image-j7-evm.bin'.
    Load address: 0x80080000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ###
             1.1 MiB/s
    done
    Bytes transferred = 16654344 (fe2008 hex)
    link up on port 1, speed 1000, full duplex
    Using ethernet@046000000 device
    TFTP from server 172.16.1.167; our IP address is 172.16.1.168
    Filename 'k3-j721e-common-proc-board.dtb'.
    Load address: 0x82000000
    Loading: ##################
             1.5 MiB/s
    done
    Bytes transferred = 89857 (15f01 hex)
    ## Flattened Device Tree blob at 82000000
       Booting using the fdt blob at 0x82000000
       Loading Device Tree to 00000000fdda1000, end 00000000fdeb9fff ... OK
    
    Starting kernel ...

    But I still have problems with executing the ufs-utils command. I copied config_desc_data_ind_0 to the rootfs partation of the SD card to rootfs/home/root. (There were problems with the copy command so I executed it in sudo mode)

    cp config_desc_data_ind_0 /media/USER/rootfs/home/root/
    cp: cannot stat '/media/USER/rootfs/home/root/config_desc_data_ind_0': Permission denied
    

    After this, I booted and tried to execute the ufs-utils command in kernel prompt. But I get again this as an output:

    root@j7-evm:~# ufs-utils desc -t 1 -w ./config_desc_data_ind_-p /dev/bsg/ufs-bsg0
    
     Err: Missing device path type
    

    When executing the commands in the u-boot prompt, I get this as an output:

    ufs init
    Device at ufs@4e84000 up at:[RX, TX]: gear=[3, 3], lane[2, 2], pwr[FAST MODE, FAST MODE], rate = 2
    => scsi scan
    scanning bus for devices...
    => 
    

    So I do not find any relevant devices. So maybe there went something wrong with copying the config file?

  • user6456602 said:

    But I still have problems with executing the ufs-utils command. I copied config_desc_data_ind_0 to the rootfs partation of the SD card to rootfs/home/root. (There were problems with the copy command so I executed it in sudo mode)

    1
    2
    cp config_desc_data_ind_0 /media/USER/rootfs/home/root/
    cp: cannot stat '/media/USER/rootfs/home/root/config_desc_data_ind_0': Permission denied

    After this, I booted and tried to execute the ufs-utils command in kernel prompt. But I get again this as an output:

    Your copy has failed. Please use sudo to copy to your file system and try. This should work.

    If it works please resolve.

    Best Regards,
    Keerthy

  • Hi Keerthy, 

    yes you are right. But the original problem was instead, that, when booting the TDA4 with a LAN cable plugged in, it could not find the correct copied config file. Unplugging and afterwards executing the ./setup.sh solved this issue. Thanks again.

  • Hi,

    Great. Could you please resolve this thread?

    Best Regards,
    Keerthy