<div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Scott Wood</b> <span dir="ltr"><<a href="mailto:oss@buserror.net">oss@buserror.net</a>></span><br>Date: 2016-06-04 1:23 GMT+01:00<br>Subject: Re: running qemu for powerpc (32bits) architecture<br>To: Marwa Hamza <<a href="mailto:marwahamza63@gmail.com">marwahamza63@gmail.com</a>>, <a href="mailto:linuxppc-dev@lists.ozlabs.org">linuxppc-dev@lists.ozlabs.org</a><br><br><br><span class="">On Mon, 2016-05-30 at 10:04 +0100, Marwa Hamza wrote:<br>
> hello everyone<br>
> I'm trying to run qemu for powerpc architecture but either<br>
> 1/ i got a black screen with this sentence " QEMU 2.4.0.1 monitor - type<br>
> help for more information"<br>
>                        (QEMU)<br>
> if i run this command ./ppc-softmmu/qemu-system-ppc -M ppce500 -kernel<br>
> ../linux-4.4.1/arch/powerpc/boot/zImage -initrd powerpc/busybox<br>
> -1.21.0/rootfs.img.gz -append "root=/dev/ram rdinit=/bin/sh"<br>
<br>
</span>I can't help with the other platforms, but for ppce500, make sure you have<br>
CONFIG_PPC_QEMU_E500 enabled in the kernel (and that it's an e500 build, of<br>
course), pass either uImage or vmlinux (not zImage) to -kernel, and specify<br>
the desired cpu type on the QEMU command line (using -cpu) to match the type<br>
of kernel you built.  I recommend using e500mc rather than older e500 because<br>
then you get standard floating point which your RFS may depend on.<br>
<br>
Also note that this target will have a serial port for output, not a display,<br>
so configure QEMU appropriately with -serial for how you want to access that.<br>
<br>
If you need more help (especially with other PPC platforms) I suggest the<br>
<a href="mailto:qemu-ppc@nongnu.org">qemu-ppc@nongnu.org</a> mailing list.<br>
<span class=""><font color="#888888"><br>
-Scott<br>
<br>
<br>
</font></span></div><br><div><div><div><div><div>hey<br></div>i tried what you said, <br>./ppc-softmmu/qemu-system-ppc
 -M ppce500 -kernel /home/powerpc/linux-4.4.1/vmlinux -initrd 
/home/busybox-1.21.0/rootfs.img.gz -append "root=/dev/ram 
console=ttyAMA0 rdinit=/sbin/init" -serial stdio -cpu e500mc<br></div>an error displayed Qemu can't load kernel vmlinux <br></div>other
 thing i didn't understand how i made sure that CONFIG_PPC_QEMU_E500 
enabled in the kernel, what is the default configuration should i use? 
what's the e500 build ? <br></div>regards<br></div>marwa</div>