u-boot/arch/arm/mach-stm32mp/cmd_stm32prog
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.c stm32mp: stm32prog: add support of initrd in flashlayout 2021-06-18 10:09:41 +02:00
Kconfig stm32mp: stm32prog: Add CONFIG_CMD_STM32PROG_SERIAL and _USB 2021-03-11 17:41:17 +01:00
Makefile stm32mp: stm32prog: Add CONFIG_CMD_STM32PROG_SERIAL and _USB 2021-03-11 17:41:17 +01:00
stm32prog.c stm32mp: stm32prog: add support of initrd in flashlayout 2021-06-18 10:09:41 +02:00
stm32prog.h stm32mp: stm32prog: add support of initrd in flashlayout 2021-06-18 10:09:41 +02:00
stm32prog_serial.c stm32mp: stm32prog: add timeout in stm32prog_serial_get_buffer 2021-06-18 10:09:41 +02:00
stm32prog_usb.c arm: stm32mp: migrate cmd_stm32prog to log macro 2021-01-13 09:52:58 +01:00