--- zzzz-none-000/linux-5.15.111/drivers/firmware/efi/libstub/x86-stub.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/drivers/firmware/efi/libstub/x86-stub.c 2024-02-07 10:22:41.000000000 +0000 @@ -362,6 +362,8 @@ int options_size = 0; efi_status_t status; char *cmdline_ptr; + struct setup_data *fdt_data; + unsigned long fdt_data_size; efi_system_table = sys_table_arg; @@ -421,6 +423,17 @@ */ hdr->setup_data = 0; + status = avm_get_dtb_setup_data(image, &fdt_data); + if (status != EFI_SUCCESS) { + efi_err("Failed to load DTB: %d\n", status); + goto out; + } + + efi_info("DTB successfully loaded\n"); + + fdt_data->next = hdr->setup_data; + hdr->setup_data = (unsigned long)fdt_data; +out: efi_stub_entry(handle, sys_table_arg, boot_params); /* not reached */ @@ -786,6 +799,8 @@ } } + avm_load_dtb_overlay(boot_params); + /* * If the boot loader gave us a value for secure_boot then we use that, * otherwise we ask the BIOS.