help:sd boot can enter uboot,but can not read kernel data from sd card!

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

help:sd boot can enter uboot,but can not read kernel data from sd card!

1,912 Views
HaohuaQIN
Contributor III

cpu:mcimx6u5dvm10AB

The sd cardis class 4,and I can boot the uboot use it.

But it can not read any data  in uboot cmd.

The uboot print is below:

U-Boot 2009.08 (May 06 2015 - 14:34:36)

CPU: Freescale i.MX6 family TO1.1 at 792 MHz

Thermal sensor with ratio = 183

Temperature:   53 C, calibration data 0x5845075f

mx6q pll1: 792MHz

mx6q pll2: 528MHz

mx6q pll3: 480MHz

mx6q pll8: 50MHz

ipg clock     : 66000000Hz

ipg per clock : 66000000Hz

uart clock    : 80000000Hz

cspi clock    : 60000000Hz

ahb clock     : 132000000Hz

axi clock   : 198000000Hz

emi_slow clock: 99000000Hz

ddr clock     : 396000000Hz

usdhc1 clock  : 198000000Hz

usdhc2 clock  : 198000000Hz

usdhc3 clock  : 198000000Hz

usdhc4 clock  : 198000000Hz

nfc clock     : 24000000Hz

Board: i.MX6DL/Solo-SABRESD: unknown-board Board: 0x61011 [POR ]

Boot Device: SD

I2C:   ready

DRAM:   1 GB

MMC:   FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3

*** Warning - bad CRC or MMC, using default environment

In:    serial

Out:   serial

Err:   serial

Found PFUZE100! deviceid=10,revid=21

Net:   got MAC address from IIM: 00:00:00:00:00:00

FEC0 [PRIME]

QHH'S I.MX6SOLO TEST:1.02

Hit any key to stop autoboot:  0

MX6SDL SABRESD U-Boot > mmc dev 2

mmc2 is current device

MX6SDL SABRESD U-Boot > mmcinfo

Device: FSL_USDHC

Manufacturer ID: 2

OEM: 544d

Name: SA08G

Tran Speed: 25000000

Rd Block Len: 512

SD version 3.0

Clock: 50000000

High Capacity: Yes

Capacity: 7746879488 Bytes

Bus Width: 4-bit

Boot Partition for boot: No boot partition available

MX6SDL SABRESD U-Boot >  mmc read 0x10800000 0x800 0x2000

MMC read: dev # 2, block # 2048, count 8192 ...

then system hang,not print anything.

But,I install android in the same hardware board,the sd card is ok,The android can play video file and record video file in this sd card.

I don't know why??

Thanks!!

Labels (2)
0 Kudos
4 Replies

892 Views
igorpadykov
NXP Employee
NXP Employee

Hi Haohua

please follow attached Linux Guide sect.4.4.1.1 Downloading an image to MMC/SD

first erase card then write image through tftp.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

892 Views
HaohuaQIN
Contributor III

hi,igorpadykov

Thanks for your reply.

The TF card is write ok by mfgtool,and it can be used in old board(uboot,kernel,rootfs and android are ok all).

In my new board,it can be boot.The uboot is boot ok,but it can not be read and write after enter uboot.

And i use emmc boot,then enter linux or android,the TF card is ok also.

I test some tf cards,class 4 and 10, 4G/8G/32G,all of them is the same question.

So,only in uboot,the tf card can not read and write.

below is uboot print after sd boot:

Board: i.MX6DL/Solo-SABRESD: unknown-board Board: 0x61011 [POR ]

Boot Device: SD

I2C:  ready

DRAM:  1 GB

MMC:  FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3

*** Warning - bad CRC or MMC, using default environment

In:    serial

Out:  serial

Err:  serial

Found PFUZE100! deviceid=10,revid=21

Net:  got MAC address from IIM: 00:00:00:00:00:00

FEC0 [PRIME]

QHH'S I.MX6SOLO TEST:1.02

Hit any key to stop autoboot:  0

MX6SDL SABRESD U-Boot > mmc dev 2

mmc2 is current device

MX6SDL SABRESD U-Boot > mmcinfo

Device: FSL_USDHC

Manufacturer ID: 2

OEM: 544d

Name: SA08G

Tran Speed: 25000000

Rd Block Len: 512

SD version 3.0

Clock: 50000000

High Capacity: Yes

Capacity: 7746879488 Bytes

Bus Width: 4-bit

Boot Partition for boot: No boot partition available

MX6SDL SABRESD U-Boot > mmc read 0x10800000 0x800 0x2000

MMC read: dev # 2, block # 2048, count 8192 ...

stop here, uboot is hang also.

another error is :

MX6SDL SABRESD U-Boot > mmc read 0x10800000 0x800 0x2000

MMC read: dev # 2, block # 2048, count 8192 ... 0 blocks read: ERROR

uboot is not hang.

thanks.

0 Kudos

892 Views
BiyongSUN
NXP Employee
NXP Employee

Hi Haohua,

Could you please try  load address at  0x12000000?  or even higher?

Have you done the ddr caliration and stress test?

i.MX6 DDR Stress Test Tool
https://community.freescale.com/docs/DOC-96412

i.MX6/7 DDR Stress Test Tool V2.XX
https://community.freescale.com/docs/DOC-105652

Also please make sure the IOMUX  settings are correct.

0 Kudos

892 Views
igorpadykov
NXP Employee
NXP Employee

Hi Haohua

I see from log "SD version 3.0", could you try older version like 2GB

SD card version 2? I believe for ver.3.0 cards better to use latest

uboots like Uboot 2014,2015.

Best regards

igor

0 Kudos