LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-19-2007, 08:07 PM   #1
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Rep: Reputation: 30
Installing kernel 2.6.18 on slackware 11


Hello all,
recently I've incurred a few problems with the current kernel i'm using, namely, 2.4.33.3.

So I used the kernel which comes on CD3 of the slackware cd download. I chose the test26.s kernel which is 2.6.18 kernel. I've searched all over the internet for an explanation on how this should be installed, however, I have run into a few confusions along the way.

I saw Daones guide, which I found very handy it worked, or so I thought, what I didn't understand at the time but do now is I did something wrong which instead of installing the new kernel it is simply installing the old stuff. I tried placing it in the directory /usr/src/ but when copying it over it asks if I wish to overwrite system map which I'm not sure if i'm able, because the test26.s one has system map, but so does the /usr/src/ directory.

Here are the files that comes with my package off the Cd.

bzImage
Config
System.map.gz

If these are all I need, then where do I place them? I assume once they're in the proper location Daone's guide will work for me. Thanks for any clarification.
 
Old 06-19-2007, 08:13 PM   #2
cdale77
Member
 
Registered: Oct 2006
Location: Berekeley
Distribution: Slackware 11; 2.6.21.1
Posts: 48

Rep: Reputation: 15
you need to install the kernel-generic and kernel-modules packages on disc 4. Then read the README.INITRD and do what it says, including editing /etc/lilo.conf and running /sbin/lilo.
 
Old 06-19-2007, 08:16 PM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Slackware packages are installed using the command

Code:
installpkg package_name.tgz
Take a look at http://www.slackbook.org/.

Brian
 
Old 06-19-2007, 08:25 PM   #4
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
I would love to be able to do that, but I do not have internet on my linux right now, so I cannot install anything outside of the cds 1-3 unless I download cd4 which I could do if you think its absolutely nessesary
 
Old 06-19-2007, 08:55 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I think the CD should prompt you to install the kernel you booted with. Anyway, assuming that all you want to do is install test26.s and you have only the 3 files you listed above then do: (extract the 'System.map.gz')

Code:
# remove the old
rm -f /boot/config.old
rm -f /boot/System.map.old
rm -f /boot/vmlinuz.old

# rename the present
mv /boot/config /boot/config.old
mv /boot/System.map /boot/System.map.old
mv /boot/vmlinuz /boot/vmlinuz.old

# copy in the new (this is assuming those files are in the current directory, if not, then provide full path)
cp ./bzImage /boot/vmlinuz
cp ./System.map /boot
cp ./config /boot

# change permissions of vmlinuz
chmod a-rwx,u+r /boot/vmlinuz
edit lilo.conf to something like this:
Code:
image = /boot/vmlinuz
  root = /dev/hda1
  label = Linux
  read-only
image = /boot/vmlinuz.old
  root = /dev/hda1
  label = Linux-old
  read-only
run '/sbin/lilo' (an absolute must).

And that's it.

Last edited by H_TeXMeX_H; 06-19-2007 at 08:58 PM.
 
Old 06-19-2007, 11:41 PM   #6
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
Talking

Tex? So we're ok to delete those files? I was so afraid of deleting them and throwing my system into tumult. Thanks so much, I will report back later with a hopefully successful tale.

Oh PS: Tex, the reason I'm trying to change is mainly due to the wireless problem among others as well, but thanks for your vigilance, I appreciate it.
 
Old 06-19-2007, 11:45 PM   #7
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
pss:


Quote:
image = /boot/vmlinuz
root = /dev/hda1
label = Linux
read-only
image = /boot/vmlinuz.old
root = /dev/hda1
label = Linux-old
read-only
My partitions are
hd1 -> windows
hd2 -> slackware
hd3 -> swapspace 4 linux

do you still consider your above quoted the exact way I should do my lilo?

Thanks!!
 
Old 06-20-2007, 12:27 AM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
No, the root line corresponds to your root partition.
 
Old 06-20-2007, 09:34 AM   #9
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
So its fine to keep it as texmex stated already?
 
Old 06-20-2007, 09:50 AM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
If your Slackware root partition is /dev/hda1, then yes, it's fine to leave it as it is.
 
Old 06-20-2007, 10:01 AM   #11
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
no, no that why I asked, because as I stated before my partition table has windows xp as the first partition with slackware and then some swap space.

I'll bare that in mind while editing lilo.conf. however, I have a new problem, texmex must not have actually checked out my 3 files or he may have made an error, but, I do not have vmlinuz. It didn't come in the folder test26.s and I do not have an active connection on this PC to get it. tex said in his instructions to cp ./vmlinuz /boot/vmlinuz, moreover, this is impossible as of now for me.

What can I do if anything at all?
 
Old 06-20-2007, 10:22 AM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
bzImage = vmlinuz (they are the same thing)

for lilo:
root = YOUR_ROOT_SLACKWARE_PARTITION_GOES_HERE

if this is true:
hd2 -> slackware
then it should be:

Code:
root = /dev/hda2
I'm guessing you forgot the 'a' in hd2 ? hda2 ?

I'm pretty sure if you open up lilo.conf the right one should be in there already or it wouldn't be booting right now.

Last edited by H_TeXMeX_H; 06-20-2007 at 10:23 AM.
 
Old 06-20-2007, 10:38 AM   #13
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
Ahhh thanks for the explanation. Sorry for my stupidity.
 
Old 06-20-2007, 10:47 AM   #14
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
for lilo.conf do I want to have it set to present two slackware kernels?

ex:

image = vmlinuz.old
root = /dev/hda2
label = slackware.old
read-only
image = bzImage
root = /dev/hda2
label = slackware

??
 
Old 06-20-2007, 10:49 AM   #15
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
once this all is complete do I then go into Daone's guide and make everything or should if be ready?

I mean make everything like this:

make menuconfig
make et cetera
make ....

there are a few commands he gave there which I haven't done for these given files you've helped me get right.
 
  


Reply

Tags
installtion, kernel, slackware



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
2.6.17 kernel while installing slackware Starwobble Linux - Newbie 7 11-11-2006 04:29 PM
Trouble installing new kernel in slackware 10.2 briansaysword Linux - Newbie 3 10-01-2006 06:46 PM
Installing Slackware and 2.6 kernel beserkjay Slackware 4 07-10-2006 02:18 PM
Slackware 10.2 and installing kernel 2.6 Arles Linux - Newbie 4 10-29-2005 06:11 PM
Installing Kernel 2.6.11.8 w/ SlackWare AxXium Slackware 4 05-09-2005 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:55 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
Open Source Consulting | Domain Registration