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.

DRA722: Uboot start failed

Part Number: DRA722
Other Parts Discussed in Thread: CSD

hi:

The SDK version I use is PROCESSOR-SDK-LINUX-AUTOMOTIVE  6_00_00_03.

Sometimes uboot will stop at the following position, but it will not stop here every time, sometimes it can start normally.

U-Boot SPL 2019.01 (May 12 2020 - 17:03:18 +0800)
DRA722-GP ES2.1
Trying to boot from MMC2_2
no pinctrl state for default mode
spl: mmc init failed with error: -22
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

I locate the error code in the following file:uboot\drivers\mmc\mmc.c 

In the following functions:mmc_startup_v4()

The following code in this function returns an error:

if(ext_csd[EXT_CSD_REV] >= ARRAY_SIZE(mmc_versions))

return -EINVAL;

What is the meaning of this code and why there are errors here?