Date: Sat, 23 Feb 2019 07:49:03 -0600 From: Jason Bacon <bacon4000@gmail.com> To: Chuck Tuffli <ctuffli@gmail.com> Cc: freebsd-ppc@freebsd.org, Muhammad Moinur Rahman <rahman.moinur@gmail.com> Subject: Re: QEMU Message-ID: <9f96d3ac-ada3-8f41-6c2c-e6fab80e49e9@gmail.com> In-Reply-To: <8213518b-14a5-aac2-bcbb-529e49c4f044@gmail.com> References: <CAKAYmMJRt%2BTQUiqA_fSB0Mu=mnxr7FzW41-2sKjagT3L1F%2Bs-Q@mail.gmail.com> <5f291124-612f-6d10-5012-a8701b1cf49e@gmail.com> <5302f073-b51b-c92f-ada2-f7123d27fa3d@gmail.com> <CAKAYmMJ2_XxSwA7f%2Bn9B9vxhkNR%2BBRTUegRAD=Tnb8GnGSfeiw@mail.gmail.com> <a5a29770-5630-23f4-f69c-637a7504855b@gmail.com> <8213518b-14a5-aac2-bcbb-529e49c4f044@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------B66E56AEA7773B15A0A397F0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 7/21/18 1:06 PM, Jason Bacon wrote: > On 7/19/18 4:32 PM, Jason Bacon wrote: >> On 07/19/18 14:09, Chuck Tuffli wrote: >>> On Thu, Jul 12, 2018 at 8:09 AM, Jason Bacon <bacon4000@gmail.com> >>> wrote: >>>> FYI, I get the exact same behavior under qemu 2.8.1 on Debian. >>>> >>>> So now we have similar symptoms in qemu 2.8.1, 2.9, and 2.12.50 on >>>> FreeBSD >>>> and Linux hosts. >>> FWIW, on an Ubuntu 14.04 system with qemu-system-ppc64 version 2.0.0, >>> the ppc64 snapshot ISO of 12.0, the OS appears to install correctly >>> and subsequently boots correctly. >>> >>> --chuck >> That's worth a lot, actually. >> >> The 12.0 snapshot also works on my FreeBSD 11.1 host with the stock >> qemu package. Both keyboard and mouse input are processed. >> >> Interestingly, though, while 12.0 works, it seems to be a lot slower >> than 11.1 under qemu. Below are times to get to the install screen. >> ( I just close the qemu window as soon as it reaches that point, >> where 11.1 won't accept keyboard input. ) >> >> FreeBSD cray.acadix bacon ~ 999: time qemu-ppc install >> freebsd-ppc.img >> FreeBSD-12.0-CURRENT-powerpc-powerpc64-20180709-r336134-disc1.iso >> + [ ! -e freebsd-ppc.img ] >> + qemu-system-ppc64 -cdrom >> FreeBSD-12.0-CURRENT-powerpc-powerpc64-20180709-r336134-disc1.iso >> -drive 'file=freebsd-ppc.img,format=raw' -boot d >> 217.327u 3.455s 4:21.41 84.4% 9628+6292k 94+2io 476pf+0w >> >> >> FreeBSD cray.acadix bacon ~ 1000: time qemu-ppc install >> freebsd-ppc.img Save/FreeBSD-11.1-RELEASE-powerpc-powerpc64-disc1.iso >> + [ ! -e freebsd-ppc.img ] >> + qemu-system-ppc64 -cdrom >> Save/FreeBSD-11.1-RELEASE-powerpc-powerpc64-disc1.iso -drive >> 'file=freebsd-ppc.img,format=raw' -boot d >> 123.001u 1.748s 2:47.05 74.6% 9643+6302k 556+3io 0pf+0w >> >> Maybe these data will provide some clues to the ppc base developers... >> > I'm getting "lock order reversal" errors followed by stack traces when > running portsnap. Bleeding-edge 12.0 issue? > Poked around at this a bit more and found a workaround. It seems FreeBSD doesn't support the latest default PPC machine in qemu. Available options are listed below. After switching from the default pseries-2.6 to pseries-2.5, FreeBSD 12.0 works flawlessly. I attached a script I'm using to install and then boot the VM. So now there's an easy way to test/fix ports for PPC64. Runs about as fast as a 486, but that's fine since we can install dependencies via "pkg install" to reduce build time. FreeBSD cray.acadix bacon ~ 1010: qemu-system-ppc -machine help Supported machines are: bamboo bamboo g3beige Heathrow based PowerMAC (default) mac99 Mac99 based PowerMAC mpc8544ds mpc8544ds none empty machine ppce500 generic paravirt e500 platform prep PowerPC PREP platform ref405ep ref405ep taihu taihu virtex-ml507 Xilinx Virtex ML507 reference design FreeBSD cray.acadix bacon ~ 1011: qemu-system-ppc64 -machine help Supported machines are: bamboo bamboo g3beige Heathrow based PowerMAC mac99 Mac99 based PowerMAC mpc8544ds mpc8544ds none empty machine ppce500 generic paravirt e500 platform prep PowerPC PREP platform pseries-2.1 pSeries Logical Partition (PAPR compliant) pseries-2.2 pSeries Logical Partition (PAPR compliant) pseries-2.3 pSeries Logical Partition (PAPR compliant) pseries-2.4 pSeries Logical Partition (PAPR compliant) pseries-2.5 pSeries Logical Partition (PAPR compliant) pseries pSeries Logical Partition (PAPR compliant) (alias of pseries-2.6) pseries-2.6 pSeries Logical Partition (PAPR compliant) (default) ref405ep ref405ep taihu taihu virtex-ml507 Xilinx Virtex ML507 reference design -- Earth is a beta site. --------------B66E56AEA7773B15A0A397F0 Content-Type: text/plain; charset=UTF-8; name="qemu-ppc64" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="qemu-ppc64" IyEvYmluL3NoIC1lCgojIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIwojICAgU2NyaXB0IGRlc2NyaXB0 aW9uOgojICAgICAgIEluc3RhbGwvYm9vdCBGcmVlQlNELXBvd2VycGMgb24gcWVtdQojICAg ICAgIAojICAgSGlzdG9yeToKIyAgIERhdGUgICAgICAgIE5hbWUgICAgICAgIE1vZGlmaWNh dGlvbgojICAgMjAxOC0wNy0wNyAgSmFzb24gQmFjb24gQmVnaW4KIwojICAgaHR0cHM6Ly93 aWtpLmZyZWVic2Qub3JnL1FlbXVSZWNpcGVzCiMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCgp1c2Fn ZSgpCnsKICAgIHByaW50ZiAiVXNhZ2U6ICQwIGluc3RhbGx8Ym9vdCBkaXNrLWltYWdlIHJh d3xxY293MiBbY2QtaW1hZ2VdXG4iCiAgICBleGl0IDEKfQoKCiMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjCiMgICBNYWluCiMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCgppZiBbICQjIC1sdCAzIF07IHRo ZW4KICAgIHVzYWdlCmZpCgpjbWQ9JDEKZGlza2ltYWdlPSQyCmZvcm1hdD0kMwoKY2FzZSAk Y21kIGluCmluc3RhbGwpCiAgICBjZGltYWdlPSQ0CiAgICBzZXQgLXgKICAgIGlmIFsgISAt ZSAkZGlza2ltYWdlIF07IHRoZW4KCXFlbXUtaW1nIGNyZWF0ZSAtZiAkZm9ybWF0ICRkaXNr aW1hZ2UgMjBnCiAgICBmaQogICAgIyBxZW11LXN5c3RlbS1wcGM2NCAtbm9ncmFwaGljCiAg ICAjIHFlbXUtc3lzdGVtLXBwYzY0IC1tIDIwNDggLW1hY2hpbmUgcHNlcmllcy0yLjUKICAg IHFlbXUtc3lzdGVtLXBwYzY0IC1tYWNoaW5lIHBzZXJpZXMtMi41IFwKCS1jZHJvbSAkY2Rp bWFnZSAtZHJpdmUgZmlsZT0kZGlza2ltYWdlLGZvcm1hdD0kZm9ybWF0IFwKCS1ib290IGQK ICAgIDs7Cgpib290KQogICAgcWVtdS1zeXN0ZW0tcHBjNjQgLW0gMjA0OCAtbWFjaGluZSBw c2VyaWVzLTIuNSBcCgktZHJpdmUgZmlsZT0kZGlza2ltYWdlLGZvcm1hdD0kZm9ybWF0IC1i b290IGMKICAgIDs7CgoqKQogICAgdXNhZ2UKICAgIDs7Cgplc2FjCg== --------------B66E56AEA7773B15A0A397F0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9f96d3ac-ada3-8f41-6c2c-e6fab80e49e9>