diff options
| author | Michael Brown | 2025-05-21 15:28:29 +0200 |
|---|---|---|
| committer | Michael Brown | 2025-05-21 15:56:10 +0200 |
| commit | 969e8b54629033be232c08d28766359261aff901 (patch) | |
| tree | 49fee1e9053d2c600f397ea54d120ad0f2ef506c /src/include | |
| parent | [fdt] Allow an initrd to be specified when creating a device tree (diff) | |
| download | ipxe-969e8b54629033be232c08d28766359261aff901.tar.gz ipxe-969e8b54629033be232c08d28766359261aff901.tar.xz ipxe-969e8b54629033be232c08d28766359261aff901.zip | |
[lkrn] Allow a single initrd to be passed to the booted kernel
Allow a single initrd image to be passed verbatim to the booted RISC-V
kernel, as a proof of concept.
We do not yet support reshuffling to make optimal use of available
memory, or dynamic construction of CPIO headers, but this is
sufficient to allow iPXE to start up the Fedora 42 kernel with its
matching initrd image.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/lkrn.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/ipxe/lkrn.h b/src/include/ipxe/lkrn.h index 59aabdd4b..43daa8006 100644 --- a/src/include/ipxe/lkrn.h +++ b/src/include/ipxe/lkrn.h @@ -54,6 +54,10 @@ struct lkrn_context { physaddr_t entry; /** Device tree */ physaddr_t fdt; + /** Initial ramdisk (if any) */ + physaddr_t initrd; + /** Length of initial ramdisk (if any) */ + size_t initrd_len; }; /** Compressed kernel image header */ |
