u-boot/arch
Sean Anderson 8e1c9fe243 spl: Add semihosting boot method
This adds a boot method for loading the next stage from the host. It is
mostly modeled off of spl_load_image_ext. I am not really sure why/how
spl_load_image_fat uses three different methods to load the image, but
the simple case seems to work OK for now.

To control the presence of this boot method, we add a config symbol.
While we're at it, we update the original semihosting config symbol.

I think semihosting has some advantages of other forms of JTAG boot.
Common other ways to boot from JTAG include:

- Implementing DDR initialization through JTAG (typically with dozens of
  lines of TCL) and then loading U-Boot. The DDR initialization
  typically uses hard-coded register writes, and is not easily adapted
  to different boards. BOOT_DEVICE_SMH allows booting with SPL,
  leveraging U-Boot's existing DDR initialization code. This is the
  method used by NXP's CodeWarrior IDE on Layerscape processors (see
  AN12270).
- Loading a bootloader into SDRAM, waiting for it to initialize DDR, and
  then loading U-Boot. This is tricky, because the debugger must stop the
  boot after the bootloader has completed its work. Trying to load
  U-Boot too early can cause failure to boot. This is the method used by
  Xilinx with its Zynq(MP) processors.
- Loading SPL with BOOT_DEVICE_RAM and breaking before SPL loads the
  image to load U-Boot at the appropriate place. This can be a bit
  tricky, because the load address is dependent on the header size. An
  elf with symbols must also be used in order to stop at the appropriate
  point. BOOT_DEVICE_SMH can be viewed as an extension of this process,
  where SPL automatically stops and tells the host where to place the
  image.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
2022-04-01 15:03:13 -04:00
..
arc dts: automatically build necessary .dtb files 2022-02-09 12:26:12 -07:00
arm spl: Add semihosting boot method 2022-04-01 15:03:13 -04:00
m68k Convert CONFIG_MCFRTC et al to Kconfig 2022-04-01 10:28:46 -04:00
microblaze microblaze: Do not place u-boot to reserved memory location 2022-03-07 16:33:47 +01:00
mips event: Convert arch_cpu_init_dm() to use events 2022-03-10 08:28:36 -05:00
nds32 dts: automatically build necessary .dtb files 2022-02-09 12:26:12 -07:00
nios2 event: Convert arch_cpu_init_dm() to use events 2022-03-10 08:28:36 -05:00
powerpc Convert CONFIG_SYS_MONITOR_BASE to Kconfig 2022-04-01 10:28:47 -04:00
riscv Prepare v2022.04-rc5 2022-03-28 12:36:49 -04:00
sandbox arch: Kconfig: imply BINMAN for SANDBOX 2022-03-31 14:12:01 -04:00
sh Split CONFIG_CC_OPTIMIZE_FOR_SIZE into two configs 2022-03-25 13:35:50 -04:00
x86 Prepare v2022.04-rc4 2022-03-14 17:40:36 -04:00
xtensa Convert CONFIG_BOARD_POSTCLK_INIT to Kconfig 2022-03-03 16:51:19 -05:00
.gitignore
Kconfig keymile: Move sourcing of common Kconfig 2022-04-01 10:28:46 -04:00
u-boot-elf.lds