How to recompile moxa serial driver?


Forum: Other Help Topics
Topic: How to recompile moxa serial driver?
started by: jtm

Posted by jtm on Jan. 24 2006,20:51
I am running DSL on a device with a moxa CP-132 UL V2 RS485 card. It seems that the moxa driver that is in DSL (mxser v1.2.1) doesn't support this fairly new card. I've a new version of mxser, v 1.8, on CD. But when I recompile and install it on my DSL box I got the message:

mxser.o: kernel-module version mismatch
       mxser.o was compiled for kernel version 2.4.26
       while this kernel is version 2.4.31.

I installed the kernel-headers (and sources) throug the myDSL GUI.

Does anyone know how I could get the kernel headers for kernel 2.4.31?

Regards,
Theo

Posted by cbagger01 on Jan. 25 2006,18:05
Make sure you use the latest kernel source extension for DSL versions 2.x (linux 2.4.31).

DSL versions 0.8 through 1.5 use the older kernel 2.4.26

So you can either recompile with the newer kernel sources, or you can use DSL 1.5 with your already-compiled module.

Posted by jtm on Jan. 26 2006,10:08
Thanks for your reply!

I finally managed to get the driver compiled for kernel 2.4.31. It was hard to find the right kernel sources. The standard myDSL mirror (ftp://ibiblio.org/pub/Linux/distributions/damnsmall/mydsl/system/) only hold the kernel sources for Linux 2.4.26. On the http-version of that mirror (http://distro.ibiblio.org/pub/linux/distributions/damnsmall/current/) I found the latest sources.

Why is the standard extension pointing to an old version?

And why do I need the kernel sources for recompiling a kernel module? Normally the kernel-headers should be enough. But the kernel headers have version 2.6.0-test7. Are there no kernel-headers available for version 2.4.26? The kernel sources are taking up 190MB of disk space, not really "Damn small"!

Regards,
Theo

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.