Configuring the 2.6 Linux Kernel 279
An anonymous reader writes "This article is the first in a series by William von Hagen on using the new Linux 2.6 kernel, with a special emphasis on the primary issues in migrating existing drivers, applications, and embedded Linux deployments to a Linux distribution based on the 2.6 kernel. Bill is the author of Linux Filesystems, Hacking the TiVo, SGML for Dummies, Installing Red Hat Linux 7, and is the coauthor of The Definitive Guide to GCC (with Kurt Wall) and The Mac OS X Power Users Guide (with Brian Profitt)." This looks to be a good series for anyone planning to migrate to Linux 2.6, and having done just that myself, I'll attest to wanting more documentation along the way.
Do it the easy way : Get Manadrake 10-beta2 (Score:5, Informative)
Easy to install, just download the ISOs, burn to disk, reboot and the installer will appear.
Make sure to REPORT ALL BUGS, unless you want to see the LG incident again.
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:5, Informative)
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:2)
The NVIDIA install tool worked beautifully on the 2.6 kernel. X started up without any troubles.
I'm certainly glad I didn't have to recompile the kernel.
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:2)
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:2, Interesting)
But wait I think there's also emerge gentoo-sources-dev
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:5, Funny)
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:4, Funny)
ya, only if you're using the unstable packages...
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:5, Insightful)
I stick to the "hard" way.
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:5, Informative)
XFree86 4.4 (better GUI)
KDE 3.2
NPTL
Mozilla 1.6
And most improtantly, Improved Usabillity
Kernel 2.6 is like a new engine, but the experiance is a lot nicer when you get a whole new car to go with it.
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:2)
Okay, I JUST installed XFree86 4.3. Care to briefly summarize what's better in 4.4?
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:3, Insightful)
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:2, Informative)
X4.4 includes autoconfguration (bye bye XF86Config) and ipv6, as well as a host of bugfixes.
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:2)
i must say, it is VERY rare that Mandrake or Redhat ever impress me... but i am impressed; until now only bleeding edge LFS users (and probably gentoo has some way of doing this) were using the Native POSIX Threads Library.
being able to use it is one of the things i have looked forward to in the 2.6 series the most. I just switched from LFS to Debian, and i dont think even debian offer NPTL yet; and despite all the flaming they get for ancient packages in "stable" releases, "testing/unstable" is usual
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:2, Funny)
Um, I *have* a working gentoo, today. Or do you mean a working gentoo using NPTL? If that's the case, then yeah, your apache test page appears to be working very well.
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:3, Insightful)
All depends on the hardware doesn't it? (Score:2)
Of course installing from scratch will also take time but be a little bit more general in your time estimates please. Just because it is 20 minutes for you does not make that a hard fact for the time of compiling a kernel.
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:5, Funny)
Gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo gentoo!
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:2, Funny)
with many apologies to everyone.
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:4, Funny)
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:3, Informative)
I hate the way Mandrake makes KDE look disgusting whereas SUSE makes it look beautiful, and also functional as opposed to Mandrake's default usless patterns around all the windows.
I couldn't find any links to my drives on the desktop or elsewhere, and so was unable to get the CD out (not counting rebooting or command-line unmounting which are both unacceptable for a modern OS aimed at the public).
the configur
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:5, Informative)
Did you try pressing the eject button on the CD drive?
I release that might not be obvious for a seasoned linux user, but for the rest of the planet it is.
Mandrake has had supermount for removeable media for a long time now.
Re:What eject button? (Score:2)
As for macs, why not map the CD eject button on your keyboard to
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:2)
Re:Do it the easy way : Get Manadrake 10-beta2 (Score:5, Informative)
Works quite well (Score:2)
As for other drivers I need, they're all already included in the kernel.
They need a tutorial on this stuff? (Score:4, Insightful)
I have never compiled my kernel before, and today I jsut compiled the 2.4 version, installed and later compiled 2.6.1 and installed... all without any problems.
Enough rant
I just like the config file method. Does this mean that I can keep my config file (for compiling the kernel) when I upgrade to the next stable? (keeping in mind that I have it customized)
Re:They need a tutorial on this stuff? (Score:4, Informative)
Yes, that's what the "make oldconfig" is for. You need to overwrite the .config file first. This goes for the 2.4 series kernels - I don't know if it has changed in the 2.6 series?
zRe:They need a tutorial on this stuff? (Score:5, Informative)
Re:They need a tutorial on this stuff? (Score:4, Informative)
Re:They need a tutorial on this stuff? (Score:2, Informative)
IANAKH, so feel free to correct me.
Re:They need a tutorial on this stuff? (Score:2, Insightful)
Re:They need a tutorial on this stuff? (Score:2)
Re:They need a tutorial on this stuff? (Score:2, Interesting)
`zcat
You have your old config in place, I used it to upgrade from 2.6.1 to 2.6.2 very handy indeed.
Re: (Score:2)
slackware users out there (Score:5, Informative)
Re:slackware users out there (Score:2)
Compiling kernels on Slackware has always been easy and straightforward. Kernel 2.6 works out of the box (well, as out of the box as you can be for a source tarball) on Slack 9.1, without the need for patches, tweaking daemons etc. It just works. That's one of the reasons I switched to Slack early on when I was learning Linux. It's so simple, it's newbie-friendly.
Default (Score:5, Interesting)
Re:Default (Score:5, Informative)
Re:Default (Score:2)
Usability? (Score:5, Interesting)
Re:Usability? (Score:4, Informative)
Re:Usability? (Score:2, Interesting)
AFAIK, for drivers, if it works in 2.4, it's supposed to work in 2.6.
iptables support is pretty much the same aside from having a gazillion new options to play with, and of course you'll need to recompile the iptable support in the kernel (what else? you're compiling the kernel anyway)
Well, as far as I've been using 2.6, it's very much "usable", there aren't any show-stopping problems that I've encountered on any 2.6.0 + kernels of yet, and it's quite stable. (I have a 32 da
Re:Usability? (Score:4, Informative)
Kernel 2.6 is very usable and stable. I've been running mm-sources since 2.5.5x and haven't had any major problems with it. There's hardly any need for recompiling packages (there are few exceptions though, mostly packages that install some kind of kernel module, svgalib for example). One thing you must do is to replace modutils with module-init-tools.
Gentoo forums are relly your friend. There are tons of threads concerning 2.4 to 2.6 upgrade, including some howtos.
Re:Usability? (Score:5, Informative)
In sum, yes. As with any major kernel update you have to have the matching user space parts or many devices will not work. Required documentation is included with the kernel;
README (case sensitive) and
./Documentation/Changes (as noted in README)
Keep in mind that if you don't need support for specific hardware -- say, ISDN or PC-Card/PCMCIA -- you can skip updating those packages.
Specific comment: Alsa is now the default sound system, and it needs updated supporting tools if you want to get a peep out of your audio. Point for point comments;
Normal precautions, nothing special.
Re:Usability? (Score:2)
Re:Usability? (Score:2)
Erm...didn't I go over that? Son-of-a-gun! I DID, in my SECOND SENTENCE EVEN!
When kernels change, it's not too unusual to have these user space tools require an update
Re:Usability? (Score:2)
= 9J =
Re:Usability? (Score:2)
The first thing is pick a kernel; development-sources or mm-sources are the vanilla 2.6 kernel and one of the more expermental patch-sets respectively. Love sources ebuilds are also in the forums, and some people swear by them. Initially, I'd go for development-sources.
Without repeating everything in the forums guide, you'll need to emerge module-init-tools, and re-emerge the nvidia-kernel ebuild. You shouldn't need to recompile much else. You also can unmerge t
kernel 2.6 and gentoo 1.4 (Score:4, Informative)
It wasn't as smooth an upgrade as I'd've liked, but, like I said, I'm fairly new to all this.
When I first upgraded, I did get a lot of errors/warnings on boot, but I have since fixed them all.
Ensuring you have the latest versions of hotplug and module-init-tools will help your migration to 2.6, as there are changes to h/w detection and module loading.
Take care when doing make oldconfig from an earlier gentoo kernel - gentoo kernels have had various performance patched in them for some time, but -- if I recall -- these settings didn't all magically migrate across, as the gentoo kernel build flags and the official kernel build flags have differing names for these features between 2.4 and 2.6. Just remember to check all your options with make menuconfig or similar. Some other build flags have changed names too, including stuff for usb devices and (IIRC) framebuffers -- this will probably only catch you out if you're migrating settings from an older kernel.
After building and installing my 2.6 kernel, I also installed the latest nvidia package from nvidia's website, and alsa-lib and alsa-utils (both 1.0.2, from portage)
Also, there are changes to how some system stats/info is handled/reported - ensure you have an up-to-date version of procps, or top might give some cranky info... some tools that monitor memory levels (gkrellm, various gdesklets) will stop working because the output of
Other than the meminfo issue, kernel 2.6 hasn't broken anything (that I've noticed) on my gentoo system, and it appears to work very well.
(Oh, kernel 2.6 did cause one of my drives to give warnings about unexpected DMAs every few mins, but that totally fixed itself once I stopped overclocking the CPU. The drive was running slower with a mis-firing DMA, but other than the warnings, no problems occured (YMMV). Something in 2.6 must be more timing sensitive or less tolerant of overcranked h/w speeds. NBD: my system is a few years old, the extra ~20% speed increase cannot is insignificant when compared to speeds of a modern CPU - it seemed a lot at the time!)
Re:Usability? (Score:2, Funny)
Re:Usability? (Score:2)
KernelWiki (Score:5, Interesting)
Re:KernelWiki (Score:2)
Seriously, just go ahead and do it. If no one uses it, take it down.
is it so much different than 2.4? (Score:4, Interesting)
Re:is it so much different than 2.4? (Score:2, Funny)
Re:is it so much different than 2.4? (Score:5, Informative)
Re:is it so much different than 2.4? (Score:3, Interesting)
It's mine. Even when I'm compiling the latest kernel or listening to MP3s or running SETI@Home, or even doing all three at once, I have nary a skip or a hitch. The mouse and keyboard stuff is always
Re:is it so much different than 2.4? (Score:2)
-molo
2.6 breaks KVM support (Score:4, Interesting)
Re:2.6 breaks KVM support (Score:2, Informative)
Probably just a problem with your KVM or setup.
Re:2.6 breaks KVM support (Score:5, Informative)
Re:2.6 breaks KVM support (Score:5, Funny)
Could you please point me to the click-n-drool option button in Windows2000 that allows me to enable command-line completion? What, I have to manually edit the registry? D00d, Windoze isn't ready for the masses...
Re:2.6 breaks KVM support (Score:4, Interesting)
I dont know about w2k, but winxp supports command-line completion out of the box. Just hit tab as you would on linux
Re:2.6 breaks KVM support (Score:2)
Re:2.6 breaks KVM support (Score:2)
Pretty much the same argument as upgrading to WinXP for command-line completion (except, of course, that upgrading from Win200 to WinXP costs money, whereas upgrading to a new version of a linux distro doesn't automatically cost anything.)
Re:2.6 breaks KVM support (Score:2)
Re:2.6 breaks KVM support (Score:5, Informative)
Re:2.6 breaks KVM support AND LVM too (Score:2)
Importance of Documentation (Score:4, Insightful)
Re:Importance of Documentation (Score:2)
Configure your own kernel (Score:4, Interesting)
Re:Configure your own kernel (Score:4, Informative)
Re:Configure your own kernel (Score:2, Informative)
Or alternatively you can take a kernel configuration of your favorite distribution and tweak it to your liking. Most distributions will include drivers for all common hardware as modules.
Re:Configure your own kernel (Score:2)
Re:Configure your own kernel (Score:5, Informative)
Re:Configure your own kernel (Score:2)
Re:Configure your own kernel (Score:2)
Well, I only have 8 in there...
But really, its not that hard to just recompile it when you add new devices. I do that all the time. If you don't want to reboot, you can just add it as a module when you get the device, and save a few megs of hard drive space. Hell, you could probably make room for another couple oggs by deleting all those unused modules. Just hit m on the new device, then make modules, make modules_install, and depmod -a and you are all set.
I have had two problems with 2.6.2:
ITS AN ADVERT!!! (Score:5, Informative)
Nothing any monkey cant work out in about five minutes (and if they cant they should not be cross compiling for embedded devices)
Since most people dont RTFA this isnt a problem, if you are one of the many... dont bother - its S**T
More binaries needed (Score:5, Interesting)
I think this will turn out to be a great series of white papers helping people get to grips with the process of configuring and compiling their own kernels, but I have to say that I think there would be faster progress on new kernels if the was some central repository of precompiled binary packages for the major distros throughout the development cycle.
The truth of the matter is that now linux is gaining wider acceptance, the community is filling up with more and more noobs and we should be doing more to help them understand the "new" (to them) technology. We also need to remember that not everyone who wants to use the software needs to be some sort of guru.This article is a great start to moving more people to the new code quicker, but regular up to date debs/rpms for all the current distributions will push that long even faster. I know someone will probably post saying "but there are packed versions for xxxx at somewhere.org", but they are often difficult to find for the noobs who just don't know where to look.
2.6, X, and stuff (Score:5, Informative)
The 2.6 kernel is noticeably faster on my dual Athlon 2100+mp, at the user interface; X is faster than I've ever seen it before; the realtime scheduling is awesome.
In short, as soon as you can reasonably do so, I recommend you migrate to the 2.6.x kernel.
Re:2.6, X, and stuff (Score:2)
just in time (Score:3, Funny)
seems like a few other people have this problem. Does anyone know the solution? Will i have to write the addresses of all the ports manualy and switch off ISAPNP for OPL3SA2?
One major problem in migration... (Score:4, Informative)
You can use the standard ATAPI ide-cdrom driver now to burn your CDs, but the userspace programs haven't caught up to this in all distros, especially the GUI ones. cdrdao just doesn't work last I checked, and while cdrecord works alright in the newer versions, many GUI frontend burners simply use cdrdao too much to be useful.
Other problems I had were that lm_sensors changed a bit and I didn't find it important enough to upgrade to newer userspace stuff, but anyone who's relying on them for anything will likely want to know that it's changed and upgrades to userspace are necessary. The only other issue, which was fixed by a quick Googling was that the module system is changed and module-init-tools is now necessary for loading and unloading kernel modules.
-N
Stay with ide-scsi if you want (Score:2, Informative)
That's great (Score:4, Interesting)
We should make a repository of hardware configurations and which options should be turned on depending how you will use it. People should just say hey, I got this machine here with this hardware. I'm using it as a web server, and this is my kernel config. If enough people put there configs in, then people like me could find others with similar or identically matching hardware and use those configs. I'm sure it would also bring to light better configs for most people. I'm sure there's some guy out there not selecting a certain option who should be. And if he posts his config online some geek will be sure to point it out to him.
Which distro(s) already have the 2.6 kernel? (Score:2)
2.6 on NForce-based motherboards (Score:5, Informative)
If you are upgrading an NForce-based machine to 2.6.x, save yourself some headaches and add "noapic nolapic" to the Kernel append string. I experienced repeatable hard lockups when doing disk intensive I/O until adding those parameters.
Also, NVIDIA's nforce package is no longer necessary. The experimental forcedeth driver in 2.6.2 works quite well in my experience, and apparently an Intel sound driver works for the NForce onboard sound.
See my latest journal entry for my account of migrating MDK 9.1 to a vanilla 2.6.1 kernel.
Re:2.6 on NForce-based motherboards (Score:3, Informative)
I recall reading somewhere that disabling ACPI while keeping APIC enabled should also solve the issue. In other words: the problem apparantly only occurs when BOTH ACPI AND APIC are enabled on systems with Nforce2 chipsets.
Wasn't there supposed to be a patch out there fixing this issue already? And if so, why hasn't it been merged in the tree by now? I know, I know, the 2.6 tree is still quite yo
Misinformation (Score:5, Insightful)
This recent trend in GUIfication of Linux is troubling, and your post illustrates exactly why. It's the same 'logic' that allowed MS to call Windows an 'Operating System' before it really was. It's the same logic that lusers use when they say that they 'can't get into the Microsoft' when they really mean there's an application problem.
Computers are NOT monolithic, they are NOT black boxes. They are boxes of legos, where you can build what you want, when you want it, and leave out the crap. You have control.
Unless you cede responsibility and control to someone else.
Re: (Score:2)
kernel != X (Score:2)
Re: (Score:2)
Worse than uninteresting (Score:2)
Re:SCTP support (Score:4, Funny)
Re:The Communist-Linux Connection (Score:3, Funny)
Re:The Communist-Linux Connection (Score:5, Insightful)
As opposed to, say, Microsoft or Oracle providing the software? And you don't think that the Chinese (or Indians, or Russians, or whatever) have the ability to write software themselves, that programming is somehow a uniquely American talent? If you get your head out of whatever other anatomical place it's parked in, you'd see how silly that is.
One of the advantages of Windows never mentioned in the article is the ability of Microsoft to remotely deactivate Windows XP in the case of a national emergency.
And you wonder why the rest of the world is moving away from it. Whether it's true or not, just making statements like this hurts the U.S. software industry more than anything that Stallman can say.
A known proponent of socialism, the Chinese government and RMS are natural allies.
Well golly, Bubba, it seems that the Bush administration has been getting pretty cozy with the Chinese government, too. If anyone's looking to sell out Taiwan, there's where you want to direct your vitriol. Are you aware that the President's brother, Neil Bush, is getting rich lobbying for China? No, I didn't think so...
Oops... I think I got baited!
Re:The Communist-Linux Connection (Score:2, Funny)
Send in the clones!
The Computer is your friend!
Re:The Communist-Linux Connection (Score:2)
The real verdict (Score:2)
Re:Disapointing Linux Benchmarks. (Score:2)
ext3 and kernel 2.6