New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FS#515 - (x86_64) No support for generic EFI framebuffer #5470
Comments
alive4ever: LEDE kernel is EFI-stub enabled. So, instead of creating a grub standalone efi image to chainload the kernel, it is possible to load the kernel directly from EFI shell as long as the UEFI and kernel architecture match (x86_64 UEFI to launch x86_64 kernel). |
alive4ever: I can get LEDE to display text on the EFI framebuffer console by enabling CONFIG_FB_EFI and CONFIG_FB_SIMPLE.
|
alive4ever: Pull request has been submitted: lede-project/source#851 |
alive4ever: Resubmitted: lede-project/source#860 |
nbd: Fixed in r3551-2712497442 |
alive4ever:
There is no display on the vga console when booting LEDE x86/64 generic on UEFI - chainloaded via grubx64-standalone.efi - on Qemu with EDK II OVMF.
To reproduce this, manual steps are needed, since LEDE image for x86_64 doesn't support native UEFI boot.
$ qemu-img create -f raw lede-test.img 512M
# losetup -f lede-test.img
# fdisk /dev/loop0
# mkfs.vfat /dev/loop0p1
# mkfs.ext3 /dev/loop0p2
# mkdir /mnt/boot && mount /dev/loop0p1 /mnt/boot
# mkdir -p /mnt/boot/EFI/BOOT
# mkdir /mnt/rootfs && mount /dev/loop0p2 /mnt/rootfs
grub2-mkstandalone --modules="part_msdos part_gpt" --format=x86_64-efi --output=/mnt/boot/EFI/BOOT/BOOTX64.EFI
/mnt/boot/lede-x86-64-vmlinuz
# tar -C /mnt/rootfs -xf lede-x86-64-generic-rootfs.tar.gz
# umount -v /mnt/rootfs /mnt/boot
# losetup -d /dev/loop0
$ qemu-system-x86_64 -enable-kvm -m 512M -drive file=lede-test.img,format=raw -bios /usr/share/edk2/ovmf/OVMF_CODE.fd -serial stdio
insmod efi_gop insmod efi_uga insmod video_bochs insmod video_cirrus insmod gfxterm terminal_input console terminal_output console gfxterm set gfxpayload=keep
linux (hd0,msdos1)/lede-x86_64-vmlinuz root=/dev/sda2 rootfstype=ext3 rootwait noinitrd console=tty0 console=ttyS0,115200n8
boot
LEDE will boot, but no output shown on the VGA display. The only output is shown on the serial console.
Enabling CONFIG_FB_EFI for x86/64 target is needed to display graphical output on the EFI framebuffer.
The text was updated successfully, but these errors were encountered: