Click to See Complete Forum and Search --> : Kernel REINSTALL?? (slack 8.0)


berb
07-27-2001, 03:34 AM
Hey, loaded 8.0 with 2.4.5 BUT it doesn't have iptables loaded as modules or kernel level, so I would like to recompile the kernel but:
I get a HUGE error when I issue a "depmod -a 2.4.5" after make modules_install to the tune of unresolved dependencies in .../pcmcia/net (tons of module names here).

My question is two part:
1.I think that 2.4.5 uses some of the modules in /lib/modules/2.2.19 and in /lib/modules/2.4.5 after then clean install, but after I compile it will just use the modules in 2.4.5. Is this correct and how do I fix it.
2.If I am recompiling a new kernel do I still follow the usual steps (mrproper,dep,bzImage,modules,modules_install) or is there another way.

after the clean install /usr/src/linux points to 2.2.19 and uname -r returns 2.4.5.

Holy cow is this complicated, and slackware.com is down (where I think I saw and answer last week, but not sure).

Anyhoo, any help is always appriciated (sic).

-d

sincka
07-27-2001, 04:08 AM
I'm still kind of confused by your post but the gibrish I post will hopefuly be of some help.

make mrproper
make menuconfig or make config
make dep
make clean
make bzImage
make modules
make modules_install

copy the

/usr/src/path_to/bzImage

to

/boot

I will now guess that you are using lilo as mbr (sorry craig :p)

change the info in /etc/lilo.conf (I am assuming you know how to do that)

run lilo

reboot with your new kernel and then try making your modules work.

If that doesn't happen... stick them in /etc/modules

ex: let's say that I have tulip for my cable connection I add

modprobe tulip

in my /etc/modules. Then

chmod +x /etc/modules

then

./modules

and you should be set.


I hope this helps... if it doesn't... sorry :( I tried.

ronmon
07-27-2001, 08:31 AM
First of all, in Slackware, the default home of your kernel images is / rather than /boot. You can move them and symlink them, go with the flow and install them in the root directory, or do as sincka says and then rewrite your lilo.conf file. That would be a matter of personal choice.

It took me a while to figure out why I couldn't get PCMCIA to work recently when I built a new kernel for my lappy. Then I actually read the HOWTOs and realized what I was missing. The best way is to disable all PCMCIA support in the kernel, enable 10/100 Ethernet support (but NO device drivers) and reboot with the new kernel. Then build and install the modules using the pcmcia-cs package.