LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Several more questions about kernel compile? (https://www.linuxquestions.org/questions/slackware-14/several-more-questions-about-kernel-compile-276364/)

BajaNick 01-10-2005 10:28 PM

Several more questions about kernel compile?
 
From reading the Compiling a kernel for newbies, I have a few questions before I attempt to upgrade to 2.6.10.

1. I use Reiserfs, Do I have to do anything special before I upgrade the kernel. I read that on the 2.6.8 kernel, reiserfs must be enabled by default. Where is that done? or is not necessary for 2.6.10?

2. What makefile do I edit? Where is it?

3. After I have downloaded it, Where do I put the new kernel and uncompress it? /usr/src ?

4. I did the lilo.conf changes then did lilo, rebooted and I dont see the old version in the lilo boot menu, How can I fix this?

I know this might be asking a whole bunch but this is my first attempt at a kernel upgrade and dont have any idea what I am doing other than this post and several other websites I have found. Thanks for any help. :)

tw001_tw 01-10-2005 11:06 PM

Just off the top of my head - Here is some of your answers:


Quote:

3. After I have downloaded it, Where do I put the new kernel and uncompress it? /usr/src ?
Yes. /usr/src/ . Then when you uncompress it, it will uncompress in /usr/src/linux-2.6.10
But you link (symbolically) /usr/src/linux to /usr/src/linux-2.6.10.

Quote:

4. I did the lilo.conf changes then did lilo, rebooted and I dont see the old version in the lilo boot menu, How can I fix this?
Here is how (part of my lilo.conf)

Code:

# Slackware 2.6.7 config begins
image = /boot/vmlinuz-generic-2.6.7
  initrd = /boot/initrd.gz
  root = /dev/hda1
  label = Slack-2.6.7
  read-only
# Slackware 2.6.7 config ends
# Slackware 2.4.26 config begins
image = /boot/vmlinuz-ide-2.4.26
  root = /dev/hda1
  label = Slack-2.4.26
  read-only
# Slackware 2.4.26 config ends

I made the " image = " direct paths to the vmlinuz-version#. In some how-to's you will read
that 1 goes to 'vmlinuz' and the other to 'vmlinuz-old.version'. I did it this way to keep
it easy for myself.

I had a heck of a time getting a 2.6.x kernel working starting from scratch, so I just used the
2.6.7 off slack CD #2. :)

Hope that helps a little.
-tw

BajaNick 01-11-2005 01:44 AM

Thanks, that helped out. :)

egag 01-11-2005 07:59 AM

hi,
to your Q.'s :

1) always compile in the filesystem you use ( so, not as a module )
you choose that when you configure the kernel ( i always use " make xconfig " )

2) if you want to edit the makefile ; you'll find it in the dir. : /<path>/linux-2.6.10
after you extracted the kernel-sources

3) extracting to /usr/src is ok. ( you could also take your home-dir or smth. else )
there's no need to make a link to it.

4) edit lilo.conf as shown above.

egag


All times are GMT -5. The time now is 07:02 AM.