Booting U-boot from SD

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

Booting U-boot from SD

Jump to solution
1,692 Views
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?

Labels (1)
Tags (3)
0 Kudos
1 Solution
671 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
672 Views
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 Kudos