LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   fglrx problems (https://www.linuxquestions.org/questions/linux-hardware-18/fglrx-problems-518031/)

oribd 01-10-2007 10:32 AM

fglrx problems
 
I know that I might could find the answer for my question by googling, but I'v searched for too many hours and decided to post here.

I am trying to install the fglrx kernel module (for my radeon 9250) and when running the make_install.sh file which is in the modules library /lib/modules/fglrx/ I get the message:

Error inserting fglrx (/lib/modules/2.6.18.1-my1/misc/fglrx.ko): Invalid module format

In dmesg:

fglrx: version magic '2.6.18-3-686 SMP mod_unload 686 REGPARM gcc-4.1' should be '2.6.18.1-my1 mod_unload PENTIUM4 gcc-4.0'

I installed packages with headers which I didn't need, I saw it on some site and thought I need it.
I removed the packages, but no luck. I also edited a few version.h files...
It's a real mess in my system.

My main gole now is to make 3D acceleration enabled (I think the mess will remain for ever... :-P).

Help will be accepted with joy.

weibullguy 01-10-2007 11:30 AM

You can't use kernel modules compiled against one set of headers with a kernel compiled against a different set of headers. Messing around with the header files isn't the answer. Compiling both the kernel and the module against the same set of headers is the answer.

rickh 01-10-2007 11:57 AM

If you've been editing .h files and things like that, you may have already messed things up beyond repair, but this is a "from scratch" scenario I wrote a while back. The only things that have probably changed is references to Sid. All that stuff should be in Testing by now.

oribd 01-10-2007 02:53 PM

Well, I can always choose the Windows way and reinstall Debian... (JUST KIDDING... I'll never ever get to that point...).

I think I'm going to compile a new kernel, erase all fglrx stuff and install again.
The only .h files I edited are the "version.h" files. I think that it helped with compiling the "make.sh" file at /lib/modules/fglrx/build_mod/, since I had problems with compiling it, and I saw somewhere someone suggested to edit those "version.h" files to solve some problem with that file.
I backed them up before editing (of course), so maybe it's not that bad (I don't know if backing up can help with .h files...).

Thanks for the replys. I'll check the "'from scratch' scenario" and reply as soon as I can (don't have much time since I have to study at the horrible place called "highschool").

And of course, I'll be more than happy to receive more replys.

rickh 01-10-2007 03:45 PM

Quote:

Well, I can always choose the Windows way and reinstall Debian... (JUST KIDDING...
That's not really the end of the world. I always tell my Newbie friends to go ahead and reinstall a few times. It's a great learning experience. About the only time I get to do an installation now is when I'm setting up someone else's computer, but I still learn things every time.

Quote:

..."highschool"
That explains the propensity to mess around with the fonts. lol.

oribd 01-11-2007 01:27 AM

Quote:

That explains the propensity to mess around with the fonts. lol.
Should I take that as a compliment? :-P

I had installed Debian a few times till today, and I do believe I learned a lot.
What I meant is that Linux, apart from Windows, is almost always fixable.
And, I'm not going to reinstall a Debian installation that's been running for more than 8 years (my big brother installed it and I'm the heir :-P).

(All the things I said at the last message apply here too - this is just a quick reply before going to school)


All times are GMT -5. The time now is 10:34 AM.