All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Huth <huth@tuxfamily.org>
To: Christian Zigotzky <chzigotzky@xenosoft.de>
Cc: qemu-ppc@nongnu.org, Greg Kurz <groug@kaod.org>,
	"kvm-ppc@vger.kernel.org" <kvm-ppc@vger.kernel.org>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-ppc] [PPC64] P5020DS: Booting from img possible (-drive)?
Date: Sat, 19 May 2018 17:19:49 +0200	[thread overview]
Message-ID: <20180519171949.0031d971@thl530.multi.box> (raw)
In-Reply-To: <7d552162-5165-c022-ce6d-4903da7d2262@xenosoft.de>

Am Sat, 19 May 2018 16:03:02 +0200
schrieb Christian Zigotzky <chzigotzky@xenosoft.de>:

> On 19 May 2018 at 08:15AM, Thomas Huth wrote:
> > On 19.05.2018 06:58, Christian Zigotzky wrote:  
> >> Thomas wrote:
> >>  
> >>> No clue, so just a blind guess: Is "CoreNet Generic" the right
> >>> machine? What happens if you set "CONFIG_CORENET_GENERIC=n" in
> >>> your kernel config?  
> >> I think it‘s the right machine.  
> > It's likely the right selection for the real hardware, but it's
> > maybe the wrong machine type for the QEMU ppce500 machine.
> >
> >   Thomas
> >  
> Hello Thomas,
> 
> Thanks for your reply. I compiled the RC5 of kernel 4.17 without
> corenet generic support today. ubuntu MATE 16.04 LTS PowerPC
> boots!!!!!!!!!

Cool! :-)

> With the following command I can boot it with a VirtIO graphics cards.
> 
> qemu-system-ppc64 -M ppce500 -cpu e5500 -m 2048 -kernel 
> /home/christian/Downloads/uImage-4.17-without_corenet -drive 
> file=/home/christian/Dokumente/ubuntu_MATE_16.04.3_LTS_PowerPC_QEMU/ubuntu_MATE_16.04_PowerPC.img,index=0,if=virtio 
> -net nic,vlan=0,model=e1000 -net user,vlan=0 -append "rw
> root=/dev/vda3" -device virtio-vga

Note that "vlan=0" won't work with the next version (2.13) of QEMU
anymore. But since that's the default, you can simply omit that
"vlan=0" in both -net options. Or if you are using the latest and
greatest QEMU v2.12 already, you can also use "-nic user,model=e1000"
instead.

> Unfortunately mouse and keyboard doesn't work in the virtual machine.

I guess with the ppce500 machine, you've also got to specify them
manually, too. You've got two options, virtio and USB. For virtio, try:

 -device virtio-mouse-pci -device virtio-keyboard-pci

And for USB, try something like:

 -device qemu-xhci -device usb-mouse -device usb-kbd

If "qemu-xhci" does not work, you could also try "pci-ohci" instead.

 HTH,
  Thomas

WARNING: multiple messages have this Message-ID (diff)
From: Thomas Huth <huth@tuxfamily.org>
To: Christian Zigotzky <chzigotzky@xenosoft.de>
Cc: qemu-ppc@nongnu.org, Greg Kurz <groug@kaod.org>,
	"kvm-ppc@vger.kernel.org" <kvm-ppc@vger.kernel.org>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-ppc] [Qemu-devel] [PPC64] P5020DS: Booting from img possible (-drive)?
Date: Sat, 19 May 2018 15:19:49 +0000	[thread overview]
Message-ID: <20180519171949.0031d971@thl530.multi.box> (raw)
In-Reply-To: <7d552162-5165-c022-ce6d-4903da7d2262@xenosoft.de>

Am Sat, 19 May 2018 16:03:02 +0200
schrieb Christian Zigotzky <chzigotzky@xenosoft.de>:

> On 19 May 2018 at 08:15AM, Thomas Huth wrote:
> > On 19.05.2018 06:58, Christian Zigotzky wrote:  
> >> Thomas wrote:
> >>  
> >>> No clue, so just a blind guess: Is "CoreNet Generic" the right
> >>> machine? What happens if you set "CONFIG_CORENET_GENERIC=n" in
> >>> your kernel config?  
> >> I think it‘s the right machine.  
> > It's likely the right selection for the real hardware, but it's
> > maybe the wrong machine type for the QEMU ppce500 machine.
> >
> >   Thomas
> >  
> Hello Thomas,
> 
> Thanks for your reply. I compiled the RC5 of kernel 4.17 without
> corenet generic support today. ubuntu MATE 16.04 LTS PowerPC
> boots!!!!!!!!!

