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 03-03-2007, 01:16 PM   #1
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Rep: Reputation: 30
Kernel 2.4 vs. Kernel 2.6


Hello,

I have a new computer with AMD Athalon X2 Dual Core Processor 4600+ 2.4Ghz, 128MB nVidia GeForce 7350 LE video card, nVidia integrated NIC, Lightscribe DVD drive, 1 GB RAM, DSL, integrated audio, HP AIO printer, etc. I plan on using this computer as a development/multimedia/multimedia_editing platform. My question is - which kernel would be better suited to my needs, the 2.4 or the 2.6 kernel? I am leaning towards the 2.6 kernel unless I hear some compelling reasons to remain with the 2.4 kernel.
 
Old 03-03-2007, 01:19 PM   #2
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
I got a similar processor as yours, and I prefer to stick to 2.6.x series.
I don't even know if a 2.4.x kernel would work properly on my machine

I just recompiled from 2.6.17.14 to 2.6.20.1 and it worked on the first try!!!

Linux prevails
 
Old 03-03-2007, 01:26 PM   #3
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
Hello,

Quote:
Originally Posted by raska
I just recompiled from 2.6.17.14 to 2.6.20.1 and it worked on the first try!!!
I tried to compile my kernel once before and I had alot of difficulties setting all the options and knowing what to enable and not to enable and compile into the kernel and what to have as a module. Very confusing and intimidating to me.

But, I am thinking of again trying to compile my own kernel, but I need a very good guide to hold my hand through the process.
 
Old 03-03-2007, 03:23 PM   #4
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
A great free guide can be found here:

http://www.kroah.com/lkn/

What I usually do is start with a .config from another kernel and strip it down, rather than going through all the options (which can take hours). In 2 weeks, I will again attempt to go through the menu and build one from scratch using the above guide.
 
Old 03-03-2007, 09:25 PM   #5
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally Posted by JMJ_coder
... I am thinking of again trying to compile my own kernel, but I need a very good guide to hold my hand through the process.
This guide, was the one I used through my first kernel recompile, some years ago

Even with a lot of expertise, upgrading kernel can go wrong, that's why I was amazed of getting 2.6.20.1 fine on the first try. Changing several versions tends to be more compicated, in general.

Give it a try Learning won't hurt, in general...
 
Old 03-03-2007, 09:52 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
It's really quite easy. Though I used menuconfig for a long time at first, I find xconfig to be more user friendly. And the first time or so, compile ALL your selections right into the kernel; that way, you will see if it works without having to worry about module loading and that stuff.
Later, you can remove much of it if you choose, leaving in the necessary video and harddisk/filetype stuff so it can boot; most of the other stuff can be left as modules if you like.
I still tend to compile close to 100% right in; it's simpler, IMO.
One thing to keep in mind: make sure you'se have the necessary kernel headers installed for the kernel you are compiling; I banged my head for a week or two over missing headers giving me all kinds of 'headaches'.
 
Old 03-04-2007, 06:23 AM   #7
Pollyanna
Member
 
Registered: Oct 2003
Location: Germany
Distribution: Slackware 10.2, SuSE 10.0, Solaris(SPARC) 9+Solaris(x86) 9, NetBSD(sparc) 2.0.2
Posts: 43

Rep: Reputation: 15
Modern kernel for the modern processor

Hi,

i tried to run an existing Slackware 11.0 with Kernel 2.4 on a new AMD Athlon X2 3800 and had all sorts of unpleasent problems (no sound, no DMA, only 800x600, ...) till i installed Kernel 2.6. From there on it has worked (almost) flawlessly.

No compiling needed!

And even if you *want* to compile, is the config of the Slackware Kernel 2.6 a good starting point.

So, i think you may want to use Kernel 2.6 or even Slamd64, which is an (unofficial) 64-Bit version of Slackware.


Have a nice day

Pollyanna
 
Old 03-04-2007, 07:30 AM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
The most important starting point is knowing your hardware. If you know your chipset, cpu and other basic components you can leave out many of the generic options and build the kernel to suit your machine, so I advise digging out your mobo book and having a good read.
 
Old 03-04-2007, 11:24 AM   #9
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Quote:
Originally Posted by GrapefruiTgirl
One thing to keep in mind: make sure you'se have the necessary kernel headers installed for the kernel you are compiling; I banged my head for a week or two over missing headers giving me all kinds of 'headaches'.
I've never had any problems compiling the 2.6 kernels using the 2.4 headers originally installed with Slackware. Matter of fact, and this was probably true in your case, unless you have some specific hardware requirements you should never upgrade your kernel headers from the ones used to compile glibc. Pat V. agrees and has posted this warning about doing so.

FWIW,
MMYoung
 
Old 03-05-2007, 04:03 AM   #10
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
MMYoung, the headers in the kernel-headers package have no effect on compiling a new kernel. The kernel sources include and use their own headers. The kernel-headers package is made up of some of the headers from the kernel which was used to compile the glibc version and the rest of the software in the release.
 
Old 03-05-2007, 07:46 AM   #11
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Yes, I have read all the info I could find about the kernel headers, including Pat's warnings etc.. I still have the 2.4 headers installed, however, try as I did, there was no way in heck that I could get the kernel(s) to compile until I installed the 2.6 headers along-side the 2.4 ones. Also, as per Pat's warning, I did for a while have to use a modem, and the modem drivers would NOT compile for 2.6 without those headers.
Ever since, everything has worked marvelously

I agree 100% with DIVE. Though in my case, my MOBO book is non-existant and/or devoid of useful info. I did a lot of browsing the net, including the MOBO manufacturers website and processor's website (MSI and Intel respectively) and both are excellent resources.
I definitely don't think I have an odd MOBO, however, it does have many more features built in than I ever knew about from my using Windoze..
I wanted support for my hardware sensors, onboard LAN, onboard audio, DMA & IDE chipset, and a bunch of other stuff including CPU features.
I can't explain the header situation any better, as I really don't know; but I have had near 100% success since installing 2.6 headers.
For the record, I have an MSI 6580 Max V2.0 mobo & i845G/PE chipset w/onboard Intel Pro10/100 (Rhine II) ethernet, C-Media & AC/97 Audio & Modem, Pentium-4 1.8 Ghz oc'd to 2.2 Ghz, w86327hf temp & fan sensors, and an nVidia GeForce4 MX440 AGP 8x video card.
Doing one's research on the systems components makes for a *very* good kernel compiling head-start.

Last edited by GrapefruiTgirl; 03-05-2007 at 08:01 AM.
 
  


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
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
kernel includes at /usr/src/linux/include do not match current kernel. blanny Red Hat 1 03-09-2006 07:53 AM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM

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

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