Bug 15191 - pc_x86_64_efi_defconfig doesn't run on real hardware
Summary: pc_x86_64_efi_defconfig doesn't run on real hardware
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2022.08.1
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-20 03:36 UTC by Sam Bristow
Modified: 2023-05-03 22:26 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)