Cool! :-)

> With the following command I can boot it with a VirtIO graphics cards.
> 
> qemu-system-ppc64 -M ppce500 -cpu e5500 -m 2048 -kernel 
> /home/christian/Downloads/uImage-4.17-without_corenet -drive 
> file=/home/christian/Dokumente/ubuntu_MATE_16.04.3_LTS_PowerPC_QEMU/ubuntu_MATE_16.04_PowerPC.img,index=0,if=virtio 
> -net nic,vlan=0,modelá000 -net user,vlan=0 -append "rw
> root=/dev/vda3" -device virtio-vga

Note that "vlan=0" won't work with the next version (2.13) of QEMU
anymore. But since that's the default, you can simply omit that
"vlan=0" in both -net options. Or if you are using the latest and
greatest QEMU v2.12 already, you can also use "-nic user,modelá000"
instead.

> Unfortunately mouse and keyboard doesn't work in the virtual machine.

I guess with the ppce500 machine, you've also got to specify them
manually, too. You've got two options, virtio and USB. For virtio, try:

 -device virtio-mouse-pci -device virtio-keyboard-pci

And for USB, try something like:

 -device qemu-xhci -device usb-mouse -device usb-kbd

If "qemu-xhci" does not work, you could also try "pci-ohci" instead.

 HTH,
  Thomas

  reply	other threads:[~2018-05-19 15:20 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-18  6:01 [Qemu-devel] [PPC64] P5020DS: Booting from img possible (-drive)? Christian Zigotzky
2018-05-18  6:01 ` Christian Zigotzky
2018-05-18  8:54 ` [Qemu-devel] " Thomas Huth
2018-05-18  8:54   ` Thomas Huth
2018-05-18  9:06   ` Christian Zigotzky
2018-05-18  9:24     ` Thomas Huth
2018-05-18  9:24       ` Thomas Huth
2018-05-18 10:30       ` Christian Zigotzky
2018-05-18 10:30         ` Christian Zigotzky
2018-05-18 11:13         ` Greg Kurz
2018-05-18 11:13           ` Greg Kurz
2018-05-18 11:50           ` Christian Zigotzky
2018-05-18 12:16             ` Greg Kurz
2018-05-18 12:16               ` Greg Kurz
2018-05-18 12:33               ` Christian Zigotzky
2018-05-18 12:33                 ` Christian Zigotzky
2018-05-18 13:38                 ` Christian Zigotzky
2018-05-18 13:38                   ` Christian Zigotzky
2018-05-18 14:03                   ` Greg Kurz
2018-05-18 14:03                     ` Greg Kurz
2018-05-18 16:47                 ` Thomas Huth
2018-05-18 16:47                   ` Thomas Huth
2018-05-19  4:58                   ` Christian Zigotzky
2018-05-19  4:58                     ` Christian Zigotzky
2018-05-19  6:15                     ` [Qemu-devel] [Qemu-ppc] " Thomas Huth
2018-05-19  6:15                       ` [Qemu-ppc] [Qemu-devel] " Thomas Huth
2018-05-19 14:03                       ` [Qemu-devel] [Qemu-ppc] " Christian Zigotzky
2018-05-19 14:03                         ` [Qemu-ppc] [Qemu-devel] " Christian Zigotzky
2018-05-19 15:19                         ` Thomas Huth [this message]
2018-05-19 15:19                           ` Thomas Huth
2018-05-20 18:51                           ` [Qemu-devel] [Qemu-ppc] " Christian Zigotzky
2018-05-20 18:51                             ` [Qemu-ppc] [Qemu-devel] " Christian Zigotzky
2018-05-23 10:31                           ` [Qemu-devel] [Qemu-ppc] " Christian Zigotzky
2018-05-23 10:31                             ` [Qemu-ppc] [Qemu-devel] " Christian Zigotzky
2018-05-18  9:13   ` Christian Zigotzky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180519171949.0031d971@thl530.multi.box \
    --to=huth@tuxfamily.org \
    --cc=chzigotzky@xenosoft.de \
    --cc=groug@kaod.org \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.