[Top][All Lists]

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

[Qemu-commits] qemu x86 vidmode patch

From: joy zhao
Subject: [Qemu-commits] qemu x86 vidmode patch
Date: Tue, 26 May 2009 17:44:57 +0800

  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]