Re: compiling modules after 2.4.* --> 2.6.0 upgrade

From: Erik Mouw
Date: Tue Dec 23 2003 - 11:27:07 EST


On Tue, Dec 23, 2003 at 02:20:06AM -0600, Ben Srour wrote:
> I'm attempting to port a module I wrote for the 2.4 series to 2.6 but I
> get the following error when I try and insmod:
>
> root@dimension# /usr/sbin/insmod gpstest.o
> insmod: error inserting 'gpstest.o': -1 Invalid module format
> root@dimension#

You want the .ko file, not the .o file. See also:

- http://www.linux.org.uk/~davej/docs/post-halloween-2.6.txt
- http://lwn.net/Articles/driver-porting/


Erik

--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/