Hi,
Slackware 12.0 'Invalid module format' post I had a few problems with module symbols and 'Invalid module format'. I had blacklisted the symbol specific modules kernel errors. I attempted to blacklist the 'sunrpc.ko & lockd.ko' modules to no avail. So I decided to re-compile.
A good practice, I kept my known working kernel & specifics intact in my 'lilo.conf'. I modified the '/usr/src/linux/.config' to suit my needs. I then modified the '/usr/src/linux/Makefile' > 'EXTRAVERSION = .51-smp' so as to create a unique compile. I then do a compile. Do the setup for the new kernel image.
I rid myself of the problems, so it seems. I do most of my maintenance remotely (ssh), I went to the server room and decided to look at the new box at the console. Some of my devices were not recognized. Simple omission(s). At least I think so. So I reboot to start the old kernel, vmlinuz-generic-smp-2.6.21.5-smp. Well I got a kernel panic.
No biggy! Just reboot the new one. More devices dropped, /dev/sda2.
Created the initrd with;
Code:
#mkinitrd -c -k 2.6.21.5-smp -m ext3 -f ext3 -r /dev/hdb3
I edited the lilo.conf to include the initrd;
Code:
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-2.6.21.5-smp
initrd = /boot/initrd.gz
root = /dev/hda3
label = Linux
read-only
# Linux bootable partition config ends
Notice that I don't use the link to vmlinuz in boot!
Do a 'lilo -v -t -b /dev/hda' to test, no errors.
The do a 'lilo -v -b /dev/hda3', writes 'MBR'
I then went to the /etc/modprobe.d/blacklist an removed all the before added modules via commenting out;
Code:
excerpt /etc/modprobe.d/blacklist;
#07-09-07 15:00
#comment out all to check a suspicion
#
#07-08-07 gws 15:30
#boot error message;
# system trying to load the USB modules
# which are already compiled into the "smp" kernel,
# "ohci-ecd" and "ehci-ecd"
#blacklist ohci-ecd
#blacklist ehci-ecd
#blacklist uhci-hcd
#blacklist ehci-hcd
#blacklist usbhid
#blacklist usb_storage
#blacklist i2c_core
#blacklist i2c_viapro
#
#07-08-07 gws 17:30
#still no-joy will re-compile to see
#blacklist sunrpc
#blacklist lockd
Now, here's the kicker. I reboot and no module symbol errors. No 'Invalid module format' for the 'sunrpc.ko & lockd.ko. The '/lib/modules/2.6.21.5-smp/' was never touched. A 'dep -a' was done on the first reboot. The devices were recognized with no problems.
The system is fully functional at this moment.
'rworkman', any ideas? The module dependency's were updated. But what would cause the symbols not to invoke the kernel use error message since nothing was changed with the original modules and kernel. The system is back to the original known state, at least I think so. I revert to the original except for the 'mkinitrd' and lilo.conf update.
Any help, suggestions?
edit: correct some grammar & spell errors