[U-Boot] [PATCH 2/4] arm: dra7xx: Fix Linux boot from eMMC

Tom Rini trini at konsulko.com
Sun Sep 24 14:40:37 UTC 2017


On Thu, Sep 21, 2017 at 10:37:57PM +0300, Sam Protsenko wrote:

> Right now on OMAP5-based boards we have only one partition defined for
> Linux boot, which is rootfs. That doesn't work with bootpart=1:2 (that
> is defined in include/environment/ti/boot.h). To fix Linux boot we may
> either:
> 
>  1. Change bootpart to be 1:1
>  2. Or add preceding partition, so that rootfs is actually 1:2
> 
> Second choice seems more reasonable, as DFU is already using similar
> partition table and can rely on bootpart to be 1:2.
> 
> This patch adds "bootloader" partition. So now eMMC layout for Linux
> boot looks like this:
> 
> offset               content                 size          partition
> (KiB)                                        (KiB)
> =======================================================================
> 
> 0       +--------------------------------+
>         | MBR/GPT header                 |   128           -
> 128     +--------------------------------+
>         | MLO                            |   256           -
> 384     +--------------------------------+
>         | u-boot.img                     |   1792          bootloader
> 2176    +--------------------------------+
>         | //////////// hole //////////// |   256           -
> 2432    +--------------------------------+
>         | U-Boot environment             |   128           -
> 2560    +--------------------------------+
>         | U-Boot environment (redundant) |   128           -
> 2688    +--------------------------------+
>         | rootfs                         |   remaining     rootfs
> end     +--------------------------------+
> 
> =======================================================================
> 
> Guard hole appears because U-Boot environment offset was calculated for
> Android partition table, which has two additional partitions in place of
> that hole ("environment" and "misc" partitions).
> 
> This patch also changes rootfs offset from 2 MiB further to 2688 KiB,
> so that there won't be any collisions with U-Boot environment when we
> flash rootfs.
> 
> Signed-off-by: Sam Protsenko <semen.protsenko at linaro.org>

Reviewed-by: Tom Rini <trini at konsulko.com>

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


More information about the U-Boot mailing list