Writing U-Boot to SD card for imx28evk

208 views
Skip to first unread message

cmcqueen1975

unread,
Sep 4, 2012, 8:51:21 PM9/4/12
to meta-f...@googlegroups.com
I'm building Yocto core-image-minimal for imx28evk, from denzil branch. It's building successfully. I thought I'd like to try using the U-Boot built from Yocto. I tried:

sudo dd if=u-boot-imx28evk.mxsboot-sdcard of=/dev/sdc

When I try booting from it, U-Boot doesn't run. I just get:

0x80502008

Is the u-boot-imx28evk.mxsboot-sdcard file suitable to dd directly to the SD card, or does it have to be written at some offset, perhaps with some other partitions set up?

cmcqueen1975

unread,
Sep 4, 2012, 10:01:51 PM9/4/12
to meta-f...@googlegroups.com

I'll answer my own question: I found U-Boot README.mx28_common which says to create a partition 1, starting at sector 2048, of size 1 MB, with type 0x53. E.g.:

sudo fdisk /dev/sdc
o       # to erase partition table
n       # new partition
p       # primary
1       # partition 1
2048   # start sector 2048
+1M     # 1 MB size
t 1     # change type of partition 1
53      # type 0x53
w       # write the partition table to the SD card

Then dd the file onto that partition.

sudo dd if=u-boot-imx28evk.mxsboot-sdcard of=/dev/sdc1
Reply all
Reply to author
Forward
0 new messages