Custom Kernel Modules

Titan2k

Junior Member
Feb 9, 2004
22
0
0
I am trying to install the video drivers for my XTASY 9200 SE 128MB PCI card (ATI card). I found the correct driver from the ATI website, but have to create a custom kernel module to correctly install it. Here's what linux gave me:




# rpm -i --force fglrx-glc22-4.3.0-3.7.0.i386.rpm
(driver file of course)

----------------------------
warning: group mtippett does not exist - using root
warning: user mtippett does not exist - using root
*** Trying to install a precompiled kernel module.
*** WARNING ***
Tailored kernel module for fglrx not present in your system.
You must go to /lib/modules/fglrx/build_mod subdir
and execute './make.sh' to build a fully customed kernel module.
Afterwards go to /lib/modules/fglrx and run './make_install.sh'
in order to install the module into your kernel's module repository
(see readme.txt for more details)
As of now you can still run your XServer in 2D, but hardware acclerated
OpenGL will not work and 2D graphics will lack performance.
failed.
*** Error: no kernel module build environment - please consult readme.
Installed: qt3 (gcc 3.2) based control panel application.
===
ATI display drivers successfully installed
please run 'fglrxconfig' now
===



[root@dhcppc2 build_mod]# ./make.sh
ATI module generator V 2.0
==========================
initializing...
kernel includes at /usr/souce/linux/include not found or incomplete
file: /usr/linux/include/linux/version.h


Any ideas?
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
Yeah you are missing your kernel sources, go get them extract them to /usr/src/ and then make a /usr/src/linux symlink that points to your source directory.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Actually you just need the kernel headers, not the entire source. The program just needs to know how the kernel was compiled.


Now how to get the kernel headers... I don't know. I use custom kernels mostly, so I never had to figure it out.
 

Titan2k

Junior Member
Feb 9, 2004
22
0
0
Well, I was partially successful. I was able to install it, but still have no 2D acceleration or 3D hardware acceleration. How do I send all of the output from a session's commands to a text file?