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.

TDA4AL-Q1: EMMC failed to start

Part Number: TDA4AL-Q1

Hello, my board is designed by myself, using TDA4AL chip, our board uses spl emmc mode to test, just start using the following steps ,and switch to EMMC start successfully 

=> mmc dev 0 1
switch to partitions #1, OK
mmc0(part 1) is current device
=> fatload mmc 1 ${loadaddr} tiboot3.bin
filename[tiboot3.bin] 443806 bytes read in 29 ms (14.6 MiB/s)
=> mmc write ${loadaddr} 0x0 0x400

MMC write: dev # 0, block # 0, count 1024 ... 1024 blocks written: OK
=> fatload mmc 1 ${loadaddr} tispl.bin
filename[tispl.bin] 965852 bytes read in 52 ms (17.7 MiB/s)
=> mmc write ${loadaddr} 0x400 0x1000

MMC write: dev # 0, block # 1024, count 4096 ... 4096 blocks written: OK
=> fatload mmc 1 ${loadaddr} u-boot.img
filename[u-boot.img] 1116028 bytes read in 58 ms (18.3 MiB/s)
=> mmc write ${loadaddr} 0x1400 0x2000

MMC write: dev # 0, block # 5120, count 8192 ... 8192 blocks written: OK
=> mmc partconf 0 1 1 1
=> mmc bootbus 0 2 0 0

But repeat the step 2-3 times,There are no errors, the board switch to EMMC fails to start,There is no printing compared to the first time,We tried three boards and one didn't get up the first time

We use SD to enter the system, export EMMC boot0 through the following command, and we can find that there is data

j721s2-evm:~# dd if=/dev/mmcblk0boot0 of=boot0.hex bs=1M count=5
5+0 records in
5+0 records out
5242880 bytes (5.2 MB, 5.0 MiB) copied, 0.086184 s, 60.8 MB/s
j721s2-evm:~# sync

We tested the EMMC clock and cmd pin at boot and found a signal, There is no signal change at the measurement data0 pin

It seems that EMMC does not return any data, our voltage test of EMMC is normal, how to analyze this situation? Is it caused by software read and write problems or hardware errors, can you provide some suggestions? Thank you so much

  • Hi

    Let me summarizes my understanding:

    1.After repetitive test you are failed to boot from emmc.

    We tried three boards and one didn't get up the first time

    2.In one board you are not able to boot even for the first time.

    Can you confirm my understanding is right or not ?

    We use SD to enter the system, export EMMC boot0 through the following command, and we can find that there is data

    in which sample you are running this test (in the sample where boot always fails or sometimes?

    Regards
    Diwakar

  • Yes, we tried three boards,

    The first and second development boardswhich are repeatedly flashed boot0 partition after switching to emmc to start without any printing,

    The third development board has been switched to EMMC startup without any printing since boot0 was first burned

    but today I tried  the fourth development board, repeated programming boot0 partition  more than 10 times, Toggle EMMC boot mode to have to print all the time

    we suspect hardware reasons, but can not find the direction of analysis,

    because through the SD card into the system, emmc can read and write

  • I have modified k3-j721s2-common proc board.dts to boot the rootfs partition of EMMC through SD and be able to enter the system

  • Hi 

    Still not clear to me on which set of boards you are facing issue.

    Are you not able to read/write to the boot partition in all cases ?

    Can you elaborate more on your issue .

    Regards
    Diwakar

  • We designed some boards, and there were three situations when EMMC started.

    One was to burn tiboot3. bin, tifs. bin, u boot. img for EMMC boot0, and switch to EMMC startup. Repeat this step one or two times to enter the system, but after the third burn, there was no printing on the boot.and the boot voltage did not change.

    The second was that after the first burn, there was no printing on the EMMC startup.and the boot voltage did not change.

    The third is that so far, after the burn, EMMC startup has been normal

  • We would like to know how to solve the first and second cases. 

  • We start in SD card mode, and in the first and second cases, the board can read and write EMMC through the dd command

  • Hi Renf,

    in the first and second case you are not seeing any prints what do you mean by boot voltage did not change is it like you are not seeing any voltage change signal ?

    What is the difference in terms of Hardware between first second and third ?

    Regards
    Diwakar

  • Sorry to be wrong, it should be that the starting current has not changed significantly, maintained at about 0.16A, like there is no SD card in SD card mode; the board in the first and second cases is the same as the hardware of the third board,

  • This afternoon, we replaced the board in the second case with EMMC, which can give EMMC's SPL mode to operate normally, and there is no first case to find, which is very strange, if EMMC is broken, why can I use the dd command to read and write in SD card mode

  • Hi Renf 

    Can you connect a protocol analyser and see if you are seeing any CMND and RSP'S in failure boards?

    Regards
    Diwakar