Re: [cbm4linux-users] No such device
Brought to you by:
cbm4linux
From: Michael K. <mic...@pu...> - 2004-11-01 15:42:01
|
Hi Daniel! > I'm using Debian with a 2.6.6-2 Kernel and got the cbm4linux sources by > apt-get. > First problem: I had no modsetver.h in /usr/src/linux/include/linux , so i > copied it from /usr/include/linux. > I hope this is ok. Not sure about that. We'll see... ;-) > After this i tried again to build a cbm module with "./debian/rules > KSRC=/usr/src/linux build". > I got an error message but although cbm.ko and cbm.o. > >Output: > > dh_testdir > > dh_testroot > > dh_clean > > if [ -f debian/control.backup ]; then \ > > mv -f debian/control.backup debian/control; \ > > fi > > rm -f *.ko *.o cbm.mod.* build-stamp > > dh_testdir > > dh_testroot > > make -C /usr/src/linux SUBDIRS=/usr/src/modules/cbm4linux modules > > make[1]: Entering directory `/usr/src/kernel-source-2.6.6' > > CC [M] /usr/src/modules/cbm4linux/cbm_module.o > > /usr/src/modules/cbm4linux/cbm_module.c: In Funktion >>init_module<<: > > /usr/src/modules/cbm4linux/cbm_module.c:697: Warnung: Verarbeiten des > Argumentes 5 von >>parport_register_device<< von inkompatiblem Zeigertyp > > /usr/src/modules/cbm4linux/cbm_module.c:663: Warnung: unused variable `i' > > LD [M] /usr/src/modules/cbm4linux/cbm.o > > Building modules, stage 2. > > MODPOST > > CC /usr/src/modules/cbm4linux/cbm.mod.o > > LD [M] /usr/src/modules/cbm4linux/cbm.ko > > make[1]: Leaving directory `/usr/src/kernel-source-2.6.6' > > touch build-stamp No error here, just a warning. Is that the complete output? > Hoping the best i copied cbm.ko to /lib/modules/2.6.6/kernel/drivers/misc and > edited /lib/modules/2.6.6/modules.dep. > By the way parport_pc ist compiled into kernel und detects the port (0x3bc, > irq7). > from kern.log: > > parport0: PC-style at 0x3bc (0x7bc) [PCSPP,TRISTATE] > > parport0: irq 7 detected > > lp0: using parport0 (polling). > Now i got this error: > > blackbox:/home/daywalker# modprobe cbm > > FATAL: Error inserting cbm (/lib/modules/2.6.6/kernel/drivers/misc/cbm.ko): > No such device > from kern.log: > > cbm_init: parallel port irq not configured: 0 Looks like you have to configure the IRQ explicitly. Just because the IRQ line is detected doesn't also mean it's actually used ;-) Did you check /proc/interrupts? > I read old mailing articles and searched with "google" but i did'nt find any > comparable. > I did't use make-kpkg because it made a lot but nothing which belongs to > cbm4linux :-( Can you be more specific? > Probably you see i'm a newbie and my english is sluttishly but i hope you can > help me even though. Good luck! -- Michael Debian is like Suse with yast turned off, just better. :) -- Goswin Brederlow |