Compiling a kernel module for Voyage 0.6

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling a kernel module for Voyage 0.6

benny.tops
Hi,

I'm trying to update the Sierra Wireless USB driver for kernel 2.6.26 in Voyage Version: 0.6 (Build Date 20090708) and I get an 'Invalid module format' error.

This is what I do after a clean installation of Voyage 0.6:
- download http://fr.voyage.hk/dists/0.6/linux/linux-headers-2.6.26-voyage_6.0-2_i386.deb and install it using dpkg -i <package name>. This installs the package in /usr/src/linux-headers-2.6.26-voyage
- make sierra.c. The make file points to /usr/src/linux-headers-2.6.26-voyage for the kernel headers; build is successful
- when I try to install sierra.ko, I get this error message:
[ 1693.833588] sierra: version magic '2.6.26-voyage preempt mod_unload 486 ' should be '2.6.26-486-voyage preempt mod_unload 486 '
FATAL: Error inserting sierra (/lib/modules/2.6.26-486-voyage/kernel/drivers/usb/serial/sierra.ko): Invalid module format

modinfo sierra returns 'vermagic:       2.6.26-voyage preempt mod_unload 486'
uname -r returns '2.6.26-486-voyage'

Do I use the wrong kernel headers (can't find another package ...)? Do I make a mistake somewhere?

Thanks in advance,

Benny



_______________________________________________
Voyage-linux mailing list
[hidden email]
http://list.voyage.hk/mailman/listinfo/voyage-linux
Reply | Threaded
Open this post in threaded view
|

RE: Compiling a kernel module for Voyage 0.6

Robbert

Hi Benny,

 

Last time I got similar problem, please check this link:

http://www.mail-archive.com/voyage-linux@.../msg03290.html

 

Although I have installed the module successfully, it didn’t work properly, lots of error popup when you plug in the modem. I have to change back to Voyage 0.5 in the end.

 

Robbert

 


From: voyage-linux-bounces+rma=vmsys.com@list.voyage.hk [mailto:voyage-linux-bounces+rma=vmsys.com@list.voyage.hk] On Behalf Of [hidden email]
Sent: Tuesday, December 08, 2009 4:11 AM
To: voyage-li[hidden email]
Subject: [Voyage-linux] Compiling a kernel module for Voyage 0.6

 

Hi,

I'm trying to update the Sierra Wireless USB driver for kernel 2.6.26 in Voyage Version: 0.6 (Build Date 20090708) and I get an 'Invalid module format' error.

This is what I do after a clean installation of Voyage 0.6:
- download http://fr.voyage.hk/dists/0.6/linux/linux-headers-2.6.26-voyage_6.0-2_i386.deb and install it using dpkg -i <package name>. This installs the package in /usr/src/linux-headers-2.6.26-voyage
- make sierra.c. The make file points to /usr/src/linux-headers-2.6.26-voyage for the kernel headers; build is successful
- when I try to install sierra.ko, I get this error message:
[ 1693.833588] sierra: version magic '2.6.26-voyage preempt mod_unload 486 ' should be '2.6.26-486-voyage preempt mod_unload 486 '
FATAL: Error inserting sierra (/lib/modules/2.6.26-486-voyage/kernel/drivers/usb/serial/sierra.ko): Invalid module format

modinfo sierra returns 'vermagic:       2.6.26-voyage preempt mod_unload 486'
uname -r returns '2.6.26-486-voyage'

Do I use the wrong kernel headers (can't find another package ...)? Do I make a mistake somewhere?

Thanks in advance,

Benny

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.426 / Virus Database: 270.14.96/2549 - Release Date: 12/06/09 19:37:00


_______________________________________________
Voyage-linux mailing list
[hidden email]
http://list.voyage.hk/mailman/listinfo/voyage-linux
Reply | Threaded
Open this post in threaded view
|

Re: Compiling a kernel module for Voyage 0.6

Punky Tse-2
In reply to this post by benny.tops
Hi Benny,

Meanwhile, please change UTS_RELEASE to "2.6.26-486-voyage" in
/usr/src/linux-headers-2.6.26-voyage/include/linux/utsrelease.h.

I will repackage it for correct version.

Regards,
Punky


[hidden email] wrote:

> Hi,
>
> I'm trying to update the Sierra Wireless USB driver for kernel 2.6.26
> in Voyage Version: 0.6 (Build Date 20090708) and I get an 'Invalid
> module format' error.
>
> This is what I do after a clean installation of Voyage 0.6:
> - download
> http://fr.voyage.hk/dists/0.6/linux/linux-headers-2.6.26-voyage_6.0-2_i386.deb 
> and install it using dpkg -i <package name>. This installs the package
> in /usr/src/linux-headers-2.6.26-voyage
> - make sierra.c. The make file points to
> /usr/src/linux-headers-2.6.26-voyage for the kernel headers; build is
> successful
> - when I try to install sierra.ko, I get this error message:
> [ 1693.833588] sierra: version magic '2.6.26-voyage preempt mod_unload
> 486 ' should be '2.6.26-486-voyage preempt mod_unload 486 '
> FATAL: Error inserting sierra
> (/lib/modules/2.6.26-486-voyage/kernel/drivers/usb/serial/sierra.ko):
> Invalid module format
>
> modinfo sierra returns 'vermagic:       2.6.26-voyage preempt
> mod_unload 486'
> uname -r returns '2.6.26-486-voyage'
>
> Do I use the wrong kernel headers (can't find another package ...)? Do
> I make a mistake somewhere?
>
> Thanks in advance,
>
> Benny
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Voyage-linux mailing list
> [hidden email]
> http://list.voyage.hk/mailman/listinfo/voyage-linux
>  


--
Regards,
Punky

Voyage Solutions (http://solution.voyage.hk)
* Embedded Solutions and Systems
  - Mesh Networking, Captive Portal, IP Surveillance, VoIP/PBX
  - Network Engineering, Development Platform and Consultation
 
       


_______________________________________________
Voyage-linux mailing list
[hidden email]
http://list.voyage.hk/mailman/listinfo/voyage-linux
Reply | Threaded
Open this post in threaded view
|

Re: Compiling a kernel module for Voyage 0.6

Punky Tse-2
And this file as well:

/usr/src/linux-headers-2.6.26-voyage/include/config/kernel.release


Kim-man 'Punky' TSE wrote:

> Hi Benny,
>
> Meanwhile, please change UTS_RELEASE to "2.6.26-486-voyage" in
> /usr/src/linux-headers-2.6.26-voyage/include/linux/utsrelease.h.
>
> I will repackage it for correct version.
>
> Regards,
> Punky
>
>
> [hidden email] wrote:
>> Hi,
>>
>> I'm trying to update the Sierra Wireless USB driver for kernel 2.6.26
>> in Voyage Version: 0.6 (Build Date 20090708) and I get an 'Invalid
>> module format' error.
>>
>> This is what I do after a clean installation of Voyage 0.6:
>> - download
>> http://fr.voyage.hk/dists/0.6/linux/linux-headers-2.6.26-voyage_6.0-2_i386.deb 
>> and install it using dpkg -i <package name>. This installs the
>> package in /usr/src/linux-headers-2.6.26-voyage
>> - make sierra.c. The make file points to
>> /usr/src/linux-headers-2.6.26-voyage for the kernel headers; build is
>> successful
>> - when I try to install sierra.ko, I get this error message:
>> [ 1693.833588] sierra: version magic '2.6.26-voyage preempt
>> mod_unload 486 ' should be '2.6.26-486-voyage preempt mod_unload 486 '
>> FATAL: Error inserting sierra
>> (/lib/modules/2.6.26-486-voyage/kernel/drivers/usb/serial/sierra.ko):
>> Invalid module format
>>
>> modinfo sierra returns 'vermagic:       2.6.26-voyage preempt
>> mod_unload 486'
>> uname -r returns '2.6.26-486-voyage'
>>
>> Do I use the wrong kernel headers (can't find another package ...)?
>> Do I make a mistake somewhere?
>>
>> Thanks in advance,
>>
>> Benny
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Voyage-linux mailing list
>> [hidden email]
>> http://list.voyage.hk/mailman/listinfo/voyage-linux
>>  
>
>


--
Regards,
Punky

Voyage Solutions (http://solution.voyage.hk)
* Embedded Solutions and Systems
  - Mesh Networking, Captive Portal, IP Surveillance, VoIP/PBX
  - Network Engineering, Development Platform and Consultation
 
       


_______________________________________________
Voyage-linux mailing list
[hidden email]
http://list.voyage.hk/mailman/listinfo/voyage-linux