LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 05-12-2004, 10:00 AM   #1
sganarelle
LQ Newbie
 
Registered: May 2004
Posts: 13

Rep: Reputation: 0
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
 
Old 05-12-2004, 10:18 AM   #2
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
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.
 
Old 05-12-2004, 10:42 AM   #3
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
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)
 
Old 05-12-2004, 12:19 PM   #4
sganarelle
LQ Newbie
 
Registered: May 2004
Posts: 13

Original Poster
Rep: Reputation: 0
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.
 
Old 05-12-2004, 12:39 PM   #5
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
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.

Last edited by quip; 05-12-2004 at 12:45 PM.
 
Old 05-12-2004, 12:47 PM   #6
sganarelle
LQ Newbie
 
Registered: May 2004
Posts: 13

Original Poster
Rep: Reputation: 0
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?*******

Last edited by sganarelle; 05-12-2004 at 12:58 PM.
 
Old 05-12-2004, 01:01 PM   #7
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
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
 
Old 05-14-2004, 07:34 PM   #8
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Rep: Reputation: 86
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.
 
Old 05-15-2004, 07:05 AM   #9
xanas3712
Member
 
Registered: Apr 2004
Distribution: Slackware/Mandrake/Debian (sarge)
Posts: 266

Rep: Reputation: 30
****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
 
Old 05-17-2004, 05:26 PM   #10
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,227

Rep: Reputation: 86
This stuff is started at boot by some files inside /etc/rc.d/
 
Old 05-17-2004, 11:52 PM   #11
AFI_Flame
Member
 
Registered: Apr 2004
Location: Nolensville, TN
Distribution: OpenSuse 10.2
Posts: 253

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to fresh install w/ different kernel?? Archalien Linux - General 1 02-01-2005 10:27 PM
New Kernel on Fresh Install thom Slackware 2 01-24-2004 06:20 PM
Upgrading from redhat 9 to fedora - upgrade or fresh install Ross Clement Fedora 8 11-29-2003 04:10 PM
Kernel Panic on fresh install CyberLord_7 Linux - General 9 09-24-2003 10:38 AM
Fresh install kernel ? wr3ck3d Linux - Newbie 1 03-28-2003 07:25 PM


All times are GMT -5. The time now is 07:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration