I did build the nvidia graphics drivers on TC 4.x, TC 5.0.x and now trying to do so on TC 5.1.
The same driver version which I have compiled under 5.0 seems to still work on 5.1, though. I have seperated the nvidia kernel module into another .tcz so I have one big nvidia extension and two smaller nvidia-module extensions (for 3.8.10 & 3.8.13 kernel).
I don't know if that's a good idea. Advice is apreciated.
--
Since 5.x, I'm using coreplayer2's script for kernel sources to be set up.
To build the drivers I'm using Rich's scripts which were actually meant for building legacy drivers, I think. However, It does work in terms of gathering the created files out of the file system so that they can be easily packed in an extension (which I do manually).
I have these compiler flags set in ~/.ashrc
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export LDFLAGS="-Wl -O1"
For TC 5.0, after compiling I just have to change one directory which contains the actual driver (I guess) due to the update to Xorg-7.7 (/usr/local/lib/X11/... vs. /usr/local/lib/xorg/...).
After doing so, everthing works fine (except of an error message during boot/loading extension: "unknown operand" - no idea if that's bad) and 3D acceleration is available.
Doing the same on TC 5.1 - reboot; whith the new nvidia extension + new nvidia module set OnBoot - I don't get any error messages during boot while extensions are getting loaded but just after that, "segmentation fault" is displayed (appended at the yellow list of loaded tczs).
Then it tryes to start X and just hangs with a black screen (I have to SysRq-Alt-B to get out).
Differences I have noticed in my newer build:
- Kernel module is not compressed
- One additional symlink (/usr/local/lib/xorg/modules/libwfb.so -> libnvidia-wfb.so.319.17)
--
Can I just use my 'old' nvidia extension (build with 3.8.10 kernel sources) combined with my 'new' nvidia-module extension (build with 3.8.13 kernel sources)? Are the kernel sources only needed to create nvidia.ko (nvidia-module)?
However, I'm pretty sure I did everything the same way as I did for TC 5.0 a few weeks ago. Should I take care of something when compiling agains kernel sources?
Thanks for reading.