[asterisk-users] Zaptel-1.4.1 error cross compile

Satish Patel satish at linuxbug.org
Sun Oct 5 17:33:33 CDT 2008


Regards,

Satish Patel


Quoting Tzafrir Cohen <tzafrir.cohen at xorcom.com>:

> On Sun, Oct 05, 2008 at 11:28:47AM -0400, satish patel wrote:
>>
>>
>>
>>
>>  >> Hello.
>>  >> Have you ever tried updating your GCC version?
>>  >> Thanks.
>>
>> I am using cross compile so i can't update GCC other wise it will effect on
>> my other packages anyway... tell me one thing i have host system kernel
>> version is 2.6.18 and i am compiling ARM embedded rootbuild with other
>> kernel version 2.6.22 so i need to compile my zaptel package with 2.6.22
>> kernel caz i will use it on target ARM hardware ( IXP425 ). I am doing that
>> but after porting rootfs on target host and when i run "insmod zaptel"
>> command on target board i got error
>>
>> root#insmod zaptel
>> insmod: cannot insert '/lib/modules/2.6.22.6/misc/zaptel.ko' : Invalid
>> module formate  (-1): Exec format error
>
> And what is the format of that file?
>
>   file /lib/modules/2.6.22.6/misc/zaptel.ko
>
> (run that either on your board or on the build system, before copying)
>

clfs:/mnt/clfs$ file lib/modules/2.6.22.6/misc/zaptel.ko
lib/modules/2.6.22.6/misc/zaptel.ko: ELF 32-bit MSB relocatable, ARM,  
version 1, not stripped

i dont know why this error coming i think its caz confusion between  
host kernel and target kernel






More information about the asterisk-users mailing list