running qemu for powerpc (32bits) architecture

3 messages, 2 authors, 2016-06-05 · open the first message on its own page

running qemu for powerpc (32bits) architecture

From: Marwa Hamza <hidden>
Date: 2016-05-30 09:04:26

hello everyone
I'm trying to run qemu for powerpc architecture but either
*1/* i got a black screen with this sentence " QEMU 2.4.0.1 monitor - type
help for more information"
                       (QEMU)
if i run this command ./ppc-softmmu/qemu-system-ppc -M ppce500 -kernel
../linux-4.4.1/arch/powerpc/boot/zImage -initrd
powerpc/busybox-1.21.0/rootfs.img.gz -append "root=/dev/ram rdinit=/bin/sh"
*2/* or i got this error "rom: requested regions overlap (rom
/home/marwa/Bureau/lauterbach/powerpc/busybox-1.21.0/rootfs.img.gz.
free=0x0000000001878dfc, addr=0x0000000001579000)
rom check and register reset failed " if i run this command
./ppc-softmmu/qemu-system-ppc -M mac99 -kernel
/home/marwa/Bureau/lauterbach/powerpc/linux-4.4.1/arch/powerpc/boot/zImage
-initrd /home/marwa/Bureau/lauterbach/powerpc/busybox-1.21.0/rootfs.img.gz
-append "root=/dev/ram rdinit=/bin/sh"
*3/* or i got this error
qemu-system-ppc: Could not load PowerPC BIOS 'ppc405_rom.bin'
when i run this command
./ppc-softmmu/qemu-system-ppc -M ref405ep -kernel
/home/marwa/Bureau/lauterbach/powerpc/linux-4.4.1/arch/powerpc/boot/zImage
-initrd /home/marwa/Bureau/lauterbach/powerpc/busybox-1.21.0/rootfs.img.gz
-append "root=/dev/ram rdinit=/bin/sh"

and i have tried all machines available for powerpc in qemu but i got
always one of those three result , i could't access to the file system

any suggestion please
regards,
Marwa

Re: running qemu for powerpc (32bits) architecture

From: Scott Wood <oss@buserror.net>
Date: 2016-06-04 00:23:05

On Mon, 2016-05-30 at 10:04 +0100, Marwa Hamza wrote:
hello everyone
I'm trying to run qemu for powerpc architecture but either
1/ i got a black screen with this sentence " QEMU 2.4.0.1 monitor - type
help for more information"
                       (QEMU)
if i run this command ./ppc-softmmu/qemu-system-ppc -M ppce500 -kernel
../linux-4.4.1/arch/powerpc/boot/zImage -initrd powerpc/busybox
-1.21.0/rootfs.img.gz -append "root=/dev/ram rdinit=/bin/sh"
I can't help with the other platforms, but for ppce500, make sure you have
CONFIG_PPC_QEMU_E500 enabled in the kernel (and that it's an e500 build, of
course), pass either uImage or vmlinux (not zImage) to -kernel, and specify
the desired cpu type on the QEMU command line (using -cpu) to match the type
of kernel you built.  I recommend using e500mc rather than older e500 because
then you get standard floating point which your RFS may depend on.

Also note that this target will have a serial port for output, not a display,
so configure QEMU appropriately with -serial for how you want to access that.

If you need more help (especially with other PPC platforms) I suggest the 
qemu-ppc@nongnu.org mailing list.

-Scott

Fwd: running qemu for powerpc (32bits) architecture

From: Marwa Hamza <hidden>
Date: 2016-06-05 11:32:17

---------- Forwarded message ----------
From: Scott Wood <oss@buserror.net>
Date: 2016-06-04 1:23 GMT+01:00
Subject: Re: running qemu for powerpc (32bits) architecture
To: Marwa Hamza <redacted>, linuxppc-dev@lists.ozlabs.org


On Mon, 2016-05-30 at 10:04 +0100, Marwa Hamza wrote:
hello everyone
I'm trying to run qemu for powerpc architecture but either
1/ i got a black screen with this sentence " QEMU 2.4.0.1 monitor - type
help for more information"
                       (QEMU)
if i run this command ./ppc-softmmu/qemu-system-ppc -M ppce500 -kernel
../linux-4.4.1/arch/powerpc/boot/zImage -initrd powerpc/busybox
-1.21.0/rootfs.img.gz -append "root=/dev/ram rdinit=/bin/sh"
I can't help with the other platforms, but for ppce500, make sure you have
CONFIG_PPC_QEMU_E500 enabled in the kernel (and that it's an e500 build, of
course), pass either uImage or vmlinux (not zImage) to -kernel, and specify
the desired cpu type on the QEMU command line (using -cpu) to match the type
of kernel you built.  I recommend using e500mc rather than older e500
because
then you get standard floating point which your RFS may depend on.

Also note that this target will have a serial port for output, not a
display,
so configure QEMU appropriately with -serial for how you want to access
that.

If you need more help (especially with other PPC platforms) I suggest the
qemu-ppc@nongnu.org mailing list.

-Scott



hey
i tried what you said,
./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
an error displayed Qemu can't load kernel vmlinux
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 ?
regards
marwa
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help