diff options
author | Semen Protsenko <semen.protsenko@linaro.org> | 2016-04-20 09:05:59 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-04-25 19:10:29 (GMT) |
commit | ef5ebe951bec72631cdbc7cef9079e6c684e5d0b (patch) | |
tree | 9c2e02ad9a40a7b9ead501ce227d93eb62e7aad5 /common/bootm.c | |
parent | 89cb2b5f8be4f6d04bd87220aa8f72eb0850edc4 (diff) | |
download | u-boot-ef5ebe951bec72631cdbc7cef9079e6c684e5d0b.tar.xz |
ti_armv7_common.h: Fix U-Boot location on eMMC
According to common eMMC partition table for Android boot (see
PARTS_DEFAULT definition in include/configs/dra7xx_evm.h), "bootloader"
partition (where u-boot.img is stored) starts at 256 KiB. Which is equal
to 512 sectors (as 1 MMC sector size is 512 bytes).
This patch fixes CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR constant so that
it points to correct address of "bootloader" partition and SPL is able to
read, parse and run u-boot.img correctly.
This change was originally done as part of patch [1] in omapzoom u-boot.
Without this patch, SPL fails to parse U-Boot header with next error:
mkimage signature not found - ih_magic = 4814325a
While at it, also fix U-Boot partition size, which is 384 KiB (as stated in
include/configs/dra7xx_evm.h).
[1] http://omapzoom.org/?p=repo/u-boot.git;a=commit;h=742b82d0c0aa0ed8096c2225a00e9f350212efa9
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/bootm.c')
0 files changed, 0 insertions, 0 deletions