DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu at Home, RedHat Enterprise at Work
Posts: 46
Rep:
Problems recompiling 2.6.8 kernel in sarge
Hello all!
I'm ruunung sarge with 2.6.8-1 kernel and I'm still trying to cook a new kernel for my Dell X300, but it seems every time I cook one and install it, I always get FATAL errors on boot and it's always because it can't find modules, the latest one only complains that it can't find ide_generic (and one other which I think was sr_mod) and sure enough it isn't in /lib/modules/KERNELVERSION/kernel/drivers/ide
Why is it that even though I am telling it to compile generic ide support the modules aren't there???
To build my kernel I'm doing:
cd /usr/src/linux
make-kpkg clean
make xconfig
make-kpkg -rev=x300-a04-1 kernel_image
Then I install my new kernel package and cd to /boot and do a mkinitrd IMAGENAME
I check grub is happy and try booting into the new kernel and when it tries to load any modules it complains that the path or file name doesn't exist, am I missing something REALLY stupidly obvious?
Distribution: Ubuntu at Home, RedHat Enterprise at Work
Posts: 46
Original Poster
Rep:
It's strange because I was compiling generic ide support into the kernel rather than having it as a module. I finished cooking one where I specified generic ide support as a module instead and it worked, but then still got fatal errors on sr_mod (which I understand is SCSI cdrom support) so I cooked another specifying SCSI cdrom support as a module but wasn't so lucky this time, it still failed.
I'm just wondering whether this is some kind of bug, since why would it be looking to load the generic_ide module when I compiled it directly into the kernel?
None of the kernel compile guides for Debian mention the modules_image option, and a bit of googling suggests that is only needed for external modules
Anyway, I will try your modules_image option and see what happens
Distribution: Ubuntu at Home, RedHat Enterprise at Work
Posts: 46
Original Poster
Rep:
Well, I'm afraid that didn't work, it did however compile my ipw2100 module (once I'd enabled crypto support)
So what I'm doing right now (to test that I'm not going completely mad is compiling a kernel from the config file of my current working kernel using the command:
The modules should be created without the "modules_image" option. After you create the kernel deb package with the "initrd" option, you should not have to run "mkinitrd" manually either. When you install the kernel deb package you create, it automatically creates the initrd image and modules directories for the new kernel.
Are you using the vanilla 2.6.8.1 kernel or the Debian source? If you're using the Debian source, have you tried to compile it with the supplied .config (using the command I proposed - it always works for me)? Does it work?
Distribution: Ubuntu at Home, RedHat Enterprise at Work
Posts: 46
Original Poster
Rep:
Update
First to answer your question, I am using debian source.
I started from the beginning using the working kernel which worked fine.
Then I changed the CPU Type to Pentium M which still worked.
Then I trimmed down the Ethernet drivers and some file system drivers and got the following:
"Kernel panic: VFS: Unable to mount root fs on xxx"
So clearly I'm removing something I should be
I've read somewhere that this can be caused by devfs in PSEUDO file system types, but I think that may only apply to 2.4 kernels as I belive devfs is now gone (but could be very wrong!)
Bottom line is, I think I have to be patient and not take out too many options at once, but it's so tempting to try and reduce compile time.
So, I'm off to give my laptop another work out and compile yet another kernel, perhaps this time I'll just concertrate on my CPU and ACPI stuff which is what I originally set out to acheive.
The kernel panic you mentioned is because you did not have your root file system compiled into your kernel.
e.g. if your root fs is reiserfs make sure you have reiserfs supoort in the kernel.
You can have it compiled as modules if you use initrd, personally I do not see much point in using initrd if you are compiling your own kernel.
Originally posted by shmonkey The kernel panic you mentioned is because you did not have your root file system compiled into your kernel.
e.g. if your root fs is reiserfs make sure you have reiserfs supoort in the kernel.
I agree. Search this forum (e.g. for initrd) to find several threads regarding this issue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.