| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 47272 | 2004-07-21 09:00:00 | Drivers for Conexant modem in Linux | Rob99 (151) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 254069 | 2004-07-27 13:25:00 | Thanks Chill Here is what I have done so far, I have installed (I think) the kernel development packages with this command: urpmi kernel-source-2.6.3-7.mdk and it seemed to go OK, then back to the modem here is what is happening now: [root@localhost rob]# cd intel-537EP_secure-2.37.50.0 [root@localhost intel-537EP_secure-2.37.50.0]# make clean cd coredrv; make clean make[1]: Entering directory `/home/rob/intel-537EP_secure-2.37.50.0/coredrv' rm -f *.ko *.o *~ core make[1]: Leaving directory `/home/rob/intel-537EP_secure-2.37.50.0/coredrv' rm -f *.o *.ko [root@localhost intel-537EP_secure-2.37.50.0]# make 537 if [ -a /boot/vmlinuz.version.h ]; then \ cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h; fi if [ ]; then \ cd coredrv; make TARGET=TARGET_CATAWBA KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_CATAWBA -DTARGET_LINUX -DLINUX" 537core; \ else \ cd coredrv; make TARGET=TARGET_CATAWBA KERNEL_INCLUDES=/lib/modules/`uname -r`/build/include \ "PSTN_DEF=-DTARGET_CATAWBA -DTARGET_LINUX -DLINUX" 537core; \ fi ; make[1]: Entering directory `/home/rob/intel-537EP_secure-2.37.50.0/coredrv' cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o coredrv.o coredrv.c In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:20, from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11, from /lib/modules/2.6.3-7mdk/build/include/linux/serialP.h:26, from coredrv.c:42: /lib/modules/2.6.3-7mdk/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory In file included from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11, from /lib/modules/2.6.3-7mdk/build/include/linux/serialP.h:26, from coredrv.c:42: /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function) In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:72, from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11, from /lib/modules/2.6.3-7mdk/build/include/linux/serialP.h:26, from coredrv.c:42: /lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function) /lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function) coredrv.c:73: warning: conflicting types for built-in function `putchar' make[1]: *** [coredrv.o] Error 1 make[1]: Leaving directory `/home/rob/intel-537EP_secure-2.37.50.0/coredrv' make: *** [537] Error 2 [root@localhost intel-537EP_secure-2.37.50.0]# make install if [ -a /boot/vmlinuz.version.h ]; then \ cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h; fi if [ ]; then \ cd coredrv; make TARGET=TARGET_CATAWBA KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_CATAWBA -DTARGET_LINUX -DLINUX" 537core; \ else \ cd coredrv; make TARGET=TARGET_CATAWBA KERNEL_INCLUDES=/lib/modules/`uname -r`/build/include \ "PSTN_DEF=-DTARGET_CATAWBA -DTARGET_LINUX -DLINUX" 537core; \ fi ; make[1]: Entering directory `/home/rob/intel-537EP_secure-2.37.50.0/coredrv' cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o coredrv.o coredrv.c In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:20, from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11, from /lib/modules/2.6.3-7mdk/build/include/linux/serialP.h:26, from coredrv.c:42: /lib/modules/2.6.3-7mdk/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory In file included from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11, from /lib/modules/2.6.3-7mdk/build/include/linux/serialP.h:26, from coredrv.c:42: /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function) In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:72, from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11, from /lib/modules/2.6.3-7mdk/build/include/linux/serialP.h:26, from coredrv.c:42: /lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function) /lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function) coredrv.c:73: warning: conflicting types for built-in function `putchar' make[1]: *** [coredrv.o] Error 1 make[1]: Leaving directory `/home/rob/intel-537EP_secure-2.37.50.0/coredrv' make: *** [537] Error 2 Thanks for sticking with me so far. Rob |
Rob99 (151) | ||
| 254070 | 2004-07-28 04:59:00 | Mmmm. The problem here is that things have been changed in the kernel compilation system, and other code (produced by other people) hasn't been changed to suit. This is the `uname -v `/build/... stuff which is causing some error messages. You have now got the kernel source (which is a few hundred MB bigger than the "kernel headers" package which was all that used to be needed for this sort of thing. Fortunately, it's probably needed, but it needs to be initialised. Try cd /usr/src , cd linux-2* , make oldconfig This might set up the "build" entry required. The makefile system is very smart and makes it possible to do very tricky things. But when it goes wrong like this, it is not nice. |
Graham L (2) | ||
| 254071 | 2004-07-28 08:56:00 | Thanks Graham, that seemed to work OK, but still I am not quite there yet, here is whats happening now: [root@localhost intel-537EP_secure-2.37.50.0]# make clean cd coredrv; make clean make[1]: Entering directory `/home/rob/intel-537EP_secure-2.37.50.0/coredrv' rm -f *.ko *.o *~ core make[1]: Leaving directory `/home/rob/intel-537EP_secure-2.37.50.0/coredrv' rm -f *.o *.ko # make 537 if [ -a /boot/vmlinuz.version.h ]; then \ cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h; fi if [ ]; then \ cd coredrv; make TARGET=TARGET_CATAWBA KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_CATAWBA -DTARGET_LINUX -DLINUX" 537core; \ else \ cd coredrv; make TARGET=TARGET_CATAWBA KERNEL_INCLUDES=/lib/modules/`uname -r`/build/include \ "PSTN_DEF=-DTARGET_CATAWBA -DTARGET_LINUX -DLINUX" 537core; \ fi ; make[1]: Entering directory `/home/rob/intel-537EP_secure-2.37.50.0/coredrv' cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o coredrv.o coredrv.c In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:20, from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11, from /lib/modules/2.6.3-7mdk/build/include/linux/serialP.h:26, from coredrv.c:42: /lib/modules/2.6.3-7mdk/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory In file included from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11, from /lib/modules/2.6.3-7mdk/build/include/linux/serialP.h:26, from coredrv.c:42: /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function) In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:72, from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11, from /lib/modules/2.6.3-7mdk/build/include/linux/serialP.h:26, from coredrv.c:42: /lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function) /lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function) coredrv.c:73: warning: conflicting types for built-in function `putchar' make[1]: *** [coredrv.o] Error 1 make[1]: Leaving directory `/home/rob/intel-537EP_secure-2.37.50.0/coredrv' make: *** [537] Error 2 [root@localhost intel-537EP_secure-2.37.50.0]# make install if [ -a /boot/vmlinuz.version.h ]; then \ cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h; fi if [ ]; then \ cd coredrv; make TARGET=TARGET_CATAWBA KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_CATAWBA -DTARGET_LINUX -DLINUX" 537core; \ else \ cd coredrv; make TARGET=TARGET_CATAWBA KERNEL_INCLUDES=/lib/modules/`uname -r`/build/include \ "PSTN_DEF=-DTARGET_CATAWBA -DTARGET_LINUX -DLINUX" 537core; \ fi ; make[1]: Entering directory `/home/rob/intel-537EP_secure-2.37.50.0/coredrv' cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o coredrv.o coredrv.c In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:20, from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11, from /lib/modules/2.6.3-7mdk/build/include/linux/serialP.h:26, from coredrv.c:42: /lib/modules/2.6.3-7mdk/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory In file included from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11, from /lib/modules/2.6.3-7mdk/build/include/linux/serialP.h:26, from coredrv.c:42: /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function) In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:72, from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6, from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11, from /lib/modules/2.6.3-7mdk/build/include/linux/serialP.h:26, from coredrv.c:42: /lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function) /lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function) coredrv.c:73: warning: conflicting types for built-in function `putchar' make[1]: *** [coredrv.o] Error 1 make[1]: Leaving directory `/home/rob/intel-537EP_secure-2.37.50.0/coredrv' make: *** [537] Error 2 Thanks Rob |
Rob99 (151) | ||
| 254072 | 2004-07-28 09:00:00 | Still seems to be the same problem, hmmm. I dont mind formating/reinstalling if you guys think I should make a clean start again. Rob |
Rob99 (151) | ||
| 254073 | 2004-07-29 03:18:00 | Ugh . :-( Reinstalling won't fix it . Your "make install" was doomed because the previous step failed with an "Error" . The files it needed to install weren't there, so it just repeated the compile . I've struggled with stuff like this, and mostly gave up . It's so messy . Next step . Go into the source of the kernel: cd /usr/src/linux-2* (I'm using "linux-2* [the "*" wild card] because you've only got one release of the sources . . . ) -- then do make dep . That might get your compile on the road . If not, the next step is to do make bzImage in the linux source directory . That will compile the kerbnel, and should have the same version (because you haven't changed (about) the third line in the file "Makefile" . I think . Do "uname -a" and make sure the "-xxmdk" part is the same in the Makefile line . (Before even the "make dep" . ) This ought to work . ;-) |
Graham L (2) | ||
| 254074 | 2004-08-01 04:12:00 | Still with us rob99? Last night I had another look at a compile which had failed for me on a computer I hadn't done a kernel compile on . There was a good README file which was a help . This package gave similar errors to yours, but went correctly when I took the trouble . (I didn't persevere origfinally because I just used the hardware on another computer, which had had kernel compiles so was properly set up) . The "/lib/modules . x . y . 22/build" link which is needed is installed only when you do the "install modules_install" after a kernel compile . :-( What you need to do to get it set up properly is as follow . We have already done in /usr/src/linux* the # make oldconfig # make dep The next step is to make the "build" link . If your linux source directory is, e . g . , /usr/src/linux-2 . 4 . 22, you would do# ln -s /usr/src/linux-2 . 4 . 22 /lib/modules/build Then you should be able to do "third party" package compiles . (The "#" is indicative of the tail of the root prompt, not a character to be entered ;-)) . |
Graham L (2) | ||
| 254075 | 2004-08-01 14:01:00 | Still here, and thank's for the help so far Update: Modem drivers are now installed, how I did this was to stick the Linux CD in and install everything that it would let me tick, I am unsure of exactly which thing I added made the difference. I was so happy with myself when files appeared where the instructions told me they would. Configuring kppp was fantastic, I could just select Paradise it new the ph# (very cool) only thing is when the modem is being initialized, it seems that it will take forever (not prepared to wait that long), so I canceled and tried a mucking around a bit nothing seemed to work. When I queried the modem the ATI's came back blank. The modem was detected OK. I have tried starting it with the consol window and without, no difference either way. Could I have used the wrong driver? Rob |
Rob99 (151) | ||
| 1 2 | |||||