LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-24-2005, 08:27 AM   #1
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Rep: Reputation: 30
Unhappy deb kernel trouble and initrd


I am trying to upgrade from the stock kernel 2.4.27 supplied with sarge to 2.6.10. I have seen some posts suggesting that you need to use only debian kernel source. Isn't that only if I am using a precompiled kernel. If I am compiling myself, can't I use the source from kernel.org?

So I have downloaded the 2.6.10 kernel from kernel.org
Updated all packages needed for compilation
and compiled using

make menuconfig
make bzImage
make modules
make modules install

then moved the kernel to /boot and renamed to vmlinuz-2.6.10
also moved System.map to /boot
added the new kernel to /boot/grub/menu.lst

I am not sure if I need to make initrd
my filesystem is ext2 and is compiled into the kernel
other fs are modules

I could not boot without initrd, so I tried makeinitrd
then added initrd path to the new kernel entry in grub

Still will not boot
I get an error something like it "cannot read hdb1, please enter correct root path" or something like that

any ideas, sorry I cannot give the exact error because I am at work right now and no access to the machine. I can give more specific later if needed.
 
Old 01-24-2005, 10:32 AM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
I've always used the Debian sources and the "Debian way" of kernel compiling, so I may not answer this completely correct. However, the Debian sources have patches that are needed to get the initrd to work. As I understand it, the Debian initrd uses the cramfs filesystem and support for that filesystem must be patched into the kernel. I'm not sure what other patches are made to the kernel. The Debian source for kernel 2.6.10 is in unstable, so you can easily install it with:
Code:
apt-get -t unstable install kernel-source-2.6.10
if you have unstable sources in your /etc/apt/sources.list file. Apt-get will install the compressed kernel source in /usr/src. You will just need to unpack it and symbolically link it to /usr/src/linux:
Code:
cd /usr/src
tar -jxf kernel-source-2.6.10.tar.bz2
rm linux
ln -s kernel-source-2.6.10 linux
cd linux
make menuconfig
Then you can configure the kernel and compile as you did before. I find it easier to compile the "Debian way" though. After configuring, if you run:
Code:
make-kpkg --initrd --append-to-version=-debian kernel_image
It will automatically compile the kernel, modules, and create the initrd. It will create a deb file located in /usr/src. If you install it with dpkg, the kernel, modules, and initrd will be installed and thr grub bootloader will automatically be updated with an entry for the new kernel.
 
Old 01-24-2005, 01:21 PM   #3
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
I also used the "debian way" for my kernel (2.6.8). It didn't create the initrd I expected either, so I recompiled making sure to include not just my filesystems, but the driver for my IDE controller. Now it boots great without the need for initrd.
 
Old 01-25-2005, 07:47 AM   #4
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Original Poster
Rep: Reputation: 30
It works! Thanks.

I am now back to where I was with Mandrake.

Debian seems very good. I really like apt-get.

Now if I can just get my sound card working...
 
Old 01-25-2005, 10:19 AM   #5
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
type alsaconf at the command-line, to recofigure the alsa package after a kernel upgrade. Just for good measure I did a apt-get upgrade alsa as well before configuring it.
 
Old 02-04-2005, 03:11 AM   #6
imagineaxion
Member
 
Registered: Sep 2004
Location: Epsom, Surrey
Distribution: Ubuntu & Mac OS X
Posts: 141

Rep: Reputation: 16
hi

i'm also trying to install the 2.6.10 kernel

i typed the command to get the kernel source from unstable but i just get a responce saying: couldn't find package.

do i need to dl the unstable packeage list first or... ?

thanks
 
Old 02-04-2005, 03:41 AM   #7
imagineaxion
Member
 
Registered: Sep 2004
Location: Epsom, Surrey
Distribution: Ubuntu & Mac OS X
Posts: 141

Rep: Reputation: 16
ok so it seems for some reason i needed a reboot or something i'm not sure.

anyway i typed in (as root)
Code:
apt-get -t unstable install kernel-source-2.6.10
and again it comes back with cannot find package

if u just use
Code:
apt-get -t unstable install kernel-source
then i get option between the 2.2x, 2.4x and 2.6.8 kernels

how do i get the 2.6.10 kernel?

Last edited by imagineaxion; 02-04-2005 at 04:00 AM.
 
Old 02-04-2005, 08:30 AM   #8
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
First, make sure you have a source for unstable packages in /etc/apt/sources.list Mine is:
Code:
deb ftp://ftp.debian.org/debian unstable main contrib non-free
Then update:
Code:
apt-get update
then install:
Code:
apt-get -t unstable install kernel-source-2.6.10
You can also check what kernel sources are available with:
Code:
apt-cache search kernel-source-2.6
When I run that, I get:
Code:
kernel-patch-debian-2.6.10 - Debian patches to Linux 2.6.10
kernel-patch-debian-2.6.8 - Debian patches to Linux 2.6.8
kernel-patch-debian-2.6.9 - Debian patches to Linux 2.6.9
kernel-source-2.6.10 - Linux kernel source for version 2.6.10 with Debian patches
kernel-source-2.6.8 - Linux kernel source for version 2.6.8 with Debian patches
kernel-source-2.6.9 - Linux kernel source for version 2.6.9 with Debian patches
kernel-source-2.6.7 - Linux kernel source for version 2.6.7 with Debian patches
You can also download the source directly from the package page: http://packages.debian.org/unstable/...-source-2.6.10
 
Old 02-05-2005, 08:57 AM   #9
imagineaxion
Member
 
Registered: Sep 2004
Location: Epsom, Surrey
Distribution: Ubuntu & Mac OS X
Posts: 141

Rep: Reputation: 16
thanks m_yates

much appreciated
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble upgrade udev_0.071-1_i386.deb clsfrr Debian 7 11-04-2005 06:38 PM
Kernel 2.6: I don't want/need initrd ... sundialsvcs Linux - Software 1 08-20-2005 09:25 AM
Kernel initrd.img? microsoft/linux Debian 15 10-29-2004 12:35 PM
Problems with Initrd and Kernel 2.6.8 Lycus_adr0 Linux - Software 0 08-23-2004 11:58 AM
Is "kernel-image-x_i386.deb or i586.deb the right image for P4 processor? davidas Debian 1 04-06-2004 03:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration