Not suposed to have initrd on a initrd free kernel.Rolling Stone wrote: Sure you've gotten the initrd part right?
With initrd I got no problems.
Not suposed to have initrd on a initrd free kernel.Rolling Stone wrote: Sure you've gotten the initrd part right?
Do you have a initrd for that kernel? for some reason it's not created automatically anymore.kanonmat wrote:I compiled, rebooted and got a kernel panic. What's the approach to find what's wrong? As hazel posted, there is so much stuff in the kernel that I won't ever use. (I removed what I thought unnecessary and among other things changed timer frequency to 1000Hz and set voluntary kernel preemption.) Just changing one item at a time, compile for an hour and reboot feels very inefficient.
Code: Select all
no filesystem could mount root, tried:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Code: Select all
mount -o loop -t cramfs initrd.img-2.6.30-1-amd64 tmp/
You will need drivers for your hard disk (IDE/SATA) as well as drivers for your root filesystem build into the kernel (*), not as modules (m).kanonmat wrote: Maybe I don't need an initrd, a guru on irc said it was unnecessary. I guess I need to move some of the stuff thats in the initrd to the kernel. The questions are: what and how?
Code: Select all
/usr/bin/make EXTRAVERSION=jalu ARCH=i386 \
-C Documentation/lguest
make[1]: Entering directory `/home/jalu/Kernel/linux-2.6-2.6.26/Documentation/lguest'
cc -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include lguest.c -lz -o lguest
lguest.c:34:18: error: zlib.h: No such file or directory
make[1]: *** [lguest] Error 1
Code: Select all
fakeroot make-kpkg --append-to-version "jalu" --revision "090909" --initrd kernel_image kernel_headers
You're getting zlib error, something that I never got before. Anyway, check the 1st post on this very trend by Rolling Stone, near bottom:jalu wrote:i followed the how-to in the first post, step by step, but changed some things according to the advices given later in this thread:
i get this error massage :Code: Select all
/usr/bin/make EXTRAVERSION=jalu ARCH=i386 \ -C Documentation/lguest make[1]: Entering directory `/home/jalu/Kernel/linux-2.6-2.6.26/Documentation/lguest' cc -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include lguest.c -lz -o lguest lguest.c:34:18: error: zlib.h: No such file or directory make[1]: *** [lguest] Error 1
Troubleshooting:
If you get an error about missing zlib.h, make sure you have these packages installed
I'm not sure as I'm somewhat unfamiliar with what you're doing. In any case if your kernel panic, check to make sure that menu.lst entry is correct including the initrd entry:jalu wrote: Make install didnt build, but was finished within the blink of an eye.
The kernel is up and running now.
How come?
Code: Select all
title Debian GNU/Linux, kernel 2.6.30.5 (verbose splash) on /dev/sda6
root (hd0,5)
kernel /boot/vmlinuz-2.6.30.5 root=/dev/sda6 ro
initrd /boot/initrd.img-2.6.30.5
Code: Select all
apt-get build-dep linux-2.6
thats something i would have expected or understood. but after installing the apps you mentioned above apt-get build-dep linux-2.6 did install other stuff too (if im correct yesterday, on sid, it has been 350MB, and today, on lenny, it has been only 17MB)Rolling Stone wrote:That command should pull in and install the dependancies for the package linux-2.6. Basically the first step in my guide. It's handy if it works. I haven't tried it myself (while compiling a kernel) and don't know what packages it would get.
I apologize, but I haven't been following. So sorry if this is behind the times. You don't need (ever) to have the source in /usr/src, and in general the modern default is not to put source there (or build there). Do it in your home directory. (Doesn't mean you have to agree, but I think it's the norm now, and it makes a lot of sense to me.)nadir wrote:a short question:
after installing the deb`s i got the source*tar.bz2 in /usr/src and in my ~/Kernel. Additionally i got the linux-source and the two debs in my ~/Kernel.
do i need to keep them? ok, i think the bz2`s and the deb`s i may remove safely, what about the linux-source (once i`ve linked /lib/modules... to /usr/src). thanks.