Re: [PATCH 1/2] scripts/make_fit: Support an initial ramdisk

From: Ahmad Fatoum

Date: Mon Sep 22 2025 - 03:15:05 EST


Hello Simon,

On 19.09.25 23:09, Simon Glass wrote:
> FIT (Flat Image Tree) allows an ramdisk to be included in each
> configuration. Add support for this to the script.
>
> This feature is not available via 'make image.fit' since the ramdisk
> likely needs to be built separately anyway, e.g. using modules from
> the kernel build.

AFAIK the kernel supports multiple concatenated separately compressed
initramfs just fine, so it may still be useful to add a target which
builds a cpio with all modules inside and the rest can be then
concatenated.

What do you think?

> + fsw.property_string('compression', args.compress)

compression should be none as the kernel would take of decompression.

Both U-Boot and barebox should warn about ramdisk compression property
that is != "none".

Cheers,
Ahmad

--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |