Recently, Somebody Somewhere wrote these words
> LFS 6.1-pre1.
> When I rebootinto my LFS system, I get the following error, repeated
> more times than my screen holds - presumably, for every module I have
> configured.
> "Version magic '2.6.12.2 preempt 686 gcc-3.4' should be '2.6.12.2 486
> gcc-3.4'
> modprobe: FATAL: cannot load [module-name]. Invalid module format"
>
> The first bit (686... should be 486) is especially strange, since my
> system is a Pentium 4. Googling 'invalid module format' has come up
> with suggestions that it is specific to NVidia drivers (which I don't
> use, and this is happening for more than one module), and CFLAGS
> errors (I use -O3 -fomit-frame-pointer -pipe , and no documentation
> I've come across says that that could break the modules).
> I /do/ have module-init-tools compiled to handle zlib'd modules.
>
> I am about to recompile a non-modular kernel, to see if this affects
> the kernel image aswell (although, I expxect if it /did/, booting
> would die before trying to load modules).
>
Move or rename the /lib/modules/<kernel-version> subdir before you do
make modules_install. You can build, fix grub, and so forth before the
modules_install.
Also be aware that the 'depmod -ae -F' that the kernel runs checks
_all_ the module trees in /lib/modules/ and then writes a file to the
latest one. If you get going at all on the correct kernel, a plain,
simple 'depmod' command with no options fixes that.
There is also an option about recompiling non-native modules in the
kernel. Read the help there with your own box in mind.
If you are using the same /boot partition, clean up the System.map files
Here's what mine looks like. The version numbers help, I believe.
[EMAIL PROTECTED] ~]$ ls /boot
grub/ hdabootnow System.map-2.6.12.1 vmlinuz-2.6.12.1
hda1bootnow lost+found/ System.map-2.6.12.1-0705 vmlinuz-2.6.12.1-0705
hda5bootnow System.map-2.4.22 vmlinuz-2.4.22
Your first line is /var/log/sys.log usually reports on the system.map
file. (sucessfully loaded or not found).
--
With best Regards,
Declan Moriarty.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page