public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] eMMC boot partition support in uboot
Date: Thu, 5 Dec 2013 14:09:07 -0500	[thread overview]
Message-ID: <20131205190907.GP420@bill-the-cat> (raw)
In-Reply-To: <52A0CA10.1040007@ruggedcom.com>

On Thu, Dec 05, 2013 at 01:46:40PM -0500, Richard Retanubun wrote:

> Hi guys,
> 
> Recap: I am trying to boot MLO + uboot from eMMC boot partition on DRA7xx_EVM eval platform.
> SW-Baseline: uboot p-ti-uboot-2013.04 & p-ti-linux-3.8.y from omapzoom.

Please note that this list is for the mainline U-Boot tree, and to
contact your TI reps for help with the TI trees.  I'm answering in
general since I know how the mainline code works, and what I suspect
needs doing there in general to allow what you want to work:

[snip]
> 3. I realize that the MLO contents (using uboot/tools/omapimage?) needed to say
>    MMCSD_MODE_RAW for my platform. I am bypassing this problem by by hard coding the response
>    arch/arm/cpu/armv7/omap-common/boot-common.c::spl_boot_mode() to always says MMCSD_MODE_RAW.
>    This seems to work and I am past the hang() code.

It's possible that the ROM simply doesn't support a dos-style partition
table and a FAT partition on the eMMC boot partition so the right answer
here is to do what you're doing and hard-code raw only.  I strongly
suspect this to be true, even.

> 4. Now, MLO is ready to (raw) load uboot binary from the eMMC boot partition (i.e. /dev/mmcblk1boot0).
>    Unfortunately, at this point I don't know how to make the platform recognize the eMMC boot partitions.
>    I think they are not modelled yet in uboot. Only the User-Data-Area (UDA)
>    is recognized in uboot (called mmc 1)

Not quite true, no.  You'll need code similar to what we have in
common/env_mmc.c to switch the partition to the boot partition.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20131205/c2487070/attachment.pgp>

  reply	other threads:[~2013-12-05 19:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-05 18:46 [U-Boot] eMMC boot partition support in uboot Richard Retanubun
2013-12-05 19:09 ` Tom Rini [this message]
2013-12-05 20:21   ` Richard Retanubun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131205190907.GP420@bill-the-cat \
    --to=trini@ti.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox