Bug 15191

Summary: pc_x86_64_efi_defconfig doesn't run on real hardware
Product: buildroot Reporter: Sam Bristow <s.bristow>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: 2022.08.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Sam Bristow 2022-12-20 03:36:36 UTC
I have been trying to get a Buildroot image to run on an x86_64 machine but I'm not having much luck. The generated image boots fine on QEMU but if I try to run it on real hardware, I just get a blank screen after the GRUB menu.

I have tested running on a couple of different machines with the same result and have confirmed that I can boot a standard Linux distro on the target hardware successfully.

# Steps to reproduce
git describe:
2022.08.1-38-b44e2cf19a

make clean && make distclean 
make pc_x86_64_efi_defconfig
make -j(nproc)

# Running in QEMU (works)

qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -drive format=raw,file=output/images/disk.img -m 4096M

# Running on Hardware (doesn't work)

* Flash image to USB stick
* Boot from USB stick
* UEFI works
* GRUB menu displayed
* Select boot option
* Blank screen, no further progress
Comment 1 Thomas Petazzoni 2023-01-28 21:10:53 UTC
Could you give more details about what hardware you are using, especially which CPU you have ?
Comment 2 Sam Bristow 2023-05-03 22:26:40 UTC
Sorry for the delay in replying. I tested this on a couple of different machines, an Elkhart Lake Atom board and a random other intel box from around the office.

I think the issue was that I wasn't getting a framebuffer to display anything after grub.

Now that the EFI framebuffer is enabled by default the pc_x86_64 config works out of the box.

(https://git.busybox.net/buildroot/commit/?id=7a4e8355e3751f620ef91239a1c61a9c1c41d5ca)