How To Upgrade Linux To The 2.6 Kernel 351
An anonymous reader writes "Here's a good computer project for the long labor-day weekend. KernelTrap has posted a howto detailing eight steps to upgrade your GNU/Linux OS from the 2.4 stable kernel to the 2.6.0-test development kernel. Complete with screen shots, the end result sounds to be well worth the effort." Since chances are most people will be upgrading anyway once 2.6 is deemed release-worthy, it's always worth learning the upgrade procedure well.
I'm having trouble!!! (Score:5, Funny)
-bash-2.05b$ uname -a
Darwin Bruce 7.0.0b1 Darwin Kernel Version 7.0.0b1: Tue Jul 29 15:27:33 PDT 2003; root:xnu/xnu-470.obj~1/RELEASE_PPC Power Macintosh powerpc
I'm really confused, any ideas?
Re:I'm having trouble!!! (Score:5, Funny)
This is what I get:
C:\WINNT\system32>uname -a
'uname' is not recognized as an internal or external command, operable program or batch file.
Re:I'm having trouble!!! (Score:2, Funny)
My kernel is 8.0 (Score:4, Funny)
Re:My kernel is 8.0 (Score:2, Funny)
*slaps some rh and mdk users around*.
release-worthy? (Score:5, Informative)
IMHO it already is
If you haven't tried it out already, go download -test4 now! Even if it's just to see if all your hardware works, if you report any problems now you don't have to deal with them when 2.6.0 is officially "stable".
Re:release-worthy? - Not quite there on SPARC! (Score:5, Informative)
I surely hope you emailed the sparc maintainer... (Score:3, Informative)
Re:release-worthy? (Score:2, Interesting)
Re:release-worthy? (Score:2)
The other thing that happened before was lots of people saying the'd just installed "it" last night. Well, guess what. I actually did. Put 2.6.0test4 on a problematic nForce2 Asus board with 3 gigs of ram. we'll see if it handles the chipset any better.
I've been compiling kernels now for like 5 years.. and I've never been able to get a single 2.5
Re:release-worthy? (Score:2)
On a dual p3-800: up 2 days, 4:19
Pretty snappy, works with nvidia, sb512 (emu10k1) no lockups, or anything, the only thing I haven't tried is the tv capture...
Re:release-worthy? (Score:5, Informative)
Re:release-worthy? (Score:2)
Seems complicated (Score:5, Funny)
Re:Seems complicated (Score:3, Insightful)
actually, it's even simpler (Score:4, Informative)
Re:Seems complicated (Score:2, Funny)
You should switch to that luxury car amongst bicycles:
SCO Unixware 7.
of course ... (Score:2, Funny)
gcc 2.95? (Score:5, Interesting)
Re:gcc 2.95? (Score:3, Informative)
bwindle@morpheus:~$ cat
Linux version 2.6.0-test3 (root@morpheus) (gcc version 3.2.3 20030415 (Debian prerelease)) #29 Mon Aug 11 11:56:22 EDT 2003
Re:gcc 2.95? (Score:2)
Re:gcc 2.95? (Score:2)
I've got another machine running 2.6.0-test4 that was compiled with gcc2.95, no crashes yet.
Re:gcc 2.95? (Score:2)
2.95 had fewer bugs. It's also a common denominator. Distros have had gcc2.95 for a while. Or 2.93 or whatever that was. I just upgraded recently by libc, gcc, kernel, and recompiled almost 50 slackware distro included libs. That freaking sucked. I had to comile X, Qt, and KDE. Oh my freaking god. Just those three combined was over 3GB. My poor computer had been compiling non stop for 3 weeks. I highly recommend those who are new or aren't masochistic like me to just
Re:gcc 2.95? (Score:2)
I'd say it's just paranoia (the kernel of course being the most important thing to compile correctly, next to glibc, and gcc itself).
Re:gcc 2.95? (Score:5, Informative)
There is still an architecture or two that requires gcc 2.95 to compile properly (unless you're running Sparc 32 you are probably OK) and there are some developers still fond of it because of 20% or so faster build speed. The cord will likely be cut in the next cycle.
Gcc 3.x has worked just fine for me for the past couple of years. I switched at 3.0.7 and didn't have any problems with kernel builds, though 3.2+ is recommended, because of C++ binary compatibility.
Debian Sid has gcc 3.3.2 at the moment, and Redhat switched to the 3 series a year or so ago.
Re:gcc 2.95? (Score:3, Informative)
Re:gcc 2.95? (Score:2)
This would be because (some of) the 2.4 ports haven't been cleaned up, and possibly never will be. I should have mentioned, I was talking about 2.6. Though to be sure, it's important that 2.4/x86 just works, so the vast majority of users can use gcc 3.2+ without worrying. Since it's installed by default on most distributions, you have to go out of your way
Re:gcc 2.95? (Score:2)
2.6 ROCKS (Score:5, Informative)
I'm not particularly fond of the new make xconfig, but didn't give it much of a chance. I went with `make menuconfig' and ncurses instead.
Performance is noticably improved. Not just "some people told me it's better and well, maybe it is a little", but actual tangible improvements. Even typing into xterms seems faster. (I did enable the preemptible option, but this seems even better than when I did it with the old patch to 2.4.)
This is the most pleased I've been with a new kernel in ~6 years of using Linux. Highly recommended!
Re:2.6 ROCKS (Score:2)
Re:2.6 ROCKS (Score:5, Funny)
Hey, just wait 'till 2.6 Release is available -- The case fan will spin faster, the speakers will be louder, and the "on" LED will glow brighter, too!
Question (Score:2, Interesting)
the kernel successfully, but found that xterm and
rxvt didn't work because they didn't have pty's.
Re:Question (Score:3, Informative)
1) You didn't compile in devpts
- Solution: Compile in devpts support.
2) You didn't mount
- Solution: Add a line like this to your
none
Depending on your distribution, you might need to fiddle around with the owner of that - if you have a tty group defined, add a gid=[tty gid] option in, so it looks like this:
none
A couple more items (Score:2)
That is one of two items that he missed in the article. Indeed, in the 2.4.x kernels if you used devfs you did not need to enable /dev/pts file system support but you do with 2.6. Interestingly, now that devfs is officially in the kernel they are thinking of replacing it with udev.
Also, it is not mentioned that you need to create the /sys directory. It apparently has something to do with sysfs which I don't quite understand yet, but it was necessary to get all my sensors reading correctly.
alsa? (Score:3, Insightful)
Re:alsa? (Score:2, Informative)
Re:alsa? (Score:3, Informative)
Well need to note, you still need the alsa-lib, but they don't need to be changed just because you are bouncing kernels.
Another positive recommendation (Score:4, Informative)
Cons:
Some defaults were funny at first (like missing console drivers, etc.) and I've noticed the mouse being a little jumpy some times. Nothing big so far.
All things considered: great kernel! Thanks guys.
rpm -ivh kernel-* (Score:2)
I'll just use the distro build which is packaged properly. That's not to say I'm not excited by the new features, etc., but I've long ago decided my life should not be spent compiling and tweaking things in which I have no particular expertise or passion. Those with expertise and passion are going to do a better job.
My experiances with 2.6 (Score:4, Informative)
RPMs for Redhat 9 are available (Score:2, Informative)
Re:RPMs for Redhat 9 are available (Score:2)
If you're running Mandrake Cooker (or the current rc's) and have a Cooker contrib source defined, you can just "urpmi kernel-2.6".
Thanks go to Olivier Thauvin for the contribution.
Best quote (Score:2)
Anybody start thinking about Austin Powers at this point?
FatBastard: I'm Sooooo Sexxxxxxyyy.
Unofficial Redhat Kernel 2.6 RPMS (Score:3, Informative)
Check the readme [redhat.com] for the apt or yum lines to add to your configs.
I used apt4rpm to easily install 2.6pre4 yesterday.
mr.
Here's Two Kernel Testing Articles for You (Score:5, Informative)
You can help the kernel developers immensely by testing your kernel methodically and thoroughly rather than just casually trying it out.
It's also important for you to test new kernels, even stable kernels, before putting them to use on a production machine. Even if they work well for everybody else, you may be blessed to discover your very own bug.
Also realize that because Linus can issue a new kernel anytime he feels like it, there is no particular requirement that a kenel be tested before its released. It's happened a number of times that "stable" kernels have been released that have turned out to be quite broken, especially on non-x86 architectures.
So please read, enjoy, and put to good use:
There are other articles [sunsite.dk] on web application quality and C++ programming, with more to come. So far they are all under the GNU Free Documentation License.
I am actively seeking more translations if you want to help out.
kernel.org (Score:2, Funny)
)
I wonder (Score:2)
make config
make menuconfig
make xconfig
make gconfig
How in the world is posiible, that no KDE user has been whining yet that there's no make kconfig
Does that mean that THE G/K Cold War is over???
Re:I wonder (Score:5, Interesting)
Re:I wonder (Score:2, Informative)
How in the world is posiible, that no KDE user has been whining yet that there's no make kconfig
They did not whine, because "make xconfig" == "make kconfig" ;-)
Re:I wonder (Score:2)
Radeon Framebuffer Console? (Score:2)
It's like it puts the console on 1/4 of the display, and it "bleeds" one vc onto another.
Sorry that's the best I can describe it.
Tao (Score:4, Insightful)
I've had to support, debug, fix, and otherwise un-screw-up many computers in my time. Inevitably, the closer a system is to what everybody else is using, the more likely it is that any problems with it will have been seen and solved countless times before.
That's why the idea of countless legions of users out there each recompiling his own kernel just makes my blood run cold. This is the twenty-first century, peoples! Why is it necessary for anyone other than a kernel developer to compile the kernel sources? Why haven't all the optional pieces been broken out into modules yet?
Re:Tao (Score:4, Interesting)
Why is it necessary for anyone other than a kernel developer to compile the kernel sources?
Because this is still a development kernel. No Linux distribution ships with binaries of this kernel. So if you want to run it, you have to download the source and compile it yourself.
Why would anyone want to do that then? Because this is an open source project, and by running the test kernels, you help expose any lurking bugs so that they can be fixed. Once they're all fixed, the kernel can then be formally released. Distributions will ship with it, and people will then be able to run this kernel without the need to compile it themselves.
Should just anyone do this? No. This kernel isn't yet fit for a production environment. But people with spare machines, or who want to experiment, can do this if they want to contribute.
Why haven't all the optional pieces been broken out into modules yet?
Oh, they have been. Take a look at any of the major distributions. They ship with standard kernels, in which support for pretty much everything that can be modularized, is. That way it's as close as possible to a one-size-fits-all kernel and most users have no need to recompile it. About the only thing that can't be taken into account by this approach is CPU optimization, which is why a lot of distros ship with a set of otherwise identically configured kernels, each optimized for a particular CPU type.
Re:Tao (Score:3, Interesting)
How hard is it to automatically, each night, roll the latest test kernel into a Debian package and a Redhat RPM? That way, people don't have to go to the trouble of compiling their own copy of it -- and, more importantly, they don't run the risk of screwing up the compile and making their system unbootable and/or introducing problems which might be mistaken
Re:Tao (Score:5, Informative)
Because there are simply too many variables for a manageable number of binary releases to cover. You have different CPU types -- and not just x86 ones -- to optimize for. Just the x86 ones alone would require half a dozen separate builds or more, without taking into account SMP or lack of SMP.
Then you have build tools. Different versions of the compiler, of binutils, of the module tools, etc, all can expose subtle bugs. And they can introduce incompatibilities -- third-party modules built with one version of gcc won't work with a kernel built with another.
Then you have the way the system is going to be used. If you have a desktop system with lots of RAM and disk space, great, build everything and have at it. But if you're targeting an embedded platform, you may not be able to do that, so you'd want to build a much smaller subset of the kernel, possibly with some core features removed, or a different scheduler than most desktop users would want to use, etc.
Simply put, the cross product of hardware platform, intended use of the system, and development tools, is too large for binary-only releases of test kernels to be a useful test article.
What you're arguing for makes sense at the distribution level. And in fact it's there already: there's never any reason for anyone to compile their own kernel, IF they stick to production kernels. But in a testing environment, there's no way that a manageable number of binary releases is going to cover all of the possibilities.
A much better guide (Score:5, Interesting)
A much better guide is Dave Jones's Post Halloween 2.5 [kernel.org] document, which, although very slightly dated, does a much better job explaining how and why things have changed in 2.6 and their impact when upgrading from 2.4.
Something We Can All Do To Help... (Score:4, Interesting)
However, that doesn't mean we can't all contribute a little for these architectures. The PC has SPARC and ARM emulators, for example, which are about as close to the real thing as you're likely to get.
Even if only a handful of Slashdot readers who don't normally do kernel work just grab an emulator, cross-compile 2.6 for it, and see what breaks -- hey, it might make all the difference between a working 2.6 and another Brown Paper Bag release, for those architectures.
"Why go to all the effort? It sounds hard work!"
It really isn't. Arcem is pretty much complete, and even comes with a Linux image. As I'm suggesting a cross-compile, you don't have to worry about 90% of the "requirements". The filesystem tool is about all you absolutely need to update on the Arcem image.
"What do I get out of it? I don't even use this processor!"
Finding a single bug - even a single mis-placed #ifdef, as in the SPARC architecture, mentioned elsewhere - and getting a fix submitted, would earn you a place in the CREDITS file. You get to add the emulated architecture to your resume (if it's fashionable, such as the PPC64, SPARC64 or IX64). You also get "bragging rights" as an OS kernel developer.
That's not bad personal compensation for the effort needed. Linux itself gains, by getting more extensive testing on lesser-used architectures, where it has a good chance of cornering the market.
uh.. that doesn't cover everything (Score:3, Informative)
For example, no official nVidia drivers for the 2.6 kernel yet. It's patch city for you, good luck.
No VMware modules either. Again, good luck.
Not that it can't be done, but it takes a whole lot of time and your system will be very fragile.
Personally, I'm waiting till the new kernel is supported by the software I use. I actually use my Linux system for real work so I can't have much down time.
kernel upgrades as a major turnoff (Score:3, Insightful)
I'm not complaining, but shouldn't this be easier if linux is ever going to make it into the realm of familiarity?
Re:kernel upgrades as a major turnoff (Score:3, Insightful)
Isn't having to fix some things by delving into an arcane database noone understands using "regedit" a turnoff for new windows users? New users should just use the kernel that comes with their distro. Theres no reason anyone _has_ to compile their own shiny new 2.6 kernels. Once it's out of the -test phase, the distros will pick it up, and the users will get
Re:Advantage: Bill (Score:4, Funny)
Re:Advantage: Bill (Score:2)
As a newby you would just type
apt-get install kernel-2.6.0
Or rpm equivelant.
Re: (Score:2, Insightful)
Wrong (Score:2)
Users will upgrade, because they want to have "the latest thing." You're underestimating shiny-things-syndrome.
Re: (Score:2)
Re:Advantage: Bill (Score:5, Insightful)
Re:Advantage: Bill (Score:4, Insightful)
Re:Advantage: Bill (Score:3, Insightful)
And for all users who complain about a kernel compile being hard compared to windows, if you think about it, in windows you aren't given the option to modify the compi
Re:Advantage: Bill (Score:5, Insightful)
Re:Advantage: Bill (Score:2)
Right. So I'll shut up now. :)
That'll teach a Windows techie to post about Linux!
Re:Advantage: Bill (Score:2)
Installing, removing, and upgrading software is far easier on Linux, as good Linux distros have a centralized application for maintaining their software. Windows has no equivalent. There is no way to make sure that AIM is up to date, as is your ssh client, as well as your IRC client, etc... You can do it for some core Microsoft stuff
Deeeeer this is in the "Developers" section (Score:2)
When 2.6 has filtered down to Mandrake, Red Hat etc.... you will get the kernel as part of an upgrade.
Re:Advantage: Bill (Score:2)
This will probably kill its speed and bring it to Windows' level. Please don't let it be.
Re:Advantage: Bill (Score:3, Funny)
Re:Advantage: Bill (Score:2)
Clue: This is not for Joe User.
Mass market:
Red hat upgrades - click "Software updates".
Re:Advantage: Bill (Score:2)
My shampoo comes with instructions.
Re:Advantage: Bill (Score:2)
Re:Advantage: Bill (Score:2)
<childbrain>
Ok shampoo... uhmm what should I do with it
I
Must be something else
Oooouuuchhhhhhh
Ah I apparently should put it in my hair... Mmmmm that feels better
</childbrain>
Repeat until learned
Re: You actually prefer... (Score:3, Funny)
You're officialy banned from visiting
Re:I've got other plans... (Score:2, Insightful)
However, I do use Linux on my desktop every day, and I'm very happy with it. (However I tend to stick to BSDs for most servers) It's taken me about 5 years of using it off and on (started in 97 or 98) to get comfortable with it as a desktop system. And earlier year I finally removed Windows completely from all of my systems.
Linux can be
Maybe I'm lucky.. (Score:3, Interesting)
I've been modded down for saying this before, but screw it....
What is so frigging hard for you people about installing Linux?
I've installed 5 different distros on about 10 computers. Gentoo and Debian gave me grief; there's no point pretending they didn't. But I wouldn't expect someone looking for a painless installation process to use them.
But RedHat, Mandrake and SuSE never caused me any problems. Ever. X worked. The mouse worked. The sound worked. The NIC worked. The internal modem didn't work, but I
Oh come off it.. (Score:3, Insightful)
Re:I think Linus was too fast ... (Score:5, Informative)
Really? The two nicest desktop operating systems I've used are MacOS X and BeOS. OS X is based on the mach microkernel, while BeOS has its own microkernel. And before you say BeOS is dead, take a look at the new version [yellowtab.com] (still in private beta).
Microkernels are still very much alive. They don't give quite the performance of macrokernels, but they have a number of advantages (like not needing a reboot to replace large portions of the kernel, and drivers not being able to crash the kernel). With current system speeds, the flexibility of a microkernel is well worth the speed trade-off, on the desktop at least. On a server / workstation I would probably still choose a macrokernel.
Re:I think Linus was too fast ... (Score:2)
Linus is just human. He might be right. He might be wrong. He does have some insight, and does deserve respect, from anyone who might disagree. Most of all, he is entitled to his opinion.
I do disagree with his opinion on this, but not strongly.
My rationale is this. I accept that Microkernel's are less efficient. But computers aren't getting any slower either. Remember in 1983 when some doubters believed that GUI's would never amount to anything and we shoul
Qnx (Score:2)
OS X is really a bad example of a micro kernel OS because it is a single server BSD system running on top of Mach. Mach is a really old Microkernel and stuff like "drivers not being able to crash the kernel" aren't true with it because the drivers are compiled into the kernel (or loaded into the same address space as modules, depending on which implementation of Mach one uses). Yes, Apple's Mach uses userspace USB and Firewire drivers through the usage of different libraries, but Linux can do that to with l
Bzzt! (Score:2)
Re:I think Linus was too fast ... (Score:2)
In BeOS, it's as easy as modifying whatever you wish, and hitting "Restart Networking".
With the new BONE based networking stack (available online if you search google) for BeOS R5, or the modified BONE that's coming in Zeta, any changes you make will be applied for you automatically.
It's the one thing that irks me, is rebooting JUST TO CHANGE a simple value.
The BeOS Way is to define
Re:I think Linus was too fast ... (Score:2)
In BeOS, it's as easy as modifying whatever you wish, and hitting "Restart Networking".
Actually, changing IP & DNS in Windows is just the same, since 2000.
No restart required.
Domain and machine name changes though do still require reboots though, I'll grant you.
Re:I think Linus was too fast ... (Score:3, Informative)
The ONLY thing you have to reboot for is a kernel upgrade, new hardware that you can't hotplug, or fucked hardware ( IE shitty nVidia drivers just raped the AGP bus. )
All of your attacks seem to be based on Windows 95. Some are still valid with Win2k, but none seem valid directed against linux.
Re:I think Linus was too fast ... (Score:2, Informative)
Security should be enforced in the kernel but should not be put in the kernel. Here's what I mean, I do not want a kernel that performs authentication, but when authenticated it should stick it to it. I believe that is how the kernel works, and its much better than putting "PAM", S
Microkernels (Score:3, Informative)
While Linus's opinion on the matter is well known, Microkernels are far from dead. It's just that Mach gave them a bad name. Mach was too bloated and too slow, while the new breed of microkernels have unbelievably fast IPC primitives and therefore the potential to revolutionize the way operating systems are built. Mach sucks != Microkernels suck.
See, for example, the L4 [l4ka.org] project.
Re:Microkernels (Score:2)
Re:thor's howto: (Score:5, Informative)
Isn't Debian still on 2.2? (Score:2, Insightful)
To be sure you have all the right tools too... (Score:2)
Re:thor's howto: (Score:2)
ACCEPT_KEYWORDS="~x86" emerge mm-sources-2.6.0-test4-r2
It checks to see if you have module-init-tools, but otherwise, all it does is grab the kernel package from a mirror (btw, it gets the full package, not the patch updates).
You still have to make menuconfig and compile...
Re:You need a HowTo? (Score:2, Funny)
Good example.
Re:You need a HowTo? (Score:2)
Re:Linux 2.6 and loopback encryption? (Score:3, Informative)
Kerneli isn't a worth while choice anymore and it hasn't been as long as jari has been working on the AES(blowfish, serpent,twofish,etc) support. I suggest you stop trolling and use it
Re:btw, your knowledge is out of date... (Score:3, Informative)
loop-aes is faster. Ask the mailing lists if you want someone to explain the reasons. loop-aes has other neat crypto projects like aespipe as well. In genereal I agree with the framework, I however don't think that I trust it yet. If it's better, I will hear a great deal about it and I imagine, jari would merge or do something like that.