u-boot-brain/common/spl
Peng Fan a335f80502 spl: spl_mmc: fix getting raw_sect when boot from emmc boot partition
On i.MX8, when booting from eMMC boot partition, the whole flash.bin
is stored in boot partition, however SPL switches to user partition
during the init of mmc driver:
  spl_mmc_load() -> mmc_init()

Then it tries to load the container image in
spl_mmc_get_uboot_raw_sector(), but here it reads the data from user
partition and the header is not recognized as a valid header.

So we move spl_mmc_get_uboot_raw_sector after eMMC partition switch
to address this issue.

Anyway put spl_mmc_get_uboot_raw_sector before eMMC partition switch
is not correct, so let's move it after eMMC partition switch.

Reported-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2019-10-29 10:09:44 +08:00
..
Kconfig spl: mmc: make eMMC HW boot partition configuration optional 2019-10-18 16:37:13 -04:00
Makefile spl: support booting via RISC-V OpenSBI 2019-08-26 16:07:42 +08:00
spl_atf.c spl: atf: Fix uninitialized pointer to bl31_image_info 2019-07-02 10:30:02 +08:00
spl_bootrom.c spl: pass args to board_return_to_bootrom 2019-10-08 16:35:16 +02:00
spl_dfu.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
spl_ext.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
spl_fat.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
spl_fit.c imx: replace CONFIG_SECURE_BOOT with CONFIG_IMX_HAB 2019-10-08 16:36:37 +02:00
spl_mmc.c spl: spl_mmc: fix getting raw_sect when boot from emmc boot partition 2019-10-29 10:09:44 +08:00
spl_nand.c spl: nand: support loading i.MX container format file 2019-10-08 16:36:36 +02:00
spl_net.c env: Move env_init() to env.h 2019-08-11 16:43:41 -04:00
spl_nor.c spl: nor: support loading i.MX container format file 2019-10-08 16:36:36 +02:00
spl_onenand.c spl: Weed out CONFIG_SYS_TEXT_BASE usage 2018-09-25 21:48:43 -04:00
spl_opensbi.c spl: support booting via RISC-V OpenSBI 2019-08-26 16:07:42 +08:00
spl_optee.S Rockchip-focused changes for v2018.11-rc2: 2018-10-05 13:40:42 -04:00
spl_ram.c spl: Kconfig: Drop the _SUPPORT postfix from SPL_DFU 2019-01-26 08:13:54 -05:00
spl_sata.c spl: sata: support U-Boot load from raw sata disk 2019-07-24 14:15:36 -04:00
spl_sdp.c Fixes for 2019.07 2019-06-28 08:00:22 -04:00
spl_spi.c spl: spi: support loading i.MX container format file 2019-10-08 16:36:36 +02:00
spl_ubi.c ubispl: add support for loading volumes by name 2019-07-09 07:00:25 +02:00
spl_usb.c usb: Rename SPL_USB_SUPPORT to SPL_USB_STORAGE 2019-02-15 22:01:15 +01:00
spl_xip.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spl_ymodem.c spl: ymodem: Make SPL Y-Modem loader framework accessible 2019-10-11 10:07:33 -04:00
spl.c spl: add a generic function board_init_f 2019-10-11 10:09:17 -04:00