Lawrence D'Oliveiro wrote:
> In article <d5a60n$m7n$>, lance broyden <>
> wrote:
>
>>./sm200d_lnx.o: kernel-module version mismatch
>> ./sm200d_lnx.o was compiled for kernel version 2.4.19
>> while this kernel is version 2.4.24-x1
>
> That object file sm200d_lnx.o needs to be (re)compiled against your
> currently-installed kernel source. Is there some source file called
> sm200d_lnx.c, by any chance?
No but there is one called sm2_drv.c
If I delete the sm200d_lnx.o and type make into that directory then
sm200d_lnx.o reappears but insmod still says wrong version.
the makefile looks like this.
CFLAGS = -DMODULE -D__KERNEL__ -Wall -c -DSM200D -O -I/usr/src/linux/include
DRIVER_MODULE=sm200d_lnx.o
INCLUDE_FILE=sm2_drv.h
OBJS = sm2_drv.o sm2_bin.o
INSTALLDIR = /usr/local/sm200d
all: $(OBJS)
$(LD) -r $(OBJS) -o $(DRIVER_MODULE)
install: $(OBJS)
mkdir -p $(INSTALLDIR)
cp $(DRIVER_MODULE) $(INSTALLDIR)
sm2_drv.o : sm2_drv.c
gcc $(CFLAGS) sm2_drv.c
clean :
rm -f sm2_drv.o $(DRIVER_MODULE)
|