Received: from eggs.gnu.org ([2001:4830:134:3::10]:37322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj8sR-0007pm-S5 for qemu-devel@nongnu.org; Sat, 10 May 2014 11:07:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wj8sK-0000J5-By for qemu-devel@nongnu.org; Sat, 10 May 2014 11:07:51 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:34529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj8sK-0000Iz-5q for qemu-devel@nongnu.org; Sat, 10 May 2014 11:07:44 -0400 Received: by mail-pa0-f51.google.com with SMTP id kq14so5547121pab.24 for ; Sat, 10 May 2014 08:07:42 -0700 (PDT) Date: Sat, 10 May 2014 11:07:39 -0400 From: Kevin O'Connor Message-ID: <20140510150739.GA29484@morn.localdomain> References: <20140509150621.GA9474@euler.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140509150621.GA9474@euler.fritz.box> Subject: Re: [Qemu-devel] uvesafb doesn't work with seabios List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bernhard Walle Cc: qemu-devel@nongnu.org, kraxel@redhat.com On Fri, May 09, 2014 at 05:06:21PM +0200, Bernhard Walle wrote: > Hello, > > I'm using QEmu 2.0.0 on a Linux host (x86-64) with a quite special > target system that uses uvesafb ('video=uvesafb:1024x768-32'). I get > following errors in the target system: > > uvesafb: Getting mode info block for mode 0x2 failed (eax=0x4f01, err=1) > uvesafb: Getting mode info block for mode 0x3 failed (eax=0x4f01, err=1) > uvesafb: Getting mode info block for mode 0x4 failed (eax=0x4f01, err=1) > uvesafb: Getting mode info block for mode 0x5 failed (eax=0x4f01, err=1) > uvesafb: Getting mode info block for mode 0x6 failed (eax=0x4f01, err=1) > uvesafb: Getting mode info block for mode 0x7 failed (eax=0x4f01, err=1) > uvesafb: Getting mode info block for mode 0xd failed (eax=0x4f01, err=1) > uvesafb: Getting mode info block for mode 0xe failed (eax=0x4f01, err=1) > uvesafb: Getting mode info block for mode 0xf failed (eax=0x4f01, err=1) > uvesafb: Getting mode info block for mode 0x10 failed (eax=0x4f01, err=1) > uvesafb: Getting mode info block for mode 0x11 failed (eax=0x4f01, err=1) > uvesafb: Getting mode info block for mode 0x12 failed (eax=0x4f01, err=1) > uvesafb: Getting mode info block for mode 0x13 failed (eax=0x4f01, err=1) > uvesafb: Getting mode info block for mode 0x6a failed (eax=0x4f01, err=1) > uvesafb: vbe_init() failed with -22 > uvesafb: probe of uvesafb.0 failed with error -22 > > With QEmu 1.6, it worked. I bisected that down to following commit: > > commit 6eefccc0bb9c34051b1e21880fc3a1c1c8686edd > Author: Gerd Hoffmann > Date: Mon Dec 2 13:01:20 2013 +0100 > > roms: update vgabios binaries > > And indeed, when I switch 'vgabios-stdvga.bin' to the old variant, it works. > > What can I do to track down the problem? I tried to build the svga bios > inside the QEMU tree, but I didn't succeed. Building it in the current > seabios git tree worked, but I got a different error... Can you run the original SeaVGABIOS image and provide the output with the following added to the qemu command line: -chardev stdio,id=seabios -device isa-debugcon,iobase=0x402,chardev=seabios Also, it looks like uvesafb can call x86emu. Older versions of x86emu are known to not emulate some instructions properly, and it has caused problems for SeaVGABIOS. The most recent version of SeaVGABIOS from SeaBIOS git has additional checks for this - can you grab the seabios git, set CONFIG_DEBUG_LEVEL to 8, build SeaVGABIOS (set CONFIG_VGA_BOCHS), and post the logs from both Linux and QEMU with the above options? -Kevin