Static kernel compile problem.

Static kernel compile problem.

am 09.09.2004 00:59:34 von Tony Gogoi

Hello,

I configured and compiled a static kernel (module support = N). I also
changed the lilo append line to read
append="nomodules root=/dev/hda5"

and ran /sbin/lilo

During boot, it gets to the point:
Mounting filesystems [OK]
Enabling swap [OK]

and then panics with the message:
modprobe: can't open dependencies file /lib/modules-mykernel.......

Now, my kernel is static and it not should have tried to read the
/lib/mymodules.. in the first place.

Can a modular kernel (default) and a static kernel co-exist? Is there any
workaround to prevent my static kernel from trying to read module
information?

I congifured the static kernel as:

Changed the line in Makefile TOPDIR to point to my kernel source.
make mrproper
make config
make dep
make bzImage

cp /home/tony/mykernel/System.map /boot/System.map-temp
ln -fs vmlinuz-temp vmlinuz
ln -fs System.map-temp System.map

Any pointers ???

Regards,
Tony



-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html