Different SD card stuck in Uboot on I.MX8M Mini

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

Different SD card stuck in Uboot on I.MX8M Mini

717 Views
kailas_kharse
Contributor IV

Hello,

I am using i.MX8M Mini SoC, I am using SanDisk SD card for booting the device,
I have 2 different SD cards
   1. 16GB (SDHC class 10) and
   2. 32GB (SDHC class 10)

I am able to boot the kernel successfully when using the 16GB SD card, but I am getting stuck in U-boot for 32GB SD card.

When I use the "mmc dev 2" command in U-boot using 32 GB SD Card. Device boots into kernel successfully, on multiple reboots also it works fine, but when I reflash the same SD card (32GB) then it stuck at u-boot with the following error:

Spoiler

In: serial
Out: serial
Err: serial

BuildInfo:
- ATF 7b3389d
- U-Boot 2019.04-lf-5.4.y_v2019.04_var01+g74c22e7054

Part number: VSM-DT8MM-220
Assembly: AS2007153586
Production date: 2020 Sep 22
Serial Number: f8:dc:7a:4d:36:0a
flash target is MMC:1
MMC card init failed!
** Block device MMC 1 not supported
Net: No ethernet found.
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
u-boot=>
u-boot=>
u-boot=>
u-boot=>
u-boot=>
u-boot=> boot
MMC Device 0 not found
no mmc device at slot 0
Bad Linux ARM64 Image magic!
u-boot=> <INTERRUPT>
u-boot=> i2c bus 0 at 815923200, fail to request scl/sda gpio
i2c bus 0 at 815923200, fail to request scl/sda gpio
512 MiB
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... *** Warning - No block device, using default environment

 

How to resolve this issue? without halting in u-boot device shall boot succesfuly.
What is the difference when the size of SD card changes, even if we use the same binary?


Thanks & Regards,
Kailas Kharse




Tags (2)
0 Kudos
1 Reply

707 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kailas

 

one can try approaches described in similar case on

https://community.nxp.com/t5/i-MX-Processors/eMMC-8GB-to-4GB-crash-on-linux-yocto-boot/m-p/373231

 

Best regards
igor

0 Kudos