View Full Version : build hoary ati driver
caracho
March 13th, 2005, 05:26 AM
Hi,
I'm trying to build the new ati driver module for Hoary (xorg), I get this message :
root@ubuntu:/lib/modules/fglrx/build_mod # sh make.sh
ATI module generator V 2.0
==========================
initializing...
kernel includes at /usr/src/linux/include not found or incomplete
file: /usr/src/linux/include/linux/version.h
root@ubuntu:/lib/modules/fglrx/build_mod #
I've downloaded the kernel sources, but it seems that the file version.h does not exist in this version
Thanks for help
cara
caracho
March 13th, 2005, 05:46 AM
Ok
For those intersted, you must also install the kernel headers
:smile:
caracho
March 13th, 2005, 06:15 AM
Now I can build the driver but I can't modprobe it
root@ubuntu:/home/alex # modprobe fglrx
FATAL: Error inserting fglrx (/lib/modules/2.6.10-4-386/misc/fglrx.ko): Invalid module format
root@ubuntu:/home/alex #
Any idea ?
bobmitch
March 13th, 2005, 06:51 AM
Now I can build the driver but I can't modprobe it
root@ubuntu:/home/alex # modprobe fglrx
FATAL: Error inserting fglrx (/lib/modules/2.6.10-4-386/misc/fglrx.ko): Invalid module format
root@ubuntu:/home/alex #
Any idea ?
Did you copy your fglrx.ko generated file from /lib/modules/fglrx/ to /lib/modules/kernelversionhere/misc/
?
caracho
March 13th, 2005, 07:54 AM
yes
bobmitch
March 13th, 2005, 09:54 AM
Did you rmmod fglrx before you started, as well as delete/move any existing fglrx.ko files?
I know these are basic questions, but I`ve made the same mistakes too many times. :)
caracho
March 13th, 2005, 11:40 AM
yes yes : I am lost
bobmitch
March 13th, 2005, 12:59 PM
yes yes : I am lost
Me too I`m afraid.
CannoNFd
March 13th, 2005, 05:53 PM
if make_install.sh gave an error then you need to do the following:
Modprobe works if you do make with gcc 2.96
To compile using gcc 2.96 open the make.sh file and remove the # from this line: #CC=gcc -V 2.96
After sh make.sh run the make_install script and the module should load when it's doing a test run. Now you can also modprobe it after copying it to /lib/modules/<kernel>/misc/
caracho
March 16th, 2005, 12:13 PM
No, the driver doesn't load anyway....
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.