Hi,
I have a 'SABRE for Automotive Infotainment
Based on the i.MX 6 Series' evaluation board.
My onboard CPU is IMX6U which is i.MX 6DualLite processor.
I have succeeded in booting up this board from SD card.
I used 'LTIB' tool to build the source code on a Ubuntu 12.04 laptop.
A few questions:
1. Is there any way from U-boot to read the SD card? If yes, what is the command and SD card address?
2. I would like to boot up from onboard NOR or NAND flash. In other words, u-boot, kernel and file system needs to be stored over there too. Can I do that? If yes, any help file on this other than jumper setting?
3. I wanted to flash a customized u-boot to SD card. I looked at the community and got the following information:
boot on SD card starts at 1k location, so I can use the following command to do that:
sudo dd if=./u-boot/u-boot.imx of=${DISK} bs=512
seek=2
I don't have a 'u-boot.imx' after 'LTIB' build. Instead, I only got the binary one, u-boot.bin. Are they the same?
Thanks,
Steven
1.
Please use U-boot help command to know what options are supported
by current implementation.
As an example, from my SDP :
MX6Q SABRESD U-Boot > help mmc
mmc - MMC sub system
Usage:
mmc read addr blk# cnt
mmc write addr blk# cnt
mmc erase blk# cnt
mmc rescan
mmc part - lists available partition on current mmc device
mmc dev [dev] [part] - show or set current mmc device [partition]
mmc bootpart [dev] [part] - show or set boot partition
mmc list - lists available devices
MX6Q SABRESD U-Boot > help mmcinfo
mmcinfo - display MMC info
Usage:
mmcinfo - device number of the device to dislay info of
MX6Q SABRESD U-Boot >
2.
Please look at Linux documentation, in particular – use Linux User’s Guide:
“i.MX_6Dual6Quad_Sabre-AI_Linux_User's_Guide.pdf”
https://www.freescale.com/webapp/Download?colCode=L3.0.35_4.0.0_LINUX_DOCS&location=null
Summary Page :
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6D&fpsp=1&tab=Design_Tools_Tab
3.
According to Chapter 8 (Using a Linux Host to Set Up an SD/MMC Card) of the User’s Guide :
$ sudo dd if=u-boot-mx6q-sabreauto.bin of=/dev/sdb bs=512 seek=2 skip=2 conv=fsync
Hi,
Thanks for the reply.
For question 1, I looked at my board and the SD card is MMC 2. I ran the following commands:
************************************************************
MX6SOLO SABREAUTO U-Boot > mmc dev 2
mmc2 is current device
MX6SOLO SABREAUTO U-Boot > mmc read 10800000 0 100
MMC read: dev # 2, block # 0, count 256 ... 256 blocks read: OK
MX6SOLO SABREAUTO U-Boot >
***********************************************************
How can I display the readback data? Command 'mmc' did not show me the real data.
Thanks,
Steven
Please use U-boot command md (memory display) to show data at specified address (0x10800000 in the case)