bzImage under x86_64 UEFI app mode.

2022-02-18 Thread Christian Melki
Hi. I'm trying the new UEFI-app mode where I rely on EFI services to give me access to things like block devices etc. I'm currently using 2022.04-rc1. So far so good. I can start U-boot and the efi block device works just fine. But I'm not succeeding in booting a regular bzImage. This kernel (5.1

Re: [PATCH v5 27/28] x86: efi: Set the correct link flags for the 64-bit EFI app

2021-12-05 Thread Christian Melki
: Simon Glass Signed-off-by: Christian Melki > --- > > Changes in v5: > - Add new patch to set the correct link flags for the 64-bit EFI app > > arch/x86/config.mk | 15 --- > 1 file changed, 12 insertions(+), 3 deletions(-) > > diff --git a/arch/x86/co

Re: [PATCH v5 26/28] x86: efi: Don't use the 64-bit link script for the EFI app

2021-12-05 Thread Christian Melki
On 12/4/21 16:56, Simon Glass wrote: > That script is not intended for use with EFI, so update the logic to avoid > using it. > > Signed-off-by: Simon Glass Signed-off-by: Christian Melki > --- > > Changes in v5: > - Add new patch to avoid using the 64-bit lin

Re: Hints on how to use efi_driver/efi_block_device.c

2021-08-13 Thread Christian Melki
On 8/13/21 2:36 AM, Heinrich Schuchardt wrote: On 8/12/21 11:49 PM, Simon Glass wrote: +Heinrich Schuchardt too On Thu, 12 Aug 2021 at 08:35, Christian Melki wrote: I was hoping that U-boot would detect BLOCK_IO devices provided by UEFI automatically. But I can't see anything att

Hints on how to use efi_driver/efi_block_device.c

2021-08-12 Thread Christian Melki
I was hoping that U-boot would detect BLOCK_IO devices provided by UEFI automatically. But I can't see anything attached under lsblk or find some other information about this. For example, Barebox works just fine on both Virtualbox and real hardware in this regard. Barebox does not have an emm

Re: [PATCH] x86: Ensure the e820 map is installed in all cases

2021-08-10 Thread Christian Melki
Simon. Sorry for the late reply. Tested on Virtualbox and on real hardware (DFI GHF51). Works for me. On 7/11/21 5:15 AM, Simon Glass wrote: > This is a revert of a recent logic change in setup_zimage(). We do > actually need to install this information always. Change it to install > from the Core

Re: U-Boot zboot on x86-64 VirtualBox UEFI.

2021-06-11 Thread Christian Melki
On 6/11/21 3:40 PM, Simon Glass wrote: > +Heinrich Schuchardt > > Hi Christian, > > On Fri, 11 Jun 2021 at 07:30, Christian Melki > wrote: >> >> Hi. >> >> I have been trying to boot a bzImage with zboot from a VirtualBox UEFI >> instance ->

Re: [PATCH] Add udivmoddi4.

2021-06-09 Thread Christian Melki
On 6/9/21 8:31 PM, Tom Rini wrote: > On Mon, Jun 07, 2021 at 11:20:47AM +0200, Christian Melki wrote: > >> A newer toolchain will emit udivmoddi4 for certain divide + modulo >> operations instead of a separate divide and modulo operation. >> AFAIU, this would be suffici

[PATCH] disk/part_dos.c: Fix what looks like a variable typo in the write functionality.

2021-06-07 Thread Christian Melki
Signed-off-by: Christian Melki --- disk/part_dos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/part_dos.c b/disk/part_dos.c index 60addc6e00..9e29aa6583 100644 --- a/disk/part_dos.c +++ b/disk/part_dos.c @@ -424,7 +424,7 @@ int write_mbr_partitions(struct blk_desc

[PATCH] Add udivmoddi4.

2021-06-07 Thread Christian Melki
A newer toolchain will emit udivmoddi4 for certain divide + modulo operations instead of a separate divide and modulo operation. AFAIU, this would be sufficient. Signed-off-by: Christian Melki --- arch/x86/lib/div64.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/x86/lib/div64.c