Le 26/02/2015 17:41, Ken Moffat a écrit :
> On Thu, Feb 26, 2015 at 12:46:08PM +0100, Pierre Labastie wrote:
>>
>> - with -vga std:
>>   - the modesetting driver seems to initialize, and the 2 other drivers 
>> (fbdev
>> and vesa) are closed. Then an error occurs "fatal server error:
>> [    26.601] (EE) failed to create screen resources(EE)", and the xorg server
>> closes. But I am left with a black screen which I cannot reset... I can only
>> ssh to the VM for shutting it down.
>>
> 
>  I only use -vga std on recent builds (for my preferences, I can get
> a better (bigger) screen).   And that was what I got, but I think I
> actually managed to type Ctrl-C in the qemu console.  But the
> original patch mentioned cirrus.  There are also other patches in
> the series, e.g. for cursor, but I did not need them.
> 
>> - with -vga vmware:
>>   - the vmware driver starts correctly, but the mouse pointer has erratic
>> moves all over the window! I can logout by typing exit in the controlling
>> xterm. but then the console has a reddish background instead of black...
>> There is an information about /dev/input/mouse0, telling "No input driver
>> specified, ignoring this device". Do not know whether it has something to do
>> with the pointer instability...
>>
>  I used vmware when I started playing with qemu, initially running
> distro installers so I could look at what they did for TeX
> (particuarly, OTF/TTF fonts).  I think I saw a reddish console
> background frequently - but mostly it resolved itself.
> 
>> With x86_64, the driver used is fbdev. I use EFI, and both CONFIG_FB_VESA abd
>> CONFIG_FB_EFI are set. Do not know whether it goes through EFI framebuffer or
>> vesa. But it works. I realize that I do not know why.
> 
>  I'm glad the 64-bit version works, at least with fbdev.  I assume
> that qemu does not provide any EFI emulation (the default PC models
> in it are somewhat older than EFI).
>>
>> I'll try the fix, and let you know.

Lots of progress. I first applied your fix (only patch 2/4) and could have X
start, but with no mouse pointer (exactly, an invisible one: when I move the
mouse around, I can select different windows). So I decided to apply the four
patches, because it seemed to me that they had something to do with pointer
(hardware vs soft cursor). I can now have the modesetting driver with both
-vga std and -vga cirrus. I still get a black screen when exiting X, though. I
can type (blindly) "sudo halt" or "sudo reboot", and it halts (or reboots).

About EFI, yes, there is an EFI firmware for qemu, and it works well!
Add the switch "-bios OVMF.fd" to the command line. I do not know if it is
shipped within the qemu tarball or if you have to download it separately (I
use the qemu  package from debian to launch the VM). Of course, you need a
different flavour of grub. I can send you my notes about that (based on a hint
which was sent around October by somebody on the LFS list, but never published).

Regards,
Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to