[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: upgrade sarge from 2.0 to 2.6



Roberto C. Sanchez wrote:
Ron Johnson wrote:
[snip]
If you self-compile, then it's a lot like 2.4:
# apt-get install kernel-source-2.6.10 libncurses-dev libqt3-mt-dev
# cd /usr/src
# tar xvfj kernel-source-2.6.10.tar.bz2
# rmdir linux && ln -sf kernel-source-2.6.10 linux
# cd linux
# make clean
# make {x|menu}config
# make modules_install
# cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.xx
# cp System.map /boot/System.map-2.6.xx
# cp .config /boot/config-2.6.10
# vi /etc/lilo.conf  ## If you're Old School!
# lilo -v

Once you get a good kernel, then when next you upgrade, you'll be
able to run "make oldconfig".  It's glass-TTY, but makes it trivial
to retain existing config options.


Holy smokes.  What is all this about?  No one on Debian should be
building a kernel like this unless they have a really good reason.
Install kernel-package and read the documentation or check out this
site: http://newbiedoc.sourceforge.net/system/kernel-pkg.html

Here is a neat piece of instructions that matt zagrabelny gave me on this list a while ago:

[quote]

(i use aptitude to install packages, not apt-get, but feel free to use
apt-get if you like)

# aptitude install fakeroot kernel-package kernel-source-2.6.10

and optionally

# aptitude install libncurses5-dev

edit /etc/mkinitrd/ files, (man mkinitrd.conf if need be)
in mkinitrd.conf (i made the following changes):
ROOT=
DELAY=5

add modules to modules file.

add yourself to group src. (log in again)

cd /usr/src/, untar kernel source, cd to source dir.
cp /boot/config-2.6.10-<whatever> .

$ fakeroot make-kpkg clean

the following on one line:
$ fakeroot make-kpkg --append-to-version=.20050224.0 --initrd
kernel_image

note, the append to version can be just about anything, but dont use
dashed or underscores, i think debian proper packages use those. i use
the date and then a zero based number counting the number of compiles
for that day.

# dpkg -i /usr/src/kernel-image-2.6.10-<append-to-version-stuff>.deb

reboot

[/quote]

--
Andrey Andreev
University of Helsinki
Dept. of Computer Science



Reply to: