hi, 

i tried to compile the via cle 266 driver within the gfxdriver dir
with kernel 2.6.6 release vanilla


make -f cle266vgaio.mk v26
Compiling v2.6 kernel module.
In file included from /usr/src/linux/include/asm/smp.h:18,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from cle266vgaio.c:51:
/usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /usr/src/linux/include/asm/smp.h:18,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from cle266vgaio.c:51:
/usr/src/linux/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in 
a function)
/usr/src/linux/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in 
a function)

as these error appeared i just added a -I/usr/src/linux/include/asm/mach-generic as 
include path extension and the driver builds again.
so the kernel line looks like this :

v26:
        echo Compiling v2.6 kernel module.
        gcc -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing 
-fno-common -pipe -mpreferred-stack-boundary=2 -march=i486 -falign-functions=0 
-falign-jumps=0 \
                 -falign-loops=0 -D__KERNEL__  -DMODULE -DKBUILD_MODNAME=cle266vgaio 
-DKBUILD_BASENAME=cle266vgaio \
                 -I/usr/src/linux/include -I/usr/src/linux/include/asm/mach-generic -c 
cle266vgaio.c -o cle266vgaio.o
        ld -m elf_i386 -r -o cle266vgaio.ko cle266vgaio.o


after successfully compiled this kernel module i wanted to insert it into the kernel 
itself via insmod


# insmod cle266vgaio.ko
insmod: error inserting 'cle266vgaio.ko': -1 Invalid module format

i dont know why - but there seems more beeing changed than only the location of some 
includes

can anyone help me out - as i am not that skilled with kernel driver coding ? 

thanks
mws


-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to