All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Formatting bootable SD, freescale platform
@ 2012-02-09 23:06 Joe Kulikauskas
  2012-02-10  7:39 ` Marek Vasut
  2012-02-10 16:58 ` McClintock Matthew-B29882
  0 siblings, 2 replies; 3+ messages in thread
From: Joe Kulikauskas @ 2012-02-09 23:06 UTC (permalink / raw)
  To: u-boot

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/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.
----

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Formatting bootable SD, freescale platform
  2012-02-09 23:06 [U-Boot] Formatting bootable SD, freescale platform Joe Kulikauskas
@ 2012-02-10  7:39 ` Marek Vasut
  2012-02-10 16:58 ` McClintock Matthew-B29882
  1 sibling, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2012-02-10  7:39 UTC (permalink / raw)
  To: u-boot

> 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.
> ----

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Formatting bootable SD, freescale platform
  2012-02-09 23:06 [U-Boot] Formatting bootable SD, freescale platform Joe Kulikauskas
  2012-02-10  7:39 ` Marek Vasut
@ 2012-02-10 16:58 ` McClintock Matthew-B29882
  1 sibling, 0 replies; 3+ messages in thread
From: McClintock Matthew-B29882 @ 2012-02-10 16:58 UTC (permalink / raw)
  To: u-boot

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/P1014,
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-10 16:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-09 23:06 [U-Boot] Formatting bootable SD, freescale platform Joe Kulikauskas
2012-02-10  7:39 ` Marek Vasut
2012-02-10 16:58 ` McClintock Matthew-B29882

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.