Click to See Complete Forum and Search --> : Need Help with Kernel Modules


klnyc
01-06-2003, 09:43 PM
Hello,

Im trying to adding extra modules that I didnt add in when I upgraded my kernel. Im currently running Mandy Linux 9.0 w/Kernel 2.4.20(previous was 2.4.19-16mdk). I tried to add the modules back, but I didnt see any modules that I added in. I went back to the old "/usr/src/linux" folder to RE-RUN 'make xconifg' over again....Does this matter if im using the same source file that I previously made??? I'm using the follow steps....see if Im doing something wrong here.

1: make xconfig
2: make dep
3: make clean
4: make modules
5: make modules_install
6: cp /usr/src/linuc/arch/i386/boot/bzImage /boot/vmlinuz-2.4.20
7: cp /linux/System.map /boot/Systemp.map-2.4.20

What else I need to do after step #7? Any help with greatly appreciated.


thanks

red_over_blue
01-06-2003, 10:11 PM
It doesn't matter (in fact it is the way you should do it) to go back to usr/src/linux and run "make xconfig" or "make menuconfig". You might want to do a "make clean" or "make mrproper" first (before make xconfig)

*** If you do a make mrproper, be sure to back up your config file first, since it will get deleted ****

make mrproper basically purges everything you have done up to this point.

One question, are you mounting the /boot partition before copying the bzImage compressed kernel there?


mount /dev/hda1 /boot
cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.20


If not, you won't get errors, but the new kernel will not be there.

If that is the problem, mount the partition first, cp bzImage there, and then reboot.

Are you just not seeing the modules when you type the following?


modprobe -l

klnyc
01-06-2003, 10:23 PM
Hi,

What I been told I dont need to 'make bzImage'. Because Im not upgrading a new kernel. I already did a 'make bzImage' when I was at 2.4.19. So now Im at 2.4.20, Im basically adding some modules on to it.

red_over_blue
01-06-2003, 10:33 PM
If you don't do a "make bzImage" in there somewhere, then you are still using the 2.4.19 kernel with modules compiled against 2.4.20. Someone can correct me if I am wrong though.

I think you should throw a bzImage in there. You can just do the following:

make dep && make clean bzImage modules modules_install

klnyc
01-06-2003, 11:18 PM
hi,

I already compiled from 2.4.19 to 2.4.20. I want to add few modules on 2.4.20. I could re-compile to kernel over again, but thats isnt i wanted. I just want to add-on some modules.

thanks :)