How to make MX6Q boot from SD card directly instead of SPI Nor Flash + SD card?

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

How to make MX6Q boot from SD card directly instead of SPI Nor Flash + SD card?

Jump to solution
3,326 Views
Oceanblue
Contributor III

All, I'm working with MX6Q for one project, now what I encountered is MX6Q can't boot from SD card directly, does anyone has success experience and share with us? thx

Labels (1)
0 Kudos
Reply
1 Solution
1,875 Views
DirkBehme
Contributor III

If you configure the hardware boot mode pins / fuses correctly, you should be able to boot directly from SD card.

View solution in original post

0 Kudos
Reply
8 Replies
1,875 Views
chingling_wang
NXP Employee
NXP Employee

We met this issue too when I tried to boot directly from sd card.  What we did is change is chaning all mmcblk0 into mmcblk1 in device/fsl/imx/sabresd/init.rd, and change u-boot  bootcmd into 'booti mmc2' instead of 'booti mmc3'

0 Kudos
Reply
1,875 Views
RobinGong
NXP Employee
NXP Employee

Good job! One thing you should know is that the boot param in u-boot is only for FSL reference board . If board hardware design change , of course, you should modify the boot param in u-boot. Firstly, you should choose the wright boot mode pins to boot from the device what you want. Secondly, you should make sure what boot param is the right one. You can type "mmc dev x" and "mmcinfo" in u-boot to get more information ,then use "mmc read" from the SD device and use "md" to look the content in the SD device whether is the right one which contain the kernel image. Now you can know which device you should choose. At last, you should modify the boot param in u-boot to make kernel can mount the right rootfs on mmcblk*.

0 Kudos
Reply
1,875 Views
Oceanblue
Contributor III

About above message, when I insert SD card into SD card socket, system will indicate it hasn't found SD card in the corresponding socket, I wonder maybe somewhere I make the logic by mistake, does anyone have the experience and share with me please? thx 

0 Kudos
Reply
1,875 Views
Oceanblue
Contributor III

Thanks for Eric and Drik comment.

Now the system can read card information, and run Uboot on SD card, but it seem system can't recognize SD card, so that I can't configure system ENV, detail as below:

U-Boot 2009.08 ( 8鏈?16 2012 - 16:13:12)
CPU: Freescale i.MX6 family TO1.0 at 792 MHz
Temperature:   can't get valid data!
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   : -1Hz
emi_slow clock: 29333333Hz
ddr clock     : 528000000Hz
usdhc1 clock  : 198000000Hz
usdhc2 clock  : 198000000Hz
usdhc3 clock  : 198000000Hz
usdhc4 clock  : 198000000Hz
nfc clock     : 24000000Hz
Board: MX6Q/SDL-ARM2:[ POR ]
Boot Device: SD
I2C:   ready
DRAM:   1 GB
MMC:   FSL_USDHC: 0,FSL_USDHC: 1
MMC Device 3 not found
No MMC card found
In:    serial
Out:   serial
Err:   serial
Net:   got MAC address from IIM: 00:00:00:00:00:00
FEC0
MX6Q ARM2 U-Boot > mmc dev 1
mmc1 is current device
MX6Q ARM2 U-Boot > mmcinfo
Device: FSL_USDHC
Manufacturer ID: 3
OEM: 5344
Name: SU04G
Tran Speed: 25000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 3965190144 Bytes
Bus Width: 4-bit
Boot Partition for boot: No boot partition available
MX6Q ARM2 U-Boot >


      Could anyone help indicate where happened wrong with it? thanks

0 Kudos
Reply
1,875 Views
EricNelson
Senior Contributor II

Thomas and Dirk are right (of course).

There are some other notes in this blog post about running Linaro on Sabre Lite and Nitrogen6X.

0 Kudos
Reply
1,875 Views
DirkBehme
Contributor III

To my understanding, on a SabreLite the fuses can't be blown any more because they are already blown to boot from SPI NOR. Therefore the workaround in the above link.

0 Kudos
Reply
1,875 Views
ThomasG1z
Contributor III

I guess you're on a Boundary Devices Sabrelite board? In that case take a look here:

https://wiki.linaro.org/Boards/MX6QSabreLite

Not sure if fuses can be permanently blown on this device? Haven't come to those details yet...

0 Kudos
Reply
1,876 Views
DirkBehme
Contributor III

If you configure the hardware boot mode pins / fuses correctly, you should be able to boot directly from SD card.

0 Kudos
Reply