All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergey Kubushyn <ksi@koi8.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] accessing eMMC boot partitions from U-Boot
Date: Mon, 13 Mar 2017 23:19:31 -0700 (PDT)	[thread overview]
Message-ID: <alpine.LFD.2.20.1703132318240.24787@maverick.koi8.net> (raw)
In-Reply-To: <5e20b97e-5422-e117-97e7-7262bf55314f@wwwdotorg.org>

On Mon, 13 Mar 2017, Stephen Warren wrote:

> On 03/13/2017 07:08 PM, Sergey Kubushyn wrote:
>>  On Mon, 13 Mar 2017, Stephen Warren wrote:
>> 
>> >  On 03/13/2017 03:34 PM, Tim Harvey wrote:
>> > >   Greetings,
>> > > 
>> > >   I'm working with some boards with eMMC FLASH and understand that I 
>> > >   can
>> > >   set the fields of the PARTITION_CONFIG with the 'mmc partconf' 
>> > >   command
>> > >   to specify what partition is used for boot. Once I do that to set the
>> > >   boot0 partition for example, how can I access that  partition from
>> > >   within u-boot via mmc read/write? In Linux the kernel provides access
>> > >   to user/boot0/boot1/rpmb via different devices, but I don't see 
>> > >   u-boot
>> > >   doing that.
>> > 
>> >  The "mmc dev" command can be used to select which MMC device to
>> >  operate on. The "typical" command "mmc dev 0" selects the main
>> >  partition on MMC device 0 for later MMC-specific commands such as "mmc
>> >  read". You can add an extra parameter to that command to request a
>> >  specific HW partition, e.g. "mmc dev 0 1" selects boo0 of MMC device 0
>> >  and "mmc dev 0 2" selects boot1.
>> > 
>> >  A similar naming scheme exists for commands that take a complete
>> >  device specification each time. For example, "part list mmc 0" to list
>> >  partitions in the main partition on MMC device 0, or "part list mmc
>> >  0.1" to list partitions on boot0 of MMC device 0.
>>
>>  Unfortunately this has absolutely nothing to do with eMMC _BOOT_
>>  partitions...
>
> That's incorrect. See my other reply for details.
>
>>  There 2 of those on eMMC and they are _NOT_ accessible in
>>  this fashion. Neither they bear any FS on them.
>
> The boot HW partitions are block storage just like any other. SW can place 
> whatever data structures it wants into these HW partitions; the 
> interpretation of any data stored here is up to the SW or HW that reads and 
> interprets it, e.g. a SoC boot ROM. While many systems will place raw data 
> here, others certainly do place SW partition tables, and perhaps even 
> filesystems, in the HW partitions.

That would've meant something has changed since last year. Will check
tomorrow when I'm back at my desk.

---
******************************************************************
*  KSI at home    KOI8 Net  < >  The impossible we do immediately.  *
*  Las Vegas   NV, USA   < >  Miracles require 24-hour notice.   *
******************************************************************

  parent reply	other threads:[~2017-03-14  6:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-13 21:34 [U-Boot] accessing eMMC boot partitions from U-Boot Tim Harvey
2017-03-13 21:40 ` Fabio Estevam
2017-03-13 21:49 ` Stephen Warren
2017-03-14  0:54   ` Ziyuan
2017-03-14  4:41     ` Stephen Warren
2017-03-14 10:14       ` Ziyuan
2017-03-14  1:08   ` Sergey Kubushyn
2017-03-14  4:44     ` Stephen Warren
2017-03-14  5:11       ` Jaehoon Chung
2017-03-14  6:19       ` Sergey Kubushyn [this message]
2017-03-14 13:07     ` Tim Harvey
2017-03-14 15:44       ` Stephen Warren
2017-03-14 12:55   ` Tim Harvey

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=alpine.LFD.2.20.1703132318240.24787@maverick.koi8.net \
    --to=ksi@koi8.net \
    --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 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.