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.:( |
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 Code:
cd /usr/src Code:
make-kpkg --initrd --append-to-version=-debian kernel_image |
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.
|
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... |
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.
|
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 |
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 if u just use Code:
apt-get -t unstable install kernel-source how do i get the 2.6.10 kernel? |
First, make sure you have a source for unstable packages in /etc/apt/sources.list Mine is: Then update:
Code:
apt-get update Code:
apt-get -t unstable install kernel-source-2.6.10 Code:
apt-cache search kernel-source-2.6 Code:
kernel-patch-debian-2.6.10 - Debian patches to Linux 2.6.10 |
thanks m_yates
much appreciated |
All times are GMT -5. The time now is 09:12 PM. |