qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] set vidmode in linux kernel header when boot x86 using qemu


From: joy zhao
Subject: [Qemu-devel] set vidmode in linux kernel header when boot x86 using qemu bootloader
Date: Tue, 26 May 2009 17:56:55 +0800

hi,
I made a patch to have qemu parse vga field in kernel command line and set the vid_mode field of real-mode kernel header.
This patch is necessary because vga is one of the special command line options that should be parsed in bootloader, as in linux kernel Documentation/x86/i386/boot.txt. After bootloader write the passed vga value into the vid_mode field of linux real-mode kernel header, this vid_mode will be handled by linux/x86/boot/video.c in linux kernel to select vesa graphics mode, and only in this mode can vesafb be registered(in vesafb_probe()).
So, if we decide to launch linux directly from qemu command line as "qemu -kernel ... -initrd... -append "..." ", (use qemu bootloader) and use vesafb as framebuffer driver, this patch to qemu is required, otherwise, the screen should just blank since the vesafb fails to register itself.

Attachment: qemu.x86_boot_vidmode.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]