Usin AMRV4T in QEMU 1.2.0
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
Signature · 4 lines
************************************************ Lic. Reinier Millo Sánchez Centro de Estudios Informáticos Universidad Central "Marta Abreu" de las Villas
Quoted 8 lines · Reinier Millo Sánchez
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=armv4tTest.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
Quoted 4 lines · Reinier Millo Sánchez
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
Quoted 8 lines
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
Quoted 9 lines
Regards
--
************************************************
Lic. Reinier Millo Sánchez
Centro de Estudios Informáticos
Universidad Central "Marta Abreu" de las Villas
Signature · 1 line
www.skyeye.org
[Qemu-devel] Linux Kernel 2.6.29 in QEMU 1.2.0
In reply to Reinier Millo SánchezHello
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
Signature · 4 lines
************************************************ Lic. Reinier Millo Sánchez Centro de Estudios Informáticos Universidad Central "Marta Abreu" de las Villas