QEMU
John Baldwin
jhb at FreeBSD.org
Wed Jul 11 15:57:25 UTC 2018
On 7/10/18 1:25 PM, Jason Bacon wrote:
> On 07/10/18 14:39, Jason Bacon wrote:
>> On 07/09/18 16:00, Nathan Whitehorn wrote:
>>>
>>>
>>> On 07/09/18 13:39, Jason Bacon wrote:
>>>> On 07/09/18 14:17, John Baldwin wrote:
>>>>> On 7/9/18 11:55 AM, Jason Bacon wrote:
>>>>>> Anyone running on qemu lately?
>>>>>>
>>>>>> I've tried following the "recipe":
>>>>>> https://wiki.freebsd.org/QemuRecipes
>>>>>> and tried using aqemu.
>>>>>>
>>>>>> 11.2-RELEASE hangs during boot from the ISO.
>>>>>>
>>>>>> 11.1 makes it to the install screen, but does not accept keyboard
>>>>>> input.
>>>>>>
>>>>>> Hoping to fix ppc issues in some of the ports I maintain and I don't
>>>>>> have any ppc hardware at the moment.
>>>>> It's been a while since I tried those (I put the recipes up), and IIRC
>>>>> I was only ever able to boot powerpc64 under qemu, never 32-bit.
>>>>>
>>>> Just noticed that the keyboard works during initial boot (I can hit
>>>> enter to cancel the countdown after loading the kernel), but
>>>> after successfully starting services and launching the installer,
>>>> there is no response.
>>>>
>>>> "Scanning USB" shows a USB keyboard and mouse and "no console
>>>> specified using screen & keyboard".
>>>>
>>>> Adding -usb and/or -device usb-kbd don't seem to help.
>>>>
>>>> How about PearPC?
>>>>
>>>
>>> Maybe a USB problem? If you run with -nographic with
>>> qemu-system-ppc64, it will work reliably. Other modes are less
>>> well-tested.
>>> -Nathan
>>
>> With -nographic, it hangs before loading the kernel:
>>
>> + qemu-system-ppc64 -nographic -cdrom
>> Save/FreeBSD-11.2-RELEASE-powerpc-disc1.iso -drive
>> 'file=freebsd-ppc.img,format=raw' -boot d
>>
>>
>> SLOF
>> **********************************************************************
>> QEMU Starting
>> Build Date = Mar 3 2017 13:29:19
>> FW Version = git-66d250ef0fd06bb8
>> Press "s" to enter Open Firmware.
>>
>> Populating /vdevice methods
>> Populating /vdevice/vty at 71000000
>> Populating /vdevice/nvram at 71000001
>> Populating /vdevice/l-lan at 71000002
>> Populating /vdevice/v-scsi at 71000003
>> SCSI: Looking for devices
>> 8000000000000000 DISK : "QEMU QEMU HARDDISK 2.5+"
>> 8200000000000000 CD-ROM : "QEMU QEMU CD-ROM 2.5+"
>> Populating /pci at 800000020000000
>> 00 0000 (D) : 1234 1111 qemu vga
>> 00 0800 (D) : 1033 0194 serial bus [ usb-xhci ]
>> No NVRAM common partition, re-initializing...
>> Installing QEMU fb
>>
>>
>>
>> Scanning USB
>> XHCI: Initializing
>> USB Keyboard
>> USB mouse
>> No console specified using screen & keyboard
>>
>>
>>
>> Welcome to Open Firmware
>>
>> Copyright (c) 2004, 2011 IBM Corporation All rights reserved.
>> This program and the accompanying materials are made available
>> under the terms of the BSD License available at
>> http://www.opensource.org/licenses/bsd-license.php
>>
>>
>> Trying to load: from: /vdevice/v-scsi at 71000003/disk at 8200000000000000
>> ... Successfully loaded
>> Trying to write privileged spr 25 (0x019) at 00000000008b03c4
>>
>>
>> The disk image was created with
>>
>> qemu-img create -f raw $diskimage 20g
>>
> Back to the graphic run with 11.1...
>
> If I let it sit a while, I see the following I/O warning which might
> explain the lack of keyboard response:
>
> + qemu-system-ppc64 -cdrom
> Save/FreeBSD-11.1-RELEASE-powerpc-powerpc64-disc1.iso -drive
> 'file=freebsd-ppc.img,format=raw' -boot d
> Fontconfig warning: "/usr/local/etc/fonts/local.conf", line 1093: saw
> number, expected matrix
> main-loop: WARNING: I/O thread spun for 1000 iterations
I've seen this warning lots of times when using QEMU for mips and the
keyboard does work fine there via -nographic. On mips I see it when
I am doing disk-intensive work (e.g. a buildworld) in the virtual machine.
--
John Baldwin
More information about the freebsd-ppc
mailing list