From 2e9a3dabbd3dd2d01d36fc63f07b84ea8e882728 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 30 Oct 2024 19:59:56 +0800 Subject: [PATCH] drm-panic: grub: Set up the VESA framebuffer for the kernel In the previous commit we've enabled the kernel to use the SimpleDRM driver on the VESA framebuffer. Now provide the VESA framebuffer to the kernel. --- chapter10/grub.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chapter10/grub.xml b/chapter10/grub.xml index 1706ccb3c..4796f6d5c 100644 --- a/chapter10/grub.xml +++ b/chapter10/grub.xml @@ -135,6 +135,7 @@ set timeout=5 insmod part_gpt insmod ext2 set root=(hd0,2) +set gfxpayload=1024x768x32 menuentry "GNU/Linux, Linux &linux-version;-lfs-&version;" { linux /boot/vmlinuz-&linux-version;-lfs-&version; root=/dev/sda2 ro @@ -159,6 +160,13 @@ EOF be needed with some rare configurations. + + The set gfxpayload=1024x768x32 command sets the + size and color depth of the VESA framebuffer to be passed to the + kernel. It's necessary for the kernel SimpleDRM driver to use the + VESA framebuffer. + + From GRUB's perspective, the kernel files are relative to the partition used. If you used a separate /boot partition, remove /boot from the above