-
Notifications
You must be signed in to change notification settings - Fork 9
drivers: ramdisk: Add support for external initrd #87
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
base: zephyr-v3.3.0-xt
Are you sure you want to change the base?
Conversation
drivers/disk/ramdisk.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't you put ramdisk_buf here with explicit casting for suppressing warnings and reduce the diff?
|
Review finished, generally ok. |
Add support for using initrd provided by the bootloader as the RAM Disk. Location of the initrd is specified by the DISK_RAM_START Kconfig option. Currently only uncompressed filesystem images are supported. Signed-off-by: Mykyta Poturai <mykyta_poturai@epam.com>
Add lz4frame and xxhash to the build system. This is required to support the decompression of LZ4 files made with LZ4 cli tool. Base lz4 library only supports decompression of raw LZ4 blocks without taking into account the frame metadata. Signed-off-by: Mykyta Poturai <mykyta_poturai@epam.com>
1ce52b6 to
4820117
Compare
firscity
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with one comment
drivers/disk/ramdisk.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include it unconditionally to this file? Also should it be #include "" instead of #include <>?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding " vs < it was included with " in a sample for some reason so I assumed that it is required, changed to <
Add support for decompressing the initrd before using it as the RAM Disk. For now, only LZ4 compression is supported. It is advised to use smaller block sizes for the compressed initrd to reduce the size of heap memory required for decompression. Signed-off-by: Mykyta Poturai <mykyta_poturai@epam.com>
|
Are we going to merge this PR? |
Add support for using initrd provided by the bootloader. Supports both compressed and uncompressed filesystem images.