Kernel compiling problem

Place to discuss Fedora and/or Red Hat
Post Reply

What Kernel are you running?

Poll ended at Mon May 17, 2004 11:21 pm

2.6.x
0
No votes
2.4.1x
0
No votes
2.4.2x
6
100%
2.5.x
0
No votes
Older Thank 2.4
0
No votes
 
Total votes: 6

Buzza24
scripter
scripter
Posts: 59
Joined: Fri Mar 14, 2003 2:01 am
Contact:

Kernel compiling problem

Post by Buzza24 » Sat Apr 17, 2004 11:21 pm

Hey,

I am trying to compile the 2.6.4 kernel by hand from a turtorial from the net.

After finishing the

Code: Select all

make xconfig
it says to do the following command(s):

Code: Select all

#sed -e "s/EXTRAVERSION =/EXTRAVERSION = -selfcompiled/"
#mv new.Makefile Makefile
The turtorial I am reading off is this one:
http://www.linuxbeginner.org/modules.ph ... cle&sid=91

God Bless,
Buzza

Tux
guru
guru
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Post by Tux » Sun Apr 18, 2004 12:12 pm

You don't seem to say what your problem is?

But as far as this goes:

Code: Select all

#sed -e "s/EXTRAVERSION =/EXTRAVERSION = -selfcompiled/"
#mv new.Makefile Makefile 
I would advise you forget about it.

Also the instructions you are using are for a 2.4 kernel.
For 2.6.x this should suffice:

make xconfig
make bzImage
make modules
make modules_install
make install

Don't copy an old 2.4.x .config because it is the easiest way to run into problems, just start afresh.

Tux
guru
guru
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Post by Tux » Sun Apr 18, 2004 12:15 pm

Try this out for size.

Also, wait for advice from void because I havn't tried 2.6 on any of my RH?Fedora boxes yet so I don't know if there are any quirks.

agent007
administrator
administrator
Posts: 254
Joined: Wed Feb 12, 2003 11:26 pm

Post by agent007 » Sun Apr 18, 2004 12:23 pm

Wouldn't it be easier to do a apt-get and update the kernel? Infact, I think it even makes the relevant grub entries etc...

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sun Apr 18, 2004 3:49 pm

Yeah, not to discourage from compiling from source, but you can apt-get install the 2.6 kernel. The nice thing about doing it that way is it will also upgrade anything else necessary (modutils, etc). I am running 2.6.x on the Void web server and 2.6.x on an Alpha box running Debian SID but for anything else I am waiting until the distro ships with it (FC2). There are differences in the way modules are loaded so after you upgrade to 2.6.x your device modules likely will not automatically load (of course you could compile them all in rather than making them modules). I don't know if there are other places that have the 2.6.x RPM for FC1 but the one I've been using since 2.5.x is here:

Add this to your sources.list:

Code: Select all

# Arjan's 2.6 series kernel repository
rpm http://people.redhat.com arjanv/2.5 kernel
rpm-src http://people.redhat.com arjanv/2.5 kernel
Or if you are using the /etc/apt/sources.list.d directory you can just pu the above in it's own file called "kernel26.list" (or any other name you want to give it).

This makes life quite easy because then you can just do an:

# apt-get update
# apt-get install kernel

which will bring up a list of kernels:

Code: Select all

Package kernel is a virtual package provided by:
  kernel#2.6.0-0.test9.1.67 2.6.0-0.test9.1.67 [Installed]
  kernel-BOOT#2.4.22-1.2179.nptl 2.4.22-1.2179.nptl
  kernel-BOOT#2.4.22-1.2174.nptl 2.4.22-1.2174.nptl
  kernel#2.4.22-1.2179.nptl 2.4.22-1.2179.nptl
  kernel#2.4.22-1.2174.nptl 2.4.22-1.2174.nptl
  kernel#2.4.22-1.2140.nptl 2.4.22-1.2140.nptl
  kernel-BOOT#2.4.22-1.2115.nptl 2.4.22-1.2115.nptl
  kernel#2.4.22-1.2115.nptl 2.4.22-1.2115.nptl
  kernel-smp#2.6.5-1.326 2.6.5-1.326
  kernel#2.6.5-1.326 2.6.5-1.326
You should explicitly select one to install.
E: Package kernel is a virtual package with multiple good providers.
So in the above list you can see I currently have 2.6.0-0.test9.1.67 installed. If I wanted to install the latest one in the list I would do this:

# apt-get install kernel#2.6.5-1.326

This *should* add a GRUB entry in your /boot/grub/menu.lst file. It may not make it the default just just change the "default=" var (starts at 0 for the first entry).

Buzza24
scripter
scripter
Posts: 59
Joined: Fri Mar 14, 2003 2:01 am
Contact:

Post by Buzza24 » Sun Apr 18, 2004 4:03 pm

welll yeah Void I could do it that way but then I wouldn't be able custom config the Kernel which I need to do. Thanks any way, I may do that in the future.

I will go with Tux's reply and go with that.

Thanks everybody! :D

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sun Apr 18, 2004 4:10 pm

Well, the nice thing when you install a kernel RPM, you also get the "config" file that they used when building the kernel. I like to at least use that as a base as they most generally "work". You'll find the config files in /boot for each kernel that you have installed.

Post Reply