10.12.2016 17:53, Giovanni Santini пишет:
> Il 09/12/2016 16:55, Andrei Borzenkov ha scritto:
>>
>> Sorry, it is 64 bit, please change it to
>>
>> grub_error (GRUB_ERR_BAD_OS, "cannot load image: %08" PRIuGRUB_UINT64_T,
>> (grub_int64_t) status)
>>
>
> Ok, I've changed the error log message with this line and I got
> 9223372036854775810
> You want an hex...? Or is this error fine?
>
No, that's OK. The error is EFI_INVALID_PARAMETER which is rather
unexpected at this point.
Stab in the dark - could you try to change loading from
status = efi_call_6 (b->load_image, 0, grub_efi_image_handle, file_path,
boot_image, size,
&image_handle);
into
status = efi_call_6 (b->load_image, 0, grub_efi_image_handle, file_path,
0, 0,
&image_handle);
I understand that you are loading file from ESP, so it should be
directly accessible by firmware.
And yes, please use PRIxGRUB_UINT64_T instead so code is printed in hex,
it is more readable.
_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub