Date: Wed, 11 Jul 2018 08:57:21 -0700 From: John Baldwin <jhb@FreeBSD.org> To: Jason Bacon <bacon4000@gmail.com>, Nathan Whitehorn <nwhitehorn@freebsd.org>, freebsd-ppc@freebsd.org Subject: Re: QEMU Message-ID: <dfc0f93e-5dbc-0b7f-60aa-eb64be5e56d9@FreeBSD.org> In-Reply-To: <3eec8fcb-d208-aca8-65d8-4dc779c92d24@gmail.com> References: <0c2e8392-0444-094c-af61-ca14d4f3038e@gmail.com> <be0fa221-027d-a4e3-cc49-57c4918e45e6@FreeBSD.org> <d21e6019-246e-089b-b220-5247c96309a5@gmail.com> <5e43417f-8797-c52f-363c-9670cd1f5947@freebsd.org> <5852aefa-c2d0-dd95-574d-14538d3a9517@gmail.com> <3eec8fcb-d208-aca8-65d8-4dc779c92d24@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@71000000 >> Populating /vdevice/nvram@71000001 >> Populating /vdevice/l-lan@71000002 >> Populating /vdevice/v-scsi@71000003 >> SCSI: Looking for devices >> 8000000000000000 DISK : "QEMU QEMU HARDDISK 2.5+" >> 8200000000000000 CD-ROM : "QEMU QEMU CD-ROM 2.5+" >> Populating /pci@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@71000003/disk@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dfc0f93e-5dbc-0b7f-60aa-eb64be5e56d9>