[U-Boot] Formatting bootable SD, freescale platform

Hello,
Does anybody happen to know a reference with _details_ of how to format and mkfs an SD card to be bootable for freescale platform?
Background: I'm using a freescale utility ( https://github.com/kergoth/boot-format), but it fails at runtime, unhappy with my SD MBR. Console output is shown below.
I've run fdisk/mkfs with various tweaks, getting FAT16+ext2 partitions per the references I've found ( http://www.freescalewiki.com/index.php?title=Getting_started_Guide_for_P1010..., http://cache.freescale.com/files/32bit/doc/app_note/AN3659.pdf). But boot_format still bails out.
Thanks in advance, Joe K. ----
sudo ./boot_format config_ddr3_1gb_p1010rdb_800M.dat uboot.bin -sd
/dev/sdb1 ... Read MBR from SDCard:
0x0000: eb 00 90 20 20 20 20 20 20 20 20 00 02 40 01 00 0x0010: 02 00 02 00 00 f8 eb 00 3f 00 40 00 89 00 00 00 0x0020: 77 9f 3a 00 80 00 29 a5 7b f7 7b 00 00 00 00 00 0x0030: 00 00 00 00 00 00 46 41 54 31 36 20 20 20 00 00 0x0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... ================== MBR ================== boot_ind = 0x0 start_head = 0x0 start_cylesec = 0x0 part_type = 0x0 end_head = 0x0 end_cylsec = 0x0 rel_sectors = 0x0 total_sectors = 0x0 ========================================= It is not a valid MBR. ----

Hello,
Does anybody happen to know a reference with _details_ of how to format and mkfs an SD card to be bootable for freescale platform?
Google for p1010rdb SD boot?
M
Background: I'm using a freescale utility ( https://github.com/kergoth/boot-format), but it fails at runtime, unhappy with my SD MBR. Console output is shown below.
I've run fdisk/mkfs with various tweaks, getting FAT16+ext2 partitions per the references I've found ( http://www.freescalewiki.com/index.php?title=Getting_started_Guide_for_P101 0/P1014, http://cache.freescale.com/files/32bit/doc/app_note/AN3659.pdf). But boot_format still bails out.
Thanks in advance, Joe K.
sudo ./boot_format config_ddr3_1gb_p1010rdb_800M.dat uboot.bin -sd
/dev/sdb1 ... Read MBR from SDCard:
0x0000: eb 00 90 20 20 20 20 20 20 20 20 00 02 40 01 00 0x0010: 02 00 02 00 00 f8 eb 00 3f 00 40 00 89 00 00 00 0x0020: 77 9f 3a 00 80 00 29 a5 7b f7 7b 00 00 00 00 00 0x0030: 00 00 00 00 00 00 46 41 54 31 36 20 20 20 00 00 0x0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... ================== MBR ================== boot_ind = 0x0 start_head = 0x0 start_cylesec = 0x0 part_type = 0x0 end_head = 0x0 end_cylsec = 0x0 rel_sectors = 0x0 total_sectors = 0x0 ========================================= It is not a valid MBR.

On Thu, Feb 9, 2012 at 5:06 PM, Joe Kulikauskas joe.kulikauskas@gmail.com wrote:
Hello,
Does anybody happen to know a reference with _details_ of how to format and mkfs an SD card to be bootable for freescale platform?
Background: I'm using a freescale utility ( https://github.com/kergoth/boot-format), but it fails at runtime, unhappy with my SD MBR. Console output is shown below.
I've run fdisk/mkfs with various tweaks, getting FAT16+ext2 partitions per the references I've found ( http://www.freescalewiki.com/index.php?title=Getting_started_Guide_for_P1010..., http://cache.freescale.com/files/32bit/doc/app_note/AN3659.pdf). But boot_format still bails out.
I suspect you are using a recent version but the git repo lives here:
http://git.freescale.com/git/cgit.cgi/ppc/sdk/boot-format.git/
boot_format expects the SD card will be formatted to it's expectation before writing to the SD card. You need to use fdisk and create a normal PC style partition and then format the one partition (not sure if it expects ext2/3 or fat32 for this). Play around with it and let me know.
The other option is to just ouput a spi image from boot_format and use dd to write that image to an sdcard and it should work just the same.
Let me know if you need more details.
-M
participants (3)
-
Joe Kulikauskas
-
Marek Vasut
-
McClintock Matthew-B29882