public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, 4/4] stm32mp1: select boot device and partition
Date: Sat, 7 Apr 2018 09:25:00 -0400	[thread overview]
Message-ID: <20180407132500.GD10996@bill-the-cat.ec.rr.com> (raw)
In-Reply-To: <1521539694-16598-4-git-send-email-patrick.delaunay@st.com>

On Tue, Mar 20, 2018 at 10:54:54AM +0100, Patrick Delaunay wrote:

> Bootrom loads SPL from SDCARD or eMMC
> according BootPin selection.
> 
> Then SPL loads U-Boot on the same mmc device
> with the following predefined GPT partitioning:
> 
> on SDCARD: gpt partitioning
>   1: SPL
>   2: SPL#2
>   3: U-Boot
>   4: bootable partition
> 
> on eMMC:
>   The 2 boot partitions are used for SPL (2 copy)
>     boot1: SPL
>     boot2: SPL#2
>   The user partition use gpt partitioning
>     1: U-Boot
>     2: bootable partition
> 
> This patch select the correct SPL partition
> (3 for SDCARD on mmc0 and 1 for eMMC on mmc1)
> according the BootRom information saved in TAMP register
> and based on configuration flasg:
> - CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION
>   => for BOOT_DEVICE_MMC1 or mmc 0 in U-Boot
> - CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_MMC2 (new)
>   => for BOOT_DEVICE_MMC2 or mmc 1 in U-Boot
> 
> And the correct boot_targets is selected according the environment
> variables boot_device and boot_instance, with preboot command,
> to search the bootable partition with kernel on this device
> (generic distro support).
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180407/eeef2b2c/attachment.sig>

  reply	other threads:[~2018-04-07 13:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-20  9:54 [U-Boot] [PATCH 1/4] spl: spl_mmc: provide one weak function spl_boot_partition Patrick Delaunay
2018-03-20  9:54 ` [U-Boot] [PATCH 2/4] stm32mp1: add eMMC support for ED1 Patrick Delaunay
2018-04-07 13:24   ` [U-Boot] [U-Boot,2/4] " Tom Rini
2018-03-20  9:54 ` [U-Boot] [PATCH 3/4] stm32mp1: get boot mode from BootRom Patrick Delaunay
2018-04-07 13:24   ` [U-Boot] [U-Boot,3/4] " Tom Rini
2018-03-20  9:54 ` [U-Boot] [PATCH 4/4] stm32mp1: select boot device and partition Patrick Delaunay
2018-04-07 13:25   ` Tom Rini [this message]
2018-03-20 13:24 ` [U-Boot] [PATCH 1/4] spl: spl_mmc: provide one weak function spl_boot_partition Tom Rini
2018-03-20 14:10 ` Lukasz Majewski
2018-04-07 13:24 ` [U-Boot] [U-Boot, " Tom Rini

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=20180407132500.GD10996@bill-the-cat.ec.rr.com \
    --to=trini@konsulko.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