[asterisk-dev] "Illegal instruction" error from Asterisk on ARM

igor igt1972 at gmail.com
Thu Aug 31 00:51:00 MST 2006


Hi,

I'm trying to make Asterisk (1.2.11) run on a board based on a n ARM core
processor.
On the board a Linux 2.4.20 is currently running.

I can successfully compile Asterisk with my ARM toolchain (arm-linux-gcc
3.2.3) but when
I launch it on my board the only thing I get is:

root at 192.168.0.68:~/igt# asterisk -vvvvvcg
Illegal instruction
root at 192.168.0.68:~/igt#

I googled a bit looking for information about this error but I couldn't find
a real solution.
The only hint about this error was that there could be a compile problem.
But all the files and the modules built during the compile process are

ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.0,
dynamically linked (uses shared libs), for GNU/Linux 2.4.0, not stripped

These are the settings I did for arm cross compiling in the main makefile

CROSS_COMPILE=/usr/local/arm/bin/arm-linux-
CROSS_COMPILE_BIN=/usr/local/arm/bin/
CROSS_COMPILE_TARGET=/usr/local/arm/arm-linux/include
CC=$(CROSS_COMPILE)gcc
HOST_CC=gcc
CROSS_ARCH=Linux
CROSS_PROC=arm
# SUB_PROC=xscale # or maverick

I really don't know how to proceed to have an Asterisk running on my arm
platform.
Any hint or suggestion is really appreciated.
Thanks in advance to everybody,

Igor.

-- 
"Much less doesn't mean zero"
-- E.Benetti --
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20060831/8d77b109/attachment.htm


More information about the asterisk-dev mailing list