[lfs] 02/04: drm-panic: grub: Set up the VESA framebuffer for the kernel

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository lfs.

commit 33c17d128bdf1f3a10e086b2b13a1ec655bcf7ed
Author: Xi Ruoyao <[email protected]>
AuthorDate: Wed Oct 30 19:59:56 2024 +0800

    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 | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/chapter10/grub.xml b/chapter10/grub.xml
index 1706ccb3c..00be1d6c0 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,14 @@ EOF</userinput></screen>
       be needed with some rare configurations.
     </para>
 
+    <para>
+      The <command>set gfxpayload=1024x768x32</command> command sets the
+      resolution 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.  You can use a different resolution or color depth
+      value which better suits for your monitor.
+    </para>
+
     <note><para>From <application>GRUB</application>'s perspective, the
     kernel files are relative to the partition used.  If you
     used a separate /boot partition, remove /boot from the above

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.