- From: Bernd Porr <Bernd.Porr_at_cn.stir.ac.uk>
- Date: Sun, 03 Aug 2003 01:12:04 +0100
...since nobody responded to my question if there's anybody out there who takes care of the 2.6 kernel... I've added defines in all basic comedi files to make it running under linux-2.6. There is still one issue which is not resolved: locking of memory. This bit I don't understand. Please help. However, so far: snoopy:/usr/src/linux-2.6.0-test2/drivers/comedi# make -C /usr/src/linux-2.6.0-test2/ SUBDIRS=$PWD modules make: Entering directory `/usr/src/linux-2.6.0-test2' make[1]: `arch/i386/kernel/asm-offsets.s' is up to date. CHK include/asm-i386/asm_offsets.h *** Warning: Overriding SUBDIRS on the command line can cause *** inconsistencies CC [M] /usr/src/linux-2.6.0-test2/drivers/comedi/comedi_fops.o CC [M] /usr/src/linux-2.6.0-test2/drivers/comedi/proc.o CC [M] /usr/src/linux-2.6.0-test2/drivers/comedi/range.o CC [M] /usr/src/linux-2.6.0-test2/drivers/comedi/drivers.o /usr/src/linux-2.6.0-test2/drivers/comedi/drivers.c: In function `comedi_buf_alloc': /usr/src/linux-2.6.0-test2/drivers/comedi/drivers.c:427: warning: unused variable `i' /usr/src/linux-2.6.0-test2/drivers/comedi/drivers.c:428: warning: unused variable `n_pages' CC [M] /usr/src/linux-2.6.0-test2/drivers/comedi/comedi_ksyms.o LD [M] /usr/src/linux-2.6.0-test2/drivers/comedi/comedi.o scripts/Makefile.build:27: kbuild: /usr/src/linux-2.6.0-test2/drivers/comedi/drivers/Makefile - Usage of export-objs is obsolete in 2.5. Please fix! scripts/Makefile.build:27: kbuild: /usr/src/linux-2.6.0-test2/drivers/comedi/kcomedilib/Makefile - Usage of export-objs is obsolete in 2.5. Please fix! Building modules, stage 2. MODPOST CC /usr/src/linux-2.6.0-test2/drivers/comedi/comedi.mod.o LD [M] /usr/src/linux-2.6.0-test2/drivers/comedi/comedi.ko make: Leaving directory `/usr/src/linux-2.6.0-test2' snoopy:/usr/src/linux-2.6.0-test2/drivers/comedi# I've prepared a tar-ball which you can basically un-tar over the directory linux-2.6.0-test2. I've only modified the basic files (no drivers, no kcomedilib). Except of the include directives I have added #if clauses for 2.6 so that the files should be still functional for any linux version. Please check. The makefiles are only rudimentary. Regarding the makefiles somebody else might be the right person to create the right files. I personally would like to see the files at the position where the tar ball extracts them. However, this is debatable. The tar ball is available at: http://www.cn.stir.ac.uk/~bp1/linux-2.6.0-test2.tgz I'll test all this if somebody gives me advice about memory locking in 2.6. Just now I've tested nothing. Just adjusted basically minor/major handling and the devfs. The rest was fine anyway. /Bernd -- http://www.cn.stir.ac.uk/~bp1/ mailto:bp1_at_cn.stir.ac.uk
Received on 2003-08-02Z23:12:04