1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-10 02:26:20 +01:00
Files
u-boot-megous/include
Sam Protsenko a0b0ff0ae6 arm: dra7xx: Fix Linux boot from eMMC
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)
Reviewed-by: Tom Rini <trini@konsulko.com>

=======================================================================

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@linaro.org>
2017-09-29 14:07:58 -04:00
..
2017-07-03 17:35:28 -04:00
2016-04-01 17:18:12 -04:00
2016-12-03 13:21:21 -05:00
2017-02-07 10:54:32 -06:00
2017-02-08 15:56:28 -05:00
2016-03-24 09:47:43 +01:00
2017-06-05 11:02:29 -04:00
2016-05-25 17:52:39 +02:00
2016-05-25 17:52:39 +02:00
2017-09-16 14:57:44 +08:00
2016-01-20 19:06:23 -07:00
2017-09-12 17:57:59 -04:00
2017-09-15 05:27:47 -06:00
2016-10-19 09:01:51 +02:00
2017-08-16 08:22:18 -04:00
2017-05-11 22:21:27 -04:00
2017-07-28 23:34:39 +02:00
2017-04-13 09:41:10 -04:00
2016-02-23 16:14:45 +05:30
2017-08-17 16:59:55 +09:00
2017-05-15 20:32:12 +02:00
2016-11-14 23:24:03 +01:00
2016-05-03 17:52:11 -05:00
2016-01-28 12:22:19 -06:00
2017-08-16 08:30:24 -04:00
2017-06-02 10:16:46 -06:00
2016-01-27 15:55:54 +01:00
2017-09-15 09:03:11 -04:00
2016-12-08 10:36:22 -06:00
2017-09-03 15:30:35 -04:00
2017-07-23 09:24:47 -04:00
2017-06-12 08:37:55 -04:00
2017-04-14 19:38:57 -06:00
2016-06-19 17:05:55 -06:00
2016-03-08 15:01:47 -05:00
2016-08-12 11:01:22 -06:00
2016-01-20 10:19:40 -05:00
2015-11-12 08:26:58 +08:00
2017-07-11 22:41:54 -04:00
2017-07-28 12:02:47 -06:00
2016-01-21 20:42:36 -07:00
2017-09-15 09:03:11 -04:00
2016-02-05 12:47:21 +08:00
2017-06-12 08:37:55 -04:00
2016-03-15 15:19:23 -04:00
2017-07-03 17:35:28 -04:00
2016-01-21 20:42:34 -07:00
2017-07-28 23:34:07 +02:00
2017-04-10 10:02:03 +08:00
2017-08-17 16:59:55 +09:00
2017-08-23 10:41:58 +02:00
2017-08-16 08:22:18 -04:00
2016-08-17 10:25:35 +09:00
2017-06-01 07:03:16 -06:00
2016-05-26 20:48:31 -06:00
2016-02-26 08:53:10 -07:00
2016-09-26 13:24:43 -04:00
2017-04-12 13:28:27 -04:00
2016-05-02 18:37:09 -04:00
2017-08-24 11:00:47 +08:00
2016-10-23 18:33:48 -04:00