Click to See Complete Forum and Search --> : Error trying to update to Kernel 2.6.8 (debian)


ncsuapex
02-13-2005, 03:31 PM
Im trying to upgrade my kernel from 2.4.27-1-386 to kernel-source-2.6.8

from this website

http://d-i.alioth.debian.org/manual/en.powerpc/ch08s04.html

I follow the steps below:

sudo apt-get install kernel-source-2.6.8
sudo tar xjf /usr/src/kernel-source-2.6.8.tar.bz2
cd kernel-source-2.6.8
make xconfig
sudo make xconfig



and get this error when I try to "make xconfig"


/usr/src/kernel-source-2.6.8$ sudo make xconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
*
* Unable to find the QT installation. Please make sure that the
* QT development package is correctly installed and the QTDIR
* environment variable is set to the correct location.
*
make[1]: *** [scripts/kconfig/.tmp_qtcheck] Error 1
make: *** [xconfig] Error 2


I'm pretty sure x11 is installed. When I do a "find" on x11 it comes back with a load of stuff.

Any ideas why this is failing?

bwkaz
02-13-2005, 03:58 PM
Just having X11 installed is not enough to run Qt programs (and xconfig is a Qt program). You need a recent version of Qt installed, along with Qt-devel. Probably also X11R6-devel (or whatever your distro calls it), and possibly some others.

Or, you could just install ncurses-devel, and use menuconfig. It's the exact same layout, except it's in a text mode menu setup.

ncsuapex
02-13-2005, 04:01 PM
Hey,

Thanks for the reply, right after I posted I installed all the QT packages just to be safe.. now I'm stuck at:
make-kpkg clean


UPDATE---

Ok I installed all the QT packages and the make xconfig command worked.


now when I run
sudo make-kpkg clean

I get this:

sudo: make-kpkg: command not found

Ive tried it in the following DIRS and get the same response

/usr/src/kernel-source-2.6.8
/usr/src/kernel-source-2.6.8/kernel


UPDATE- 2-13 7:54 PM EST

ok I got through all the steps in the above link, rebooted and chose the Linux 2.6.8 from the grub menu.

It loaded some stuff but stopped on this error:


VFS: Cannot open root device hda1 or unknown-block (0,0)

Please append a correct "root" boot option
Kernel Panic: VFS Unable to mount root fs on unknown-block (0,0)


my /boot/grub/menu.lst is

title Debian GNU/Linux, kernel 2.6.8
root (hd0,0)
kernel /boot/vmlinuz-2.6.8 root=/dev/hda1 ro
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.8 root=/dev/hda1 ro single
savedefault
boot

title Debian GNU/Linux, kernel 2.4.27-1-386
root (hd0,0)
kernel /boot/vmlinuz-2.4.27-1-386 root=/dev/hda1 ro
initrd /boot/initrd.img-2.4.27-1-386
savedefault
boot

title Debian GNU/Linux, kernel 2.4.27-1-386 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.4.27-1-386 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.4.27-1-386
savedefault
boot


Last Update:

YAY ME!

Ok I got it working:

I had to do an apt-get to get make-kpkg
then I did
sudo make-kpkg clean
then I had to apt-get fake root
sudo fakeroot make-kpkg --revision=custom.1.0 kernel_image

then:
sudo dpkg -i kernel-image-2.6.8_custom.1.0_i386.deb
then:
sudo mkinitrd -o initrd.img-2.6.8 2.6.8

rebooted and it works. Thanks for all the help.

plonka2000
04-15-2005, 10:40 AM
I'm coming from Gentoo to Debian on my server... So please bear with me if I'm using Gentoo-thinking here.

I'm having trouble working out howto download and install a 2.6 kernel to my fresh 2.4 debian install...

I did 'apt-cache search kernel-image' and I get a listing of lots of 2.4 kernels.
How do I specify my kernel to use 2.6 kernels so I can download one? I understand its a stable/unstable affair similar to Gentoo.

I've read various howto's on the internet and some state about downloading the kernel source from kernel.org and some state that this can be accomplished via apt-get...

Thanks anyone.

timothykaine
04-15-2005, 11:58 AM
If youre only getting 2.4 images then you must be using Woody. Woody doesnt have a 2.6 kernel.

If you want an apt'able 2.6 kernel you need to be using Sarge. apt-cache search kernel-image will then list several 2.6 kernels.

Youre using Stable, you want to use Testing, or even take a jump up to Unstable for the latest.