Version magic!?!
I have upgraded my kernel from 2.4.x to 2.6.8.1
I did this upgrade so I could use a module that only works with 2.6 kernels.
After performing make and inserting module I would get:
Error inserting 'sgi_hostid.ko': Invalid module format!
I then did a: tail -f /var/log/messages to see what the problem is and saw this:
Local host kernel: sgi_hostid: version magic '2.6.8.1 preempt k7 gcc 3.2' should be '2.6.8.1 preempt k7 gcc 3.2'
So what's going on here?!?! I do have kernel version 2.6.8.1. I do have a k7 processor (AMD Athlon) and I definitely have gcc version 3.2
So then I do a: cat /proc/cpuinfo and get this:
Vendor_id: AuthenticAMD
CPU family: 6
model: 4
etc...
Since I have a k7, shouldn't I see "CPU family" as saying "7"? Does this mean my kernel thinks I have a K6 family of AMD?? What does "model" mean? Could this have anything to do with the mysterious "preempt" error from /var/log/messages? I also noticed that CPU frequency is reported as 850.0 mghz - this is incorrect, I have a 1.33 mghz (hmm?)
I have been trying to compile this module forever and it is driving me crazy. I have posted this issue twice before on this forum and searched the web for possible solutions but I am still without a clue.
I was told by a friend that I should upgrade procfs with preempt. What is preempt? I have upgraded procfs to the newest version.
Any ideas, suggestions, hints, tips, recommendations, procedures, methods, or possibilites are very much welcome!
Last edited by iansoundz; 07-07-2005 at 01:38 AM.
|