QEMU

Jason Bacon bacon4000 at gmail.com
Tue Jul 10 19:39:48 UTC 2018


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

-- 

Earth is a beta site.



More information about the freebsd-ppc mailing list