Slashdot Mirror


Configuring the 2.6 Linux Kernel

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.

19 of 279 comments (clear)

  1. Do it the easy way : Get Manadrake 10-beta2 by Anonymous Coward · · Score: 5, Informative

    Mandrake 10 will be the first major distro use Kernel 2.6. Download the beta here.

    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.

    1. Re:Do it the easy way : Get Manadrake 10-beta2 by 77Punker · · Score: 4, Informative

      Yeah yeah...Debian has had kernel 2.6 binaries for a while now in apt-get.

    2. Re:Do it the easy way : Get Manadrake 10-beta2 by Anonymous Coward · · Score: 5, Informative

      Yes, but Mandrake 10 has a lot of other new stuff, that is optimized for Kernel 2.6. Here are some other reasons to try Mandrake 10.

      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.

    3. Re:Do it the easy way : Get Manadrake 10-beta2 by dan+the+person · · Score: 4, Informative

      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).

      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.

    4. Re:Do it the easy way : Get Manadrake 10-beta2 by Jameth · · Score: 4, Informative

      Slackware has been 2.6 ready since 9.1 Just install 2.6 and your good to go. Mandrake 10 may be the first major distro to ship with 2.6 included, but that's just because Slackware's release schedule was ahead of the kernel, so it added proactive support, as any good distro would do.

  2. slackware users out there by mfivis · · Score: 5, Informative

    I found this sticky at linuxquestions.org's forums to be most helpful in doing an easy and straightforward 2.6 compile on a slackware system. LinuxQuestions.org

  3. Re:They need a tutorial on this stuff? by forlornhope · · Score: 5, Informative

    copy your /boot/config-2.x.y to the source directory as ./.config and then make oldconfig. It will go through all the old options setting them and present you with only the new options. Its a text only interface, but its pretty simple to choose between y/n/m/? and each option is pretty self explanitory. I think you can also step back a version using the same method, but Im not sure about that.

    --
    "We Don't Need No Truthless Heros!" - Project 86
  4. Re:They need a tutorial on this stuff? by Anonymous Coward · · Score: 4, Informative

    by the way, while you're at it, there is an option to have a compressed configuration file included inside the kernel image itself, and to be read from /proc/config.gz ( applies only to 2.6 kernels and some patched 2.4 kernels only )

  5. ITS AN ADVERT!!! by Anonymous Coward · · Score: 5, Informative

    This is just a very loosly disguised advert for TimeSys Linux

    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

  6. Re:Configure your own kernel by blackrider · · Score: 4, Informative

    It wont solve the main problem, but you can enable the /proc/config.gz option in the 2.6 kernel, so you can access the old config at any time through the /proc interface.

  7. Re:2.6 breaks KVM support by The+Irish+Jew · · Score: 5, Informative

    I've used a KVM w/ both 2.6.0 and 2.6.1 and have had no problems. The trick was to use "IMPS/2" as the mouse protocol instead of "Auto". That, along with your ZAxisMapping option should be all you need to get it to work. Assuming of course your KVM is ps/2.

  8. Re:Default by Torne · · Score: 5, Informative

    The default x86 kernel config always used to be Linus's machine; I don't know if this is still the case. =)

  9. Re:Usability? by Weird+O'Puns · · 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.

  10. 2.6, X, and stuff by NixLuver · · Score: 5, Informative
    The 'GUIFication' of the Linux kernel is interesting, but not mandatory. Make menuconfig still works, so you don't have to have X. Also, most of the bells and whistles related specifically to application space can be de-selected, so runaway featuritis is at least controlled.

    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.

  11. Re:2.6 breaks KVM support by Nerant · · Score: 5, Informative

    There is a 2.6 Input Drivers Faq . It covers some of the more common issues, including some KVM problems.

    --
    Be kind. There are too many mean people out there already.
  12. Re:Usability? by Spoing · · Score: 4, Informative
    1. Is the 2.6 kernel "Usable" yet?

    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;

    1. 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;

    1. By this I mean getting obscure hardware to work such as my USB Midi Interface, -- USB MIDI support is included, though I haven't tried it.

    2. and what about proprietary drivers such as Nvidia's, will existing code compiled for 2.4 kernel work? There are updates, and they work fine; install the same way as with 2.4. Check the normal places on Nvidia's site.

    3. or will you have to recompile stuff (IPTables for example). Im running a gentoo box. I haven't, though I don't have Gentoo (Fedora Core 1).

    4. I've been toying with updating the kernel to 2.6 and I've been hearing that there are a lot of radical changes to the kernel, the performance enhancements are very exciting to say the least. It's better for average use, and low latency apps should work much better (ex: sound processing), though I haven't noticed much of a speed boost. 2.4 was snappy already.

    5. But what kinds of headaches am I going to have with a real world (used as a desktop as well as a server) system? Rebooting. Checking the software versions. Looking at all the possible options in the 2.6.x kernel -- though this is much easier with the updated menus in the confiuration screens ('make xconfig' (QT)/'make gconfig' (GTK)).

    Normal precautions, nothing special.

    --
    A firewall can not protect you from yourself. Turn off what you do not need. Do not use the firewall to do your work.
  13. Re:Configure your own kernel by Neil+Watson · · Score: 4, Informative

    When you add new hardware that is not needed at boot (e.g not a bood device), simply build the kernel feature to support your new device as a module. Install the module and you are ready to go. No rebuild or reboot needed. You don't throw away config files. You save them for later use. The config procedure gives an option to save your config to an alternate location.

  14. Re:is it so much different than 2.4? by Trelane · · Score: 4, Informative

    Speaking from experience (P1 100MHz, no MMX, 16MB RAM, 500MB disk), going from 2.4 to 2.5 was a beautiful, beautiful thing. Sure, it'll give you a ton more performance on a high-end box, but it makes a low-end box much more usable.

    --

    --
    Given enough personal experience, all stereotypes are shallow.
  15. 2.6 on NForce-based motherboards by FuzzyBad-Mofo · · Score: 4, 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.