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

Tim Panton tim at mexuar.com
Thu Aug 31 04:57:19 MST 2006


On 31 Aug 2006, at 08:51, igor wrote:

> 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,
>
>


I've got an older asterisk running fine:
slug*CLI> show version
Asterisk 1.0.10 built by root at slug on a armv5teb running Linux

So it is possible (at least on my arm variant)!

I had a similar problem to yours untill I stripped the asterisk
config (especially the modules) down to the minimum I need and
then it stopped crashing.


Tim Panton

www.mexuar.com






More information about the asterisk-dev mailing list