arthurking Posted February 27, 2004 Report Share Posted February 27, 2004 Hi all, I'm trying to get my philips webcam working with the 2.6.3-2mdk kernel I just installed on mandrake 9.2. It worked in 2.4 with the pwcx module. I followed the instuctions from the pwcx9beta download, which had a patch file to get the pwcx module option in the kernel configurator. Everything went well, I assume, because I got no errors. I did the "make modules module_install" and everything worked OK. Not being a kernel or module compiling guru, I have no idea what I've done :D Well a little bit. What happened is that the pwcx module is installed in a directory called /lib/modules/2.6.3-2mdkcustom instead of /lib/modules/2.6.3-2mdk. So, have I made a custom kernel or something? I've never compiled a kernel B4. This pwcx module I'm trying to get working has also installed itself to /usr/src/linux-2.6.3-2mdk/drivers/usb/media which is the original directory link made when I installed 2.6.3. If I have made a 'new' custom kernel inadvertantly, I have no option to boot to it in lilo. I assume that to load a module with this kernel, it needs to be in the /lib/modules/2.6.3-2mdk directory originally made during the 2.6.3 install. I tried a modprobe and a insmod pwcx and I get an error that no module with that name exists. Well it doesn't in the 2.6.3-2mdk dir, but it does in the 2.6.3-2mdkcustom dir. Do I link these directories somehow, or do I copy the pwcx stuff over to the original modules directory from the custom directory I just made. One last thing after module_install has finished I get this message if [-r System.map]; then /sbin/depmod -ae -F System.map 2.6.3-2mdkcustom; fi [me@PENTIUM linux]# It looks like it wants me to do something. A depmod maybe? Thanks Quote Link to comment Share on other sites More sharing options...
Ixthusdan Posted February 27, 2004 Report Share Posted February 27, 2004 I'm moving this to a better area for these knds of questions. And I can't help; I usually break my machine when I try a kernel compile, so you're ahead of me on that one! :lol: Quote Link to comment Share on other sites More sharing options...
iphitus Posted February 27, 2004 Report Share Posted February 27, 2004 could you please: ls /lib/modules/ ls /usr/src/ ls /boot/ and post those command's replies. Quote Link to comment Share on other sites More sharing options...
arthurking Posted February 27, 2004 Author Report Share Posted February 27, 2004 I wasn't to sure where to post. Thanks. I wasn't trying to compile a kernel, I thought I was compiling just the new module. I've never compiled a kernel, I installed 2.6.3-2mdk with rpmdrake. Ixthusdan said; ........... I usually break my machine when I try a kernel compile, so you're ahead of me on that one! I wish I was back behind you :P ls /lib/modules 2.4.22-26mdk/ 2.6.3-2mdk/ 2.6.3-2mdkcustom/ ls /usr/src linux-2.6.3-2mdk/ RPM/ /ls /boot/ grub/ boot. 0300 config@ config-2.4.22-26mdk initrd-2.4.22-26mdk.img kernel.h-2.4.22-26mdk System.map-2.4.22-26mdk config-2.6.3-2mdk initrd-2.6.3-2mdk.img kernel.h-2.6.3-2mdk System.map-2.6.3-2mdk diag1.img diag2.img initrd.img@ map us-latin1.klt initrd-2.4.22-26secure.img initrd-secure.img@ kernel.h@ message@ message-graphic System.map vmlinuz@ vmlinuz-2.4.22-26mdk vmlinuz2.6.3-2mdk (initrd-2.4.22-21mdk-i686-up-4GB.img) if [-r System.map]; then /sbin/depmod -ae -F System.map 2.6.3-2mdkcustom; fi [me@PENTIUM linux]# This was a message at the end of the compiling routine, I did the "/sbin/depmod -ae...." routine. The system did something, I did a modprobe pwcx again and now the error changed from 'no module named pwcx' to 'Error inserting pwcx(path/to/module..): Unknown symbol in module or unknown parameter (see dmesg)' I think this is good, because I had a similar message in the 2.4kernel, which is a GPL thingy problem, the module actually works with this error. The solution was to -force the module. but with the 2.6 kernel I can't seem to do this. modprobe --force pwcx gives the same 'Error inserting.....' message. How do I force. This machine is not essential, I'tt get formatted for my son in a few months. It'll get replaced soon with a faster system. I'm thinking of removing kernel 2.6.3(and my custom) and starting again. But if I just compiled a new kernel (with the pwcx module patch) how do compile it into the standard 2.6.3-2mdk kernel (what I thought I was doing) instead of into a new 'custom' kernel that I can't boot into. :woops: ps. I like kernel2.6.3, it seems snappier. thanks. Quote Link to comment Share on other sites More sharing options...
weinachter Posted March 21, 2004 Report Share Posted March 21, 2004 hi, add the module in /lib/modules... use depmod -ae then do "modprobe -f pwcx" that's all ! Quote Link to comment Share on other sites More sharing options...
aru Posted March 21, 2004 Report Share Posted March 21, 2004 ....Do I link these directories somehow, or do I copy the pwcx stuff over to the original modules directory from the custom directory I just made. One last thing after module_install has finished I get this message if [-r System.map]; then /sbin/depmod -ae -F System.map 2.6.3-2mdkcustom; fi [me@PENTIUM linux]# It looks like it wants me to do something. A depmod maybe? Thanks IMHO you have done everything right except installing the brand new kernel you've compiled. You can do this automatically issuing the command ~# make install which install the new kernel image and edits and runs lilo. or by hand, by doing: basedir=/usr/src/your_linux_version_dir/ tag=the_tag_you_gave # ie: 2.6.3-2mdkcustom cp $basedir/arch/i386/boot/bzImage /boot/vmlinuz-$tag cp $basedir/System.map /boot/System.map-$tag cp $basedir/.config /boot/config-$tag mkinitrd /boot/vmlinuz-$tag $tag Then edit lilo by hand or issuing the following commands (more interesting and dangerous :) ) echo "# New image: \"$tag\" $(date +%D) image = /boot/vmlinuz-$tag root = /dev/hda1 label = $tag read-only " >> /etc/lilo.conf && /sbin/lilo -v Ofcourse both quoted commands run on the same session (as you see both use the same variables). PS: You've seen my new mubcolorize script output :P Quote Link to comment Share on other sites More sharing options...
Guest dingodave Posted May 16, 2004 Report Share Posted May 16, 2004 I've run across the same problem. I haven't been able to find a solution to this yet. Anyone got any ideas? Thanks! Info: 15:57:02 $> depmod -ae root@~ 16:28:28 $> modprobe -f pwcx FATAL: Error inserting pwcx (/lib/modules/2.6.3-9mdk/kernel/drivers/usb/media/pwcx.ko): Invalid argument Linux Dingo.home 2.6.3-9mdk #1 Sat May 15 19:09:40 CDT 2004 i686 unknown unknown GNU/Linux 16:34:25 $> ls /lib/modules/2.6.3-9mdk/kernel/drivers/usb/media dabusb.ko.gz konicawc.ko.gz se401.ko.gz usbvideo.ko.gz dsbr100.ko.gz stv680.ko.gz vicam.ko.gz ibmcam.ko.gz pwcx.ko ultracam.ko.gz Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.