Hi,
I am trying to cross compile valgrind to run on a 16-/32-bit RISC ARM920T CPU core target running Linux with a 2.6.28.10 kernel. From the ARM documentation, it looks like the architecture is ARMv4T, but output of uname -a command shows armv4tl (see below).

*Could someone please tell me if that is possible for valgrind to run on an ARM920T with the current valgrind releases? *

I have tried valgrind releases 3.8.0 and 3.8.1. I am cross compiling on a x86 machine running Fedora Core 12 Linux. I've got valgrind to compile but when I run it on the ARM920T I get illegal instruction (with ./configure --host=armv7-unknown-linux )

Another attempt (with -mcpu=cortex-a8 -mtune=arm920t ) I get Segmentation fault output from strace as below:
#strace ./memcheck-arm-linux
execve("./memcheck-arm-linux", ["./memcheck-arm-linux"], [/* 12 vars */]) = 0
open("/proc/self/maps", O_RDONLY)       = 941954700
--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0} ---
+++ killed by SIGSEGV +++
Segmentation fault
#

If I try to compile with -mcpu=arm920t, I get errors from assembler about unsupported mov and other instructions.

It looks like the configure script expects some environment variables to be set beforehand for cross tools such as C compiler, assembler, linker, lib archive, etc. Not positive I set those correctly, couldn't find doc anywhere on that. If somebody has list of those environment variables and what they are for that would be great too.

Other info from output of the following commands:
target# cat /proc/cpuinfo
Processor    : ARM920T rev 0 (v4l)
BogoMIPS    : 266.24
Features    : swp half
CPU implementer    : 0x41
CPU architecture: 4T
CPU variant    : 0x1
CPU part    : 0x920
CPU revision    : 0

Hardware    : ConnectCore 9M 2443 on a JSCC9M2443 Devboard
Revision    : 0000
Serial        : 0000000000000000

target# uname -a
Linux cc9m2443js 2.6.28.10 #35 Thu Sep 6 14:19:14 EDT 2012 armv4tl GNU/Linux

If valgrind not possible, if anyone knows of any other analysis/profiling tools that will work on the ARM920T that info would be greatly appreciated too.

Thanks in advance,

Steve

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to