mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 10:02:42 +03:00
[fdt] Allow an initrd to be specified when creating a device tree
Allow an initrd location to be specified in our constructed device tree via the "linux,initrd-start" and "linux,initrd-end" properties. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -153,7 +153,7 @@ static int lkrn_fdt ( struct image *image, struct lkrn_context *ctx ) {
|
||||
int rc;
|
||||
|
||||
/* Build device tree (which may change system memory map) */
|
||||
if ( ( rc = fdt_create ( &fdt, image->cmdline ) ) != 0 )
|
||||
if ( ( rc = fdt_create ( &fdt, image->cmdline, 0, 0 ) ) != 0 )
|
||||
goto err_create;
|
||||
len = be32_to_cpu ( fdt->totalsize );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user