Click to See Complete Forum and Search --> : Modules?
prince_kenshi
02-19-2001, 11:05 PM
I've been trying to get the 2.4.1 kernel to work for almost a week now. Today I removed everything I had done and started over. I upgraded modutils and modconf to the newest version as well as everything mentioned in the NHF on setting up 2.4 in Redhat. I put yes to the three questions in the module section when running xconfig. I did make modules and install_modules. It displayed no errors after I had compiled any of this. The modules are now in their default place in /lib/modules/2.4.1/kernel/drivers. But the system doesn't seem to be able to find them. When I boot up with the new kernel, it gives me dozens of errors saying that it couldn't find certain modules. And when I try to insmod a module that I'm certain I compiled, it says the same along with something about modules.dep is older than insmod. I'm not sure exactly what that last message was actually, I'm going by memory because I can't load ppp and get on the internet in the new kernel. Does anyone have any ideas as to what I can try? I need this new kernel for sound support. Grazie.
PLBlaze
02-20-2001, 12:43 AM
Try running depmod -a to update the module dependecies...hope this helps.
prince_kenshi
02-20-2001, 02:56 AM
depmod -a didn't seem to do anything. There wasn't even any hard drive activity. I read that you could edit modules.conf to point to the directory with your modules in it, but the file has comments that say that users shouldn't edit the file. I'm pretty sure that it's just looking in the wrong directory because I can still boot the old kernel without problems. Does anyone know how to change which directory it looks in for modules?
prince_kenshi
02-20-2001, 04:21 AM
I might be on the verge of figuring this out. I found a file at /etc/modutils/paths that might be just what I need. According to the commenting in the file, it's for adding paths to modules that aren't compiled into modutils. I added the line "/lib/modules/2.4.1/" in it but it said invalid line 80 in modules.conf when I tried a modprobe -a on a module. I tried putting an asterisk at the end of the line and still the same. Does anyone know the format of this file, or can you look at yours and tell me if there's anything in it? I'm hoping that this is the end of all my problems.
Strike
02-20-2001, 04:36 AM
Do you have the latest modutils? The 2.4 kernel requires a very recent version of modutils.
prince_kenshi
02-20-2001, 05:44 AM
Yes, I upgraded my modutils and modconf. I'm using modutils 2.4.2-1 right now. I thought that would have fixed it but it didn't.
prince_kenshi
02-20-2001, 05:44 AM
Yes, I upgraded my modutils and modconf. I'm using modutils 2.4.2-1 right now. I thought that would have fixed it but it didn't.
prince_kenshi
02-20-2001, 07:13 PM
I feel kind of moronic now. I was wrong about the startup messages. What I thought said was "file not found" was actually "device not found". It also gave another warning but I couldn't make it out. It's hard to read as fast as it all scrolls. And as for the ones I tried to run after booting, I found out that it hadn't compiled those as I had thought. It will insmod the modules in the new kernel module directory. But that still leaves me with two problems. First of all is removing the modules that give those error messages at bootup. I really have no idea how modules are loaded during boot... or rather what tells the kernel which ones to load. The second problem is that my pppd is dying. It told me to check in /var/log so I copied syslog to /root so it wouldn't be erased when rebooting and here are the last few lines which pertain to pppd:
Feb 20 16:49:34 kenshi pppd[396]: Created /dev/ppp device node
Feb 20 16:49:34 kenshi pppd[396]: pppd 2.3.11 started by root, uid 0
Feb 20 16:49:34 kenshi pppd[396]: ioctl(PPPIOCGFLAGS): Invalid argument
Feb 20 16:49:34 kenshi pppd[396]: tcsetattr: Invalid argument
Feb 20 16:49:34 kenshi pppd[396]: Exit.
I don't even know where these arguments are located. This looks more like errors that I should get while compiling something. I hope someone can help me with it after having to go through the trouble of switching back and forth from a console and typing this all out. And I apologizing for giving wrong information earlier. Thanks for the help.