qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Usin AMRV4T in QEMU 1.2.0
@ 2012-11-06 15:55 Reinier Millo Sánchez
  2012-11-06 19:24 ` Peter Maydell
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Reinier Millo Sánchez @ 2012-11-06 15:55 UTC (permalink / raw)
  To: QEMU Development

Hello
I'm trying to use ARMV4T in QEMU 1.2.0. I want emulate a pure ARMV4T 
with ARM920T core. I have modified the sources in target-arm and 
compiled a Hello World application for core ARM920T in ARMV4t arch using 
the arm-linux-gnueabi-gcc compiler provided by Ubuntu for cross compile 
(arm-linux-gnueabi-gcc -o Test -mcpu=arm920t -march=armv4t 
-Wa,-mcpu=arm920t -Wa,-march=armv4t Test.c). When I execute it, in user 
mode using qemu-arm, it crash executing a long branch with link 
(1111100011011111).
Making a dump of the app using arm-linux-gnueabi-objdump i have found 
that appear some BLX instructions that belongs to ARM5 and above.
If some body can help me, know how to port pure ARMV4T in QEMU 1.2.0 or 
can recommend me some references.
Regards

-- 
************************************************
Lic. Reinier Millo Sánchez
Centro de Estudios Informáticos
Universidad Central "Marta Abreu" de las Villas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Usin AMRV4T in QEMU 1.2.0
  2012-11-06 15:55 [Qemu-devel] Usin AMRV4T in QEMU 1.2.0 Reinier Millo Sánchez
@ 2012-11-06 19:24 ` Peter Maydell
  2012-11-08 11:23 ` Michael.Kang
  2012-11-10 15:47 ` [Qemu-devel] Linux Kernel 2.6.29 " Reinier Millo Sánchez
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2012-11-06 19:24 UTC (permalink / raw)
  To: Reinier Millo Sánchez; +Cc: QEMU Development

On 6 November 2012 16:55, Reinier Millo Sánchez <rmillo@uclv.cu> wrote:
> Hello
> I'm trying to use ARMV4T in QEMU 1.2.0. I want emulate a pure ARMV4T with
> ARM920T core. I have modified the sources in target-arm and compiled a Hello
> World application for core ARM920T in ARMV4t arch using the
> arm-linux-gnueabi-gcc compiler provided by Ubuntu for cross compile
> (arm-linux-gnueabi-gcc -o Test -mcpu=arm920t -march=armv4t -Wa,-mcpu=arm920t
> -Wa,-march=armv4t Test.c). When I execute it, in user mode using qemu-arm,
> it crash executing a long branch with link (1111100011011111).

(1) The Ubuntu cross toolchain does not support compiling for pre-v7
targets -- it doesn't have a v4t-only libgcc, only a v7 one, so when
that is linked into your binary then it will not work on a v4t target.
You'll need to find a different cross compiler which does support
targeting v4T. (Maybe the debian or codesourcery ones??)

(2) QEMU doesn't support emulating the ARM920T.

-- PMM

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Usin AMRV4T in QEMU 1.2.0
  2012-11-06 15:55 [Qemu-devel] Usin AMRV4T in QEMU 1.2.0 Reinier Millo Sánchez
  2012-11-06 19:24 ` Peter Maydell
@ 2012-11-08 11:23 ` Michael.Kang
  2012-11-10 15:47 ` [Qemu-devel] Linux Kernel 2.6.29 " Reinier Millo Sánchez
  2 siblings, 0 replies; 4+ messages in thread
From: Michael.Kang @ 2012-11-08 11:23 UTC (permalink / raw)
  To: Reinier Millo Sánchez; +Cc: QEMU Development

On Tue, Nov 6, 2012 at 11:55 PM, Reinier Millo Sánchez <rmillo@uclv.cu> wrote:
> Hello
> I'm trying to use ARMV4T in QEMU 1.2.0. I want emulate a pure ARMV4T with
> ARM920T core. I have modified the sources in target-arm and compiled a Hello
> World application for core ARM920T in ARMV4t arch using the
> arm-linux-gnueabi-gcc compiler provided by Ubuntu for cross compile
> (arm-linux-gnueabi-gcc -o Test -mcpu=arm920t -march=armv4t -Wa,-mcpu=arm920t
> -Wa,-march=armv4t Test.c). When I execute it, in user mode using qemu-arm,
> it crash executing a long branch with link (1111100011011111).
> Making a dump of the app using arm-linux-gnueabi-objdump i have found that
> appear some BLX instructions that belongs to ARM5 and above.
> If some body can help me, know how to port pure ARMV4T in QEMU 1.2.0 or can
> recommend me some references.

I recommend to you SkyEye project(www.skyeye.org).

Thanks
MK

> Regards
>
> --
> ************************************************
> Lic. Reinier Millo Sánchez
> Centro de Estudios Informáticos
> Universidad Central "Marta Abreu" de las Villas
>
>



-- 
www.skyeye.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Qemu-devel] Linux Kernel 2.6.29 in QEMU 1.2.0
  2012-11-06 15:55 [Qemu-devel] Usin AMRV4T in QEMU 1.2.0 Reinier Millo Sánchez
  2012-11-06 19:24 ` Peter Maydell
  2012-11-08 11:23 ` Michael.Kang
@ 2012-11-10 15:47 ` Reinier Millo Sánchez
  2 siblings, 0 replies; 4+ messages in thread
From: Reinier Millo Sánchez @ 2012-11-10 15:47 UTC (permalink / raw)
  To: QEMU Development

Hello
I'm trying to test linux kernel 2.6.29 for ARM in qemu. Iḿ using 
qemu1.2.0, compiled with command
./configure --disable-sdl --disable-kvm 
--target-list=arm-linux-user,arm-softmmu
sudo make install
I have compiled the kernel with Versatile configuration
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- versatile_defconfig
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- -j 2 all
When i try to test it with qemu it produce an error
qemu-system-arm -M versatilepb -m 128M -kernel arch/arm/boot/zImage

oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
audio: Failed to create voice `lm4549.out'
VNC server running on `127.0.0.1:5900'
pflash_write: Unimplemented flash cmd sequence (offset 0000000000000000, 
wcycle 0x0 cmd 0x0 value 0xf000f0)
pflash_write: Unimplemented flash cmd sequence (offset 0000000000000000, 
wcycle 0x0 cmd 0x0 value 0xf0)

And stay there. I have test use some tutorials but nothing. Some body 
can explain me how do it?
Regards

-- 
************************************************
Lic. Reinier Millo Sánchez
Centro de Estudios Informáticos
Universidad Central "Marta Abreu" de las Villas

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-10 15:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-06 15:55 [Qemu-devel] Usin AMRV4T in QEMU 1.2.0 Reinier Millo Sánchez
2012-11-06 19:24 ` Peter Maydell
2012-11-08 11:23 ` Michael.Kang
2012-11-10 15:47 ` [Qemu-devel] Linux Kernel 2.6.29 " Reinier Millo Sánchez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).