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: Meng Sun <meng.sun@xxxxxxxxx>
  • Subject: Re: [arm-gnu] "Illegal instruction" problem
  • From: Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
  • Date: Mon, 01 Sep 2008 12:41:51 -0400

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.
--
Carlos O'Donell
CodeSourcery
carlos@xxxxxxxxxxxxxxxx
(650) 331-3385 x716