Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for fit image #185

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jjhiblot
Copy link

@jjhiblot jjhiblot commented Nov 6, 2024

The FIT image is a widely used image format. With it, it becomes possible to package a linux kernel, one or more dtb and a initramfs into a single image.
There are practical advantages to do so:

  • the FIT can embedd multiples DTBs. One of them can be selected at runtime depending on the detected HW.
  • OTAs are easier to manage with a single file than multiple files.
  • Signing/ciphering is also easier to manage with a single file.

This series adds support for FIT image stored in NAND and SPI Flash. Support for other storage media should be easy to add.

This is a requirement of the the kernel[1].
Failing to do so may lead to boot failures.

1. https://www.kernel.org/doc/Documentation/arm/Booting

Signed-off-by: Jean-Jacques Hiblot <[email protected]>
This function returns a pointer to the string of the property
'bootargs' present in the 'chosen' node.

Signed-off-by: Jean-Jacques Hiblot <[email protected]>
The DTB may have a property for this purpose.
If no command line is given by board_override_cmd_line() or
board_override_cmd_line_ext(), it makes sens to use it.
In that case the amount of memory is prepended to the DTB bootargs.

Signed-off-by: Jean-Jacques Hiblot <[email protected]>
A FIT image is an image container. It usualy contains the kernel, one or
more DTB, and optionnaly a initramfs. It is commonly used on ARM.
If this option is selected, it is still possible to load a classic kernel
image.

Signed-off-by: Jean-Jacques Hiblot <[email protected]>
The kernel may use an initial root file system located in RAM before
the final root filesystem is available.
A FIT image may contain such a ramdisk image.

Signed-off-by: Jean-Jacques Hiblot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant