mmc initialization error with SD Card on LS1046ARDB based board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mmc initialization error with SD Card on LS1046ARDB based board

Jump to solution
2,315 Views
Ghouse
Contributor V

Hi All,

Iam using a custom board based on LS1046ARDB, we have copied the schematics of LS1046ARDB for SD Card Section,

I have copied the firmware image in to the QSPI, and i have set the mmc storage as sd card.

In uboot the SD card is detecting perfectly, following are the u-boot status

=> mmcinfo
Device: FSL_SDHC
Manufacturer ID: 3
OEM: 5344
Name: SC16G
Bus Speed: 50000000
Mode: SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.8 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes

However, when i boot further the OS boots, but the SD card is not getting detected, when i do dmesg for mmc below message is displayed (Complete boot log to Tiny Linux for 16GB SD Card is attached)

root@TinyLinux:~# dmesg | grep mmc
[ 3.443041] mmc0: SDHCI controller on 1560000.esdhc [1560000.esdhc] using ADMA 64-bit
[ 3.533641] mmc0: error -110 whilst initialising SD card

Also please note that in the same SD card , if iam installing Bootpartition and rootfs files and then booting, then the OS boots perfectly and SD card is also detected (attached is the log of the linux OS for the same SD card).

From above it is clear that the there is no problem in the SD Card nor the hardware, i feel there is some configurations in the firmware image which iam missing, please let me know what can be done to remove this initialising SD card error, in Tiny Linux.

Please provide your help/support

Thank u.

0 Kudos
Reply
1 Solution
2,190 Views
yipingwang
NXP TechSupport
NXP TechSupport

I checked your previous logs, you are using different Kernel image in these two files.

[ 0.000000] Linux version 5.10.35-dirty (ghouse@ghouse-pc) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.03

Linux version 5.10.35 (ghouse@ghouse-pc) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU 2

Please use Kernel images and dts files provided in log_16gbsd_linux.log to generate itb file.

View solution in original post

0 Kudos
Reply
6 Replies
2,275 Views
Ghouse
Contributor V

Hi All,

Awaiting for your help/support,

Please provide your help.

Thank u

0 Kudos
Reply
2,249 Views
yipingwang
NXP TechSupport
NXP TechSupport

Do you use LSDK 21.08 pre-build image downloaded from the following link?

wget https://www.nxp.com/lgfiles/sdk/lsdk2108/lsdk2108_yocto_tiny_LS_arm64.itb

I verified this image on LS1046ARDB, there is no problem, please refer to the attachment.

Please try LSDK 21.08 u-boot(ATF) image and check whether this problem persists.

0 Kudos
Reply
2,243 Views
Ghouse
Contributor V

Hi @yipingwang ,

thank u for the reply,

I have used the itb from the link provided and build the firmware image freshly(refer below commands), but the issue still persists (refer attached boot log), please let me know what can be done.

MACHINE: ls1046ardb
BOOTTYPE: sd
Writing 0x00000000 <---> firmware/atf/ls1046ardb/bl2_sd.pbl
Writing 0x00100000 <---> firmware/atf/ls1046ardb/fip_uboot.bin
Writing 0x00900000 <---> firmware/fm_ucode/fsl_fman_ucode_ls1046_r1.0_106_4_18.bin
Writing 0x00940000 <---> firmware/qe_ucode/iram_Type_A_LS1021a_r1.0.bin
Writing 0x00980000 <---> firmware/phy_cortina/cs4315-cs4340-PHY-ucode.txt
Writing 0x009C0000 <---> images/flash_images.scr
Writing 0x00F00000 <---> linux/kernel/arm64/LS/fsl-ls1046a-rdb-sdk.dtb
Writing 0x01000000 <---> images/lsdk2108_yocto_tiny_LS_arm64.itb
/home/ghouse/flexbuild_lsdk2108/build/images/firmware_ls1046ardb_sdboot.img [Done]

Thank u.

0 Kudos
Reply
2,195 Views
Ghouse
Contributor V

Hi @yipingwang,

Any update on this? please provide your help/support.

Thank u

0 Kudos
Reply
2,191 Views
yipingwang
NXP TechSupport
NXP TechSupport

I checked your previous logs, you are using different Kernel image in these two files.

[ 0.000000] Linux version 5.10.35-dirty (ghouse@ghouse-pc) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.03

Linux version 5.10.35 (ghouse@ghouse-pc) (aarch64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU 2

Please use Kernel images and dts files provided in log_16gbsd_linux.log to generate itb file.

0 Kudos
Reply
2,143 Views
Ghouse
Contributor V

Hi @yipingwang 

Thank you for the reply,

I deleted the existing itd file and recompiled the Firmware Image, now iam able to detect the SD card in Tiny linux also.

Thank u very much for the support extended by you.

 

Thank u.

0 Kudos
Reply