Fwd: running qemu for powerpc (32bits) architecture

2016-06-05 Thread Marwa Hamza
-- Forwarded message --
From: Scott Wood <o...@buserror.net>
Date: 2016-06-04 1:23 GMT+01:00
Subject: Re: running qemu for powerpc (32bits) architecture
To: Marwa Hamza <marwahamz...@gmail.com>, 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-...@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
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: running qemu for powerpc (32bits) architecture

2016-06-03 Thread Scott Wood
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-...@nongnu.org mailing list.

-Scott


___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

running qemu for powerpc (32bits) architecture

2016-05-30 Thread Marwa Hamza
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=0x01878dfc, addr=0x01579000)
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
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev