LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Upgrading Kernel from fresh install of 9.1 to Current (https://www.linuxquestions.org/questions/slackware-14/upgrading-kernel-from-fresh-install-of-9-1-to-current-180656/)

sganarelle 05-12-2004 09:00 AM

Upgrading Kernel from fresh install of 9.1 to Current
 
I am a newbie at kernel upgrading. Usually I just wait for the next version, keeping to the philosophy that if it aint broke dont fix it.

I have run swaret to upgrade a fresh install of 9.1 to slackcurrent. I have run make menuconfig selected what i need, i have run also make dep, make bzImage, make modules and make modules_install. There have been no errors up to this point. Do i need to run make clean?

Now what lines in lilo.conf do i edit? and how do I edit these lines?

Thanks

xushi 05-12-2004 09:18 AM

You can always just stick to the 2.4.26 in slackware's current from swaret..

Just comment the EXCLUDE = kernel from your /etc/swaret.conf,
run swaret -- update / swaret --upgrade
when done, type
lilo
reboot.
Done.

quip 05-12-2004 09:42 AM

Firstly, which kernel is it? At this point, I don't believe you need to run make clean until you build another kernel from the same sources. Secondly, you need to put the new kernel in your boot directory. cp /usr/src/linux/arch/i386/boot/bzImage /boot/new_kernel_name
Also, cp your System.map over (cp /usr/src/linux/System.map /boot/new_map_name)
Then modify your /etc/lilo.conf to include an entry for your new kernel (make it just like the entry for your current kernel, except give it a new name and change the image to be the new kernel name you copied over) Then run /sbin/lilo. If there are no errors, reboot and pick which kernel you want (old or new)

sganarelle 05-12-2004 11:19 AM

I successfully booted the new 2.4.26 kernel but now all my devices did not load, network card, soundcard, usb, the winttv card, etc. so now what how do i get the drivers back. everything installed correctly with the fresh install of 9.1, kernel 2.4.22.

quip 05-12-2004 11:39 AM

If you didn't edit any of the files in /etc/rc.d, then could mean that the options you thought were correct in your menuconfig were in fact wrong.

Also, when you say the devices did not load, do you mean there were a bunch of error messages on the screen during boot, or that the devices were not functional after the system was up? (or both?)

Also, it could be trying to load modules that your old stock kernel was set to, when your new kernel either doesn't need or you built it in so it doesn't want it. I am not for sure why it would, but maybe someone else can tell you how to fix it if that is indeed the problem.

sganarelle 05-12-2004 11:47 AM

The devices are non functional and as well i recieved many insmod error messages.

Ok when i recompiled the 2.4.22 kernel I edited nothing, i used the guide posted by DAONE. When i recompiled the 2.4.26 kernel i used the same guide. What do I need to edit in rc.d? I thought rc.d controlled the scripts which start samba, nfs, mysql and the like (which is the next step, which i used to be able to do but i havent touched a computer in like 7 months)

thanks for the help.

i opened up rc.modules in my fav text editor and every line is commented. which i am guessing why no modules loaded. so how do i correct this?

****a new question, is my memory correct that to load samba, mysql, nfs, and httpd, i need to add to rc.local the following lines, rc.samba, rc.nfsd, rc.portmap, rc.httpd, and rc.mysqld?*******

320mb 05-12-2004 12:01 PM

also look at your /boot/config file...........
toward the TOP of the script you should see this........
Code:

#
#Loadable Module Support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y


Linux.tar.gz 05-14-2004 06:34 PM

Fatal errors don't really matter when you recompile your kernel. It's just "ghost" errors. You'd better find if your devices works with your own eyes. After that, you can manually remove annoying stuff in /etc/rc.d/rc.whatever.

xanas3712 05-15-2004 06:05 AM

****a new question, is my memory correct that to load samba, mysql, nfs, and httpd, i need to add to rc.local the following lines, rc.samba, rc.nfsd, rc.portmap, rc.httpd, and rc.mysqld?*******

No, all I had to do to get those running was chmod 755 rc.mysqld, etc.
That sets them to be executable and I believe they will run automatically on next boot if you do that.

At least it worked for me

Linux.tar.gz 05-17-2004 04:26 PM

This stuff is started at boot by some files inside /etc/rc.d/

AFI_Flame 05-17-2004 10:52 PM

To get your modules back you need to get this package: kernel-modules-2.4.26-i486-1

It's on the Slackware website... that should get you your modules back ;) You might also want to download the kernel source and the kernel include files if you want to compile stuff.


All times are GMT -5. The time now is 08:37 PM.