From owner-freebsd-ppc@freebsd.org Tue Jul 10 20:26:00 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D12C8102830B for ; Tue, 10 Jul 2018 20:25:59 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-it0-x230.google.com (mail-it0-x230.google.com [IPv6:2607:f8b0:4001:c0b::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5CCA28A885; Tue, 10 Jul 2018 20:25:59 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-it0-x230.google.com with SMTP id a195-v6so530214itd.3; Tue, 10 Jul 2018 13:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=s8ERf5pfhf/YTPT8MdsejtxK/33yfDf1/loLs3CAxqM=; b=LLjDFO/OVy8Ag+P5uiMri03PIfQzBqunTLdrp5KhuR02noYUuKRdVsZQVuw8wyCxNA zhSgwOKFeCSLVTkm8y6pkUp9vGttny0dwEERncp/LkdiJeeLV3KK9IicKC/BsOmBWcTc m13l3ClHVHZ3i/PT5ZkhtPAtTQ98q2ERK7q1g4zmJjSbjckffPVzQHlBrxNj1XOSss/a nd4IaNf7m6HcagnONqSm3rE1myAB1k0y3tCqx/u5nSJ1S4PLLlc5GewTvDCssC6L3e/n q4y7T2P9D06YZoG1NAoc877c6fMZCTMlHWCEmqxwU5Uj596BYAwBlDk86KtzFU2EKlL2 6Opg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=s8ERf5pfhf/YTPT8MdsejtxK/33yfDf1/loLs3CAxqM=; b=A7uoxsSfBHZBcnVh5o2MrR7JReNoHCH7vC5WgDpvevEvgoUeRIGBkcKnq4o9DKsMhl hFVdomPyCaXVOdH+lgwVhjFWdK1MHG7SzV00KLyP7l8kGLS0KhgazNq3FmkyWzuhmMeP v5fY+8i/XrC5WpRR6l8Gq0fmPrubLgAqz3fB1mEiXttR4Nzi4KV2l0TX3mREMGglrdB3 E5jeQ27121BRllkbucW/8+ngIXUZSDia7MAe1Ct6WjIlFd3IfSZaN9yAVuiR5aaF6bKK Y3KJ6bcSUibXb0l/H7bvSTopISn1xhR6BCmgJqHzlPRaYgl0fFuwVYjmHUHd3Sce+LWy krEg== X-Gm-Message-State: APt69E2ckcrs5dn2B333P7ZkiHn5QFycyOJ3pruol2ypJGGy9ErQT64S QAW8SKhjdE2b+alIzTbCFn7vkEUt X-Google-Smtp-Source: AAOMgpdBNHuPBx3svxOixS92pzhdPO3m69fAGHvDJfUFXz1kbkrjmq7RhTYqkuGVA5g0Y/CHEZuABw== X-Received: by 2002:a02:8895:: with SMTP id n21-v6mr21983094jaj.21.1531254358321; Tue, 10 Jul 2018 13:25:58 -0700 (PDT) Received: from manatee.acadix.biz (cpe-174-102-163-140.wi.res.rr.com. [174.102.163.140]) by smtp.gmail.com with ESMTPSA id w79-v6sm9675350iod.43.2018.07.10.13.25.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jul 2018 13:25:57 -0700 (PDT) Subject: Re: QEMU From: Jason Bacon To: Nathan Whitehorn , John Baldwin , freebsd-ppc@freebsd.org References: <0c2e8392-0444-094c-af61-ca14d4f3038e@gmail.com> <5e43417f-8797-c52f-363c-9670cd1f5947@freebsd.org> <5852aefa-c2d0-dd95-574d-14538d3a9517@gmail.com> Message-ID: <3eec8fcb-d208-aca8-65d8-4dc779c92d24@gmail.com> Date: Tue, 10 Jul 2018 15:25:56 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 In-Reply-To: <5852aefa-c2d0-dd95-574d-14538d3a9517@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 20:26:00 -0000 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 qemu at this point is using very little cpu:   PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME WCPU COMMAND 93292 bacon         5  24    0   458M 54864K select  1  18:27 5.88% lumina-deskt 19406 bacon         4  20    0  1185M   259M select  0   6:25 3.15% qemu-system- -- Earth is a beta site.