LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-23-2004, 04:43 PM   #1
jtp51
Member
 
Registered: Dec 2002
Location: Omaha, Nebraska
Distribution: Ubuntu 8.10
Posts: 79

Rep: Reputation: 15
/usr/src/linux -> linux-2.6.7: but I still boot 2.4.26


I have read and read the kernel upgrade posts and I have looked at the documentation on Slackware.org and I have two questions.

I have a symbolic link to linux-2.6.7, but I still boot in 2.4.26?

In the post by DaOne; it states:
Quote:
So...cd /usr/src/linux

pico Makefile

scroll to line 74 and
uncomment the the line #export INSTALL_PATH=/boot
That doesn't make any sense?

What I really need to know is if I download a kernel from www.kernel.org:

1. Where do I extract the kernel too?

2. When does any of the instructions to compile and install a new kernel apply?

If I run the 'make' commands in: /usr/src/linux, doesn't that mean that their needs to be a symbolic link to the new kernel folder first?

Again, I have:

/usr/src/linux -> linux-2.6.7

I am lost, the make commands listed in order is helpful, but what about setting up to get to that point?

Thank you for reading this post.
 
Old 10-23-2004, 04:59 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what you have done will have no effect whatsoever... not a clue what instructions you might have got hold of. you have not actually compiled a thing, a process that from scratch would take a nebie the best part of an hour most likely...

so anyway. that symlink is an extremely basic starting point, but the point where the kernel compilation stuff comes in is right now. all you currently have is an obscenely large amount of source code.
 
Old 10-23-2004, 05:04 PM   #3
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
- download a kernel or use the sources on your Slackware cd
- extract the tarball to /usr/src , it will be extracted to /usr/src/linux-<version>
- if you wish, you can make a symlink to the new source dir of the kernel , but this is not necessary
- cd /usr/src/linux-<version>
- make menuconfig
- etc. etc.

So the link is voluntary, you don't need it but it doesn't harm.
 
Old 10-23-2004, 05:08 PM   #4
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Rep: Reputation: 30
OK the easyest way is to go to slackware.com and go under testing and download the 3 files i believe there 3 and download them to where ever you wanna it doesnt matter. Then use installpkg to install all three. Then read the INITRD.README file in the /boot dir and it should work that worked for me!!!!!

Matt3333
 
Old 10-23-2004, 06:00 PM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
hi there,

i always thought that the "/usr/src/linux" symlink was important, but i think
rotvogel is right.
read this ( from Linus anno 2000) : http://www.linuxmafia.com/faq/Kernel...x-symlink.html

egag
 
Old 10-23-2004, 06:47 PM   #6
electronique
Member
 
Registered: Mar 2004
Location: Menomonie, WI
Distribution: SuSE 9.2, Slackware Current, Arch Linux 0.7
Posts: 119

Rep: Reputation: 15
Re: /usr/src/linux -> linux-2.6.7: but I still boot 2.4.26

Quote:
Originally posted by jtp51
I have read and read the kernel upgrade posts and I have looked at the documentation on Slackware.org and I have two questions.

I have a symbolic link to linux-2.6.7, but I still boot in 2.4.26?

In the post by DaOne; it states:


That doesn't make any sense?

What I really need to know is if I download a kernel from www.kernel.org:

1. Where do I extract the kernel too?

2. When does any of the instructions to compile and install a new kernel apply?

If I run the 'make' commands in: /usr/src/linux, doesn't that mean that their needs to be a symbolic link to the new kernel folder first?



Thank you for reading this post.
Hello there!
to answer your first question, the Kernel Source should be extracted to /usr/src
and then you make the sym link for the 'linux' folder point to the new kernel source tree

once you have that done, cd into the /usr/src/linux folder and open Makefile in your favorie txt editor (uncomment "export INSTALL_PATH=/boot") on line 450. This will automatically update the kernel image in the /boot folder

from the terminal execute make mrproper

copy the .conf file from the old kernel source tree (linux-2.4.xx) to /linux

As root:
open the terminal and cd to /usr/src/linux and execute the following commands:

make oldconfig (copies and uses as many options from the old kernel as possible)
make xconfig (to graphically review new kernel options and include them if you want to)
make
make modules_install
make install


Once that is done make sure that the lilo.conf file in /etc points to the correct BzImage and reboot, it should boot with the new kernel!
 
Old 10-23-2004, 07:01 PM   #7
WhiteChedda
Member
 
Registered: Aug 2003
Location: Florida
Distribution: Mandrake 9.1 for now
Posts: 205

Rep: Reputation: 30
Re: Re: /usr/src/linux -> linux-2.6.7: but I still boot 2.4.26

Quote:
Originally posted by electronique

Once that is done make sure that the lilo.conf file in /etc points to the correct BzImage and reboot, it should boot with the new kernel!
You have to run lilo after editing the config no? and its best to create an old image entry too in case something goes boom.
 
Old 10-23-2004, 07:07 PM   #8
electronique
Member
 
Registered: Mar 2004
Location: Menomonie, WI
Distribution: SuSE 9.2, Slackware Current, Arch Linux 0.7
Posts: 119

Rep: Reputation: 15
Re: Re: Re: /usr/src/linux -> linux-2.6.7: but I still boot 2.4.26

Quote:
Originally posted by WhiteChedda
You have to run lilo after editing the config no? and its best to create an old image entry too in case something goes boom.
Ah yes! You are correct you do need to run lilo (i forgot that step, I'm working on using grub on my system ) and also adding the linux.old entry is as simple as copying everything from the current kernel boot section install and just having it point to the old .bzimage and naming it "linux.old"
 
Old 10-23-2004, 08:54 PM   #9
jtp51
Member
 
Registered: Dec 2002
Location: Omaha, Nebraska
Distribution: Ubuntu 8.10
Posts: 79

Original Poster
Rep: Reputation: 15
Thank you, Thank you, Thank you.

This information is exactly what I needed.

I will go to work on this right now...
 
  


Reply



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
/usr/src/linux millennia DamnSmallLinux 6 07-24-2004 01:48 PM
linux kernal configurator tool points to /usr/src/linux-2.4/arch//config.in (BUG?) Stubzyboy Linux - Newbie 3 03-11-2004 03:03 AM
/usr/src/linux? krackerroot Slackware 6 10-26-2003 02:31 PM
I don't have /usr/src/linux ?!?!? Nikon01 Slackware 9 08-08-2003 12:23 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM

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

All times are GMT -5. The time now is 06:17 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