u-boot/common/spl
Fabio Estevam 1b8a1be1a1 spl: spl_legacy: Fix spl_end address
Currently, spl_end points to the __bss_end address, which
is an external RAM address instead of the end of the SPL text
section in the internal RAM.

This causes boot failures on imx6-colibri, for example:

```
Trying to boot from MMC1
SPL: Image overlaps SPL
resetting ...
```
Fix this problem by assigning spl_end to _image_binary_end, as this
symbol properly represents the end of the SPL text section.

From u-boot-spl.map:

.end
 *(.__end)
                0x00000000009121a4                _image_binary_end = .

Fixes: 77aed22b48 ("spl: spl_legacy: Add extra address checks")
Reported-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Fabio Estevam <festevam@denx.de>
Tested-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Tested-by: Marek Vasut <marex@denx.de> # DH i.MX6Q DHCOM PDK2
2023-07-03 10:20:13 -04:00
..
Kconfig spl: mmc: Allow to disable SYS_MMCSD_FS_BOOT_PARTITION 2023-03-01 06:39:17 +01:00
Kconfig.nxp global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
Kconfig.tpl arm: rockchip: Add RV1126 arch core support 2023-01-16 18:01:11 +08:00
Kconfig.vpl vbe: Add Kconfig options for VPL 2022-10-31 11:03:59 -04:00
Makefile spl: Rename Kconfig SPL_LEGACY_IMAGE_SUPPORT to SPL_LEGACY_IMAGE_FORMAT 2022-05-11 09:22:24 -04:00
spl.c common: spl: spl: Remove video driver before u-boot proper 2023-05-08 09:26:12 -04:00
spl_atf.c Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04: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 spl: ext: Use partition size for mount 2023-06-14 12:56:10 -04:00
spl_fat.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_fit.c imx: hab: Simplify the mechanism 2023-06-24 13:47:02 -04:00
spl_legacy.c spl: spl_legacy: Fix spl_end address 2023-07-03 10:20:13 -04:00
spl_mmc.c mmc: Use EXT_CSD_EXTRACT_BOOT_PART() macro for extracting boot part 2023-04-10 12:18:17 +09:00
spl_nand.c global: Move remaining CONFIG_SYS_NAND_* to CFG_SYS_NAND_* 2022-12-05 16:05:38 -05:00
spl_net.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_nor.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
spl_onenand.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_opensbi.c spl: opensbi: convert scratch options to config 2022-08-11 18:46:41 +08:00
spl_optee.S Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
spl_ram.c common: spl: ram: fix return code 2023-01-12 11:25:46 -05:00
spl_sata.c spl: sata: Rework the loading case it not use IS_ENABLED(...) 2023-01-20 12:27:06 -05:00
spl_sdp.c spl: sdp: Pass the USB index to board_usb_init() 2022-07-14 16:13:11 +02:00
spl_semihosting.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_spi.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
spl_ubi.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
spl_usb.c blk: Rename if_type to uclass_id 2022-09-25 08:30:05 -06:00
spl_xip.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
spl_ymodem.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00