u-boot/arch/arm/mach-stm32mp
Patrick Delaunay d68e53b279 stm32mp: stm32prog: add support of initrd in flashlayout
Add the support in command stm32prog of kernel load and start
with initrd file, identify by the partition Type "Binary" in
the flashlayout.tsv, for example:

- 0x01 fsbl	Binary none 0x0 tfa.stm32
- 0x03 fip	Binary none 0x0 fip.bin
P 0x10 kernel System ram0 0xC2000000 uImage.bin
P 0x11 dtb FileSystem ram0 0xC4000000 board.dtb
P 0x12 initrd Binary ram0 0xC4400000 <initrd>

The <initrd> file can be a legacy image "uInitrd", generated
with mkimage, or a RAW initrd image "initrd.gz".

After a DFU detach the bootm command with be executed
with the associated address, for example:

$> bootm 0xC2000000 0xC4400000:<size> 0xC4000000

When the "Binary" partition type is absent, the 'bootm'
command starts the kernel without ramdisk, for example:

$> bootm 0xC2000000 - 0xC4000000

With this paths, it is no more mandatory to generate FIT
including the kernel, DT and initrd:

- 0x01 fsbl Binary none 0x0 tfa.stm32
- 0x03 fip Binary none 0x0 fip.bin
P 0x10 fit System ram0 0xC2000000 fit.bin

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2021-06-18 10:09:41 +02:00
..
cmd_stm32prog stm32mp: stm32prog: add support of initrd in flashlayout 2021-06-18 10:09:41 +02:00
include/mach arm: stm32: cleanup arch gpio.h 2020-10-21 18:12:20 +02:00
boot_params.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bsec.c stm32mp: bsec: manage clock when present in device tree 2021-03-11 17:50:10 +01:00
cmd_stm32key.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
config.mk Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
cpu.c stm32mp: don't map the reserved region with no-map property 2021-06-07 10:48:40 -04:00
dram_init.c stm32mp: Increase the reserved memory in board_get_usable_ram_top 2021-06-07 10:48:40 -04:00
fdt.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
Kconfig board: stm32: Add Engicam MicroGEA STM32MP1 MicroDev 2.0 7" OF 2021-04-09 11:53:00 +02:00
Makefile stm32mp: stm32prog: Add CONFIG_CMD_STM32PROG_SERIAL and _USB 2021-03-11 17:41:17 +01:00
psci.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pwr_regulator.c arm: stm32mp: migrate trace to log macro 2021-01-13 09:52:58 +01:00
spl.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
syscon.c stm32mp1: pwr: use the last binding for pwr 2020-02-13 17:26:22 +01:00