title Debian GNU/Linux, kernel 2.6.11-1-k7 root (hd0,5) kernel /boot/vmlinuz-2.6.11-1-k7 root=/dev/sda6 ro initrd /boot/initrd.img-2.6.11-1-k7 savedefault boot
KernelTrap has a summary of a lengthy discussion on the Linux kernel mailing list, in which Linus Torvalds has suggested using an alternative numbering scheme for kernel development. The current 2.6 kernel has been different than older development trees, as active development has been happening at a rapid rate in the officially "stable" kernel, instead of forking the expected 2.7 "development branch" for this effort. In Linus' latest proposal, he suggests using the same odd and even arrangement where an odd number signifies a development release, and an even number signifies a stable release. The difference being that this will all happen under 2.6 and thus at a much more rapid rate. For example, the upcoming 2.6.12 release would focus on fixing bugs and thus be more stable, while the following 2.6.13 release would include new functionality and thus could be less stable.
In /boot/grub/menu.lst, duplicate from
title Debian GNU/Linux, kernel 2.6.11-1-k7 root (hd0,5) kernel /boot/vmlinuz-2.6.11-1-k7 root=/dev/sda6 ro initrd /boot/initrd.img-2.6.11-1-k7 savedefault boot
to
title Debian Sarge with GRML kernel root (hd0,5) kernel (hd0,2)/boot.grml/isolinux/linux26 root=/dev/sda6 ro initrd /boot/initrd.img-2.6.11-1-k7 savedefault boot
$ dir /lib/modules/ drwxr-xr-x 6 root root 472 04-01 10:05 2.6.11-1-k7/ mount /dev/sda7 /mnt/os1/ rsync -vua /mnt/os1/lib/modules/ /lib/modules/ $ dir /lib/modules/ drwxr-xr-x 6 root root 472 04-01 10:05 2.6.11-1-k7/ drwxr-xr-x 12 root root 712 07-09 16:09 2.6.16-grml/
documented on: 2006.07.10
From: Andreas Rippl <a.rippl@gmx.net> Newsgroups: gmane.linux.debian.user Date: Thu, 31 Mar 2005 00:00:45 +0200
> Would someone clarify what kernel-image needs to be installed to keep the > system updated when new kernel are made available? > > I installed kernel-image-2.6.8-2-686 and everything is working fine. From the > package descriptions it appears that kernel-image-2.6-686 is the package that > always points to the latest available kernel image, thus automatically > upgrading kernel whenever "aptitude upgrade" is run.
Exactly
> Should I have installed kernel-image-2.6-686 instead of > kernel-image-2.6.8-2-686 to ensure that aptitude upgrades the kernel image > whenever a newer version is available?
Exactly
But, I for one prefer _not_ to upgrade my kernel packages automatically, so I install the next version whenever I choose to. Which more and more makes sense to me, as the newest 2.6 kernels seem to have some stability issues at the moment, so I am happily running 2.6.7-1-686-smp…
Andreas Rippl
Newsgroups: comp.os.linux.misc Date: Sat, 27 Aug 2005 12:57:19 +0200
> > I want to upgrade my kernel from 2.4 to 2.6. Yeah, I know the simple > > answer is install the 2.6 kernel and boot into it. > > It actually *IS*. > > > For me particularly, I use SCSI emulation for my CDs in kernel 2.4... > > If I upgrade my kernel to 2.6, I think I have to tweak those CD modules > > manually -- to use the ATAPI interface only. > > To my greatest surprise, they just work out of box. wow...
LOL. Guess you were too curious to wait for answers and just jumped into the pond :)
Now, there has been a change in module-init-tools between 2.4 and 2.6, the "routing" can be done with links in /etc/alternatives (depending upon which kernel, proper module loading/module config files are chosen). You will want the kernel source and at least configure it, to be able to work with things like nvidia drivers, vmware and many more.
Walter Mautner
Newsgroups: gmane.linux.debian.user Date: Wed, 30 Mar 2005 11:48:00 +0100
mike holden <everythingzenned@yahoo.com> writes:
> apt-get -install kernel-image-2.6.8 > and it started to install. scary thing is, it didn't > ask me any questions reguarding modules I wanted to > install or anything. But right after I did that I > rebooted to check the install. Now X won't start (No > core pointer) error and eth0 is (Device not found) > when I ifup. any idea why? My NIC (linksys) runs off > of the tulip driver so it isnt any big NIC card driver
You might have to:
modprobe tulip
if that loads a card driver you can then:
ifup eth0
you could add that to /etc/modules
The 2.6.8 debian kernel is highly modularized so nerally everything *should* be availble as a module. Trouble is, if you were using a compiled in driver before the module won't get loaded automatically.
As for your pointer problem you might have to:
modprobe mousedev
and then see what happens. If it works you could add that to /etc/modules as well.
Nic Ferrier
Newsgroups: gmane.linux.debian.user Date: Mon, 1 Nov 2004 17:58:17 +0000
> i want to compile and install a new kernel. Using aptitude to search the > "kernel" package, i find there are "kernel-source" and "kernel-header" > packages. > Should i install the both kernel "source" and "header" to install the new > kernel?
No, just the source. The header package is there so that you can compile stuff that includes kernel headers without having the full kernel source installed.
> Another interesting question: if i install "kernel-source-2.6.8" and at > the same time "kernel-header-2.6.7", what will happen?
It'll either complain or bugger things up :-) (Why would you want to?)
Pigeon
$ uname -r 2.4.25-1-386
debfoster kernel-source-2.4.25 kernel-headers-`uname -r`
NB,
% debfoster kernel-source Package kernel-source is a virtual package [...]
cd /usr/src/ tar jfx kernel-source-2.4.25.tar.bz2
ln -s kernel-source-2.4.25 linux
cp /boot/config-* linux/.config
cd linux
# use all answers from ./.config file $ make oldconfig *** End of Linux kernel configuration. *** Check the top-level Makefile for additional configuration. *** Next, you must run 'make dep'.
# Finally, do a "make dep" to set up all the dependencies correctly. $ make dep
This might be optional. You can also upgrade between 2.4.xx releases by patching. Patches are distributed in the traditional gzip and the new bzip2 format. To install by patching, get all the newer patch files, enter the top level directory of the kernel source (linux-2.4.xx) and execute:
gzip -cd ../patch-2.4.xx.gz | patch -p1
or bzip2 -dc ../patch-2.4.xx.bz2 | patch -p1
The script patch-kernel can be used to automate this process. It determines the current kernel version and applies any patches found.
linux/scripts/patch-kernel linux
The first argument in the command above is the location of the kernel source. Patches are applied from the current directory, but an alternative directory can be specified as the second argument.
Make sure you have no stale .o files and dependencies lying around:
cd linux make mrproper
You should now have the sources correctly installed.
Kernel package by itself does not create any configuration file (.config); it uses whatever you have. You can use your current version made for you machine by copying it over from /boot/config-Y.Y.YY, like so:
% cp /boot/config-Y.Y.YY .config
cp /boot/config-* linux/.config
Kernel package by itself does not create any configuration file (.config); it uses whatever you have. Do a "make config" to configure the basic kernel and generate this configuration file.
Alternatively, use "make xconfig", which is X windows based configuration tool. Exit and save your configuration. This will create a hidden file named ".config" in your current "/usr/local/src/linux" directory. You could edit this file directly to make changes to your configuration, but I wouldn't. All that this step has done is to set up this configuration file. This file is read by the actual kernel compilation process to compile the options you've specified.
Do not skip this step even if you are only upgrading one minor version. New configuration options are added in each release, and odd problems will turn up if the configuration files are not set up as expected.
Alternatively, you can use your current version made for you machine by copying it over from /boot/config-Y.Y.YY,
cp /boot/config-* linux/.config
If you want to carry your existing configuration to a new version with minimal work, use "make oldconfig", which will default all questions based on the contents of your existing ./.config file, and only ask you for the answers to new questions.
Finally, do a "make dep" to set up all the dependencies correctly.
Use the command "make-kpkg clean; make-kpkg kernel_image". This will cause a bunch of grinding and text; details omitted.
This step is a Debian-way of compiling the kernel. The "other" way is to do it manually, which consists of several steps such as "make dep" and "make modules" and "make modules_install" and manually finding and moving the kernel to where it needs to be and setting up symlinks and configuring lilo.conf and running lilo.
I'm preparing my Debian kernel-source so that I can compile my pctel modem driver.
I've done the kernel-source-preparing before in RedHat, basically:
make mrproper # get the configuration file ready, then make dep
But when I compile my pctel modem driver, I get the "no modversions.h file found" error:
$ ./configure -auto checking for running kernel version...2.4.25 checking for ptserial...ptserial-2.4.7.c checking for gcc...3.3.4 searching for kernel includes...found at /usr/src/linux/include checking for modversions.h...** error modversions.h could not be found you probably need to configure your kernel, please read the FAQ about no modversions.h file.
> But when I compile my pctel modem driver, I get the "no > modversions.h file found" error:
Install the 'kernel-header-<version>-1-<arch>' package, where:
<version> is the version of your kernel, and <arch> is the architecture type, be it 386,486, etc.
Also, I recommend you install 'build-essential'.
When you're lost again, use 'apt-cache search kernel-header | less' if you find the name of the package to be elusive.
Thomas Adam
Newsgroups: gmane.linux.debian.user Date: Wed, 11 Aug 2004 14:15:52 -0400
> I am experiencing unresolved kernel symbol problem > when compiling my pctel modem driver. > > The compilation and installation was ok. When trying > to load the module, I get: > > ... unresolved kernel symbols
> How can I fix it. Thanks
Problem solved. Just for the archive, Installing kernel-headers is not enough, I need to install kernel-source and "prepare the kernel source".
T