Click to See Complete Forum and Search --> : monolithic kernel 2.6.10 in Fedora Core 3


inudor
02-01-2005, 02:30 PM
Hi, I'm really a newbie to this, so I ask for your patience (and excuse me for my english too... trying to improve it! ;-) )

I'm trying to compile a 2.6.10 kernel for my Fedora Core 3. I'd like to have it monolithic (it's a given requirement) and I do something like this...

- make mrproper
- make menuconfig (where I disable loadable module support)
- make all
( - make modules_install ==> I don't do this, I want it monolithic... it's not necessary then, isn't it?)
- make install

and get this out...
__________________________________________________ __________
CHK include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
CHK usr/initramfs_list
Kernel: arch/i386/boot/bzImage is ready
sh /usr/src/redhat/SOURCES/linux-2.6.10/arch/i386/boot/install.sh 2.6.10marc_monolitic arch/i386/boot/bzImage System.map ""
WARNING: Couldn't open directory /lib/modules/2.6.10marc_monolitic: No such file or directory
FATAL: Could not open /lib/modules/2.6.10marc_monolitic/modules.dep.temp for writing: No such file or directory
/lib/modules/2.6.10marc_monolitic is not a directory.
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
__________________________________________________ __________

why is it looking for a modules' directory if I compiled the kernel as monolithic?

if I compile with modules support it works perfectly, updating my grup.conf too.

can you give any advice or reference? thx a lot!

saludos

retsaw
02-01-2005, 04:48 PM
It's trying to create an initrd, the main purpose of which is to load modules immediately after the kernel loads and before the system starts booting properly, and since you haven't built any modules it errors. Don't do the "make install" just copy the kernel image from "arch/i386/boot/bzImage" to /boot yourself and update grub with an entry for your new kernel.

EDIT: You can also use "make bzImage" instead of "make all" as you only want the kernel image, though I don't think it will make any difference if you don't select any modules to build.

Rinias
02-01-2005, 05:17 PM
Just to add in a remark (perhaps obvious but nonetheless not said),

your bzImage is your monolithic kernel, and it already does exist: no need to recompile (anyways config.cache should tell you it's done). Thus, like was said before, just copy the image out and you're fine.