Booting U-boot from SD

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Booting U-boot from SD

跳至解决方案
1,646 次查看
pavankumarg
Contributor II

I have the prebuilt u-boot-sd-P1024RDB_SDCARD-git-r17.bin and tried copying it onto the SD card for booting it. I did the following: I created 3 partitions - 1 partition of 512MB in linux-swap format, 1 partition of 20MB in ext2 format and the remaining space of my 4GB SD card as ext3 format.

I also did the following:

Ran mkswap on /dev/mmcblk0p1

Ran mkfs.ext2fs on /dev/mmcblk0p2

Ran mkfs.ext3fs on /dev/mmcblk0p3

After which I copied the prebuilt u-boot binary on the ext2 format.

I also set the switch settings as given in the quick start guide for booting from SD/MMC.

Could you tell me where I am going wrong? Or should I do something in addition to this?

标签 (1)
标记 (3)
0 项奖励
1 解答
625 次查看
Pavel
NXP Employee
NXP Employee

Use the following command sequence for u-boot burning:

Under u-boot:

=>tftp 1000000 u-boot-sd-P1024RDB_SDCARD-git-r17.bin

=>mmc erase 8 0x800

=>mmc write 1000000 8 0x800

=>cpld reset sd

 

Program the image to SD card in Linux.

dd if= u-boot-sd-P1024RDB_SDCARD-git-r17.bin of=/dev/sdb bs=512 seek=8


Have a great day,
Pavel Chubakov

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

在原帖中查看解决方案

0 项奖励
1 回复
626 次查看
Pavel
NXP Employee
NXP Employee

Use the following command sequence for u-boot burning:

Under u-boot:

=>tftp 1000000 u-boot-sd-P1024RDB_SDCARD-git-r17.bin

=>mmc erase 8 0x800

=>mmc write 1000000 8 0x800

=>cpld reset sd

 

Program the image to SD card in Linux.

dd if= u-boot-sd-P1024RDB_SDCARD-git-r17.bin of=/dev/sdb bs=512 seek=8


Have a great day,
Pavel Chubakov

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

0 项奖励