Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] "Illegal instruction" problem


  • To: Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
  • Subject: Re: [arm-gnu] "Illegal instruction" problem
  • From: Meng Sun <meng.sun@xxxxxxxxx>
  • Date: Tue, 02 Sep 2008 08:37:53 +0300

Carlos O'Donell 写道:
Meng Sun wrote:
Hi all,

I am using Linux EABI toolchain compiling helloworld.c for TI OMAP5912
(ARM926EJ-S). I'm using following commands:

arm-none-linux-gnueabi-gcc -mcpu=arm926ej-s ./helloworld.c -o ./helloworld

and then copy all files under "libc" to target board's "/cs/" directory.
Then execute the file by specify:

/cs/libc/lib/ld-linux.so.3 --library-path
/cs/libc/lib/:/cs/libc/usr/lib/ ./helloworld

An "Illegal instruction" is shown under command line. What is wrong with
that?

Is your kernel sufficiently new enough?

Please see:
http://www.codesourcery.com/gnu_toolchains/arm/portal/kbentry22

Cheers,
Carlos.
Yes the kernel version is 2.6.22.9.
Another question. If I want to use gnu-eabi toolchain to compile a program for Cortex-A8, which library I should copy to my target board? Or I should compile Glibc again by specify "-mcpu=cortex-a8"?

Thanks,