Quote:
Originally Posted by AaronP
That's strange. That doesn't sound like a relocatable binary problem, it sounds like your kernel sources are messed up but I'll have to defer to zander on that.
|
This is on a Gentoo hardened system.
You were right about the nv driver not initializing the card. I managed to get the nvidia driver to compile by going in the directory
/var/tmp/portage/x11-drivers/nvidia-drivers-180.51/work/NVIDIA-Linux-x86_64-180.51-pkg2/usr/src/nv/
and then changing part of the file conftest.sh to the following
Code:
#if [ -f conftest$$ ]; then
# ./conftest$$ > /dev/null 2>&1
# if [ $? = "0" ]; then
SELECTED_MFILE=Makefile.kbuild
# else
# SELECTED_MFILE=Makefile.nvidia
# fi
rm -f conftest$$
RET=0
fi
# else
#MAKEFILE=$HEADERS/../Makefile
#CONFIG=$HEADERS/../.config
#if [ -f $MAKEFILE -a -f $CONFIG ]; then
#
# This source tree is not configured, but includes
# a Makefile and a .config file. If this is a 2.6
# kernel older than 2.6.6, that's all we require to
# build the module.
#
#PATCHLEVEL=$(grep "^PATCHLEVEL =" $MAKEFILE | cut -d " " -f 3)
#SUBLEVEL=$(grep "^SUBLEVEL =" $MAKEFILE | cut -d " " -f 3)
#if [ -n "$PATCHLEVEL" -a $PATCHLEVEL -ge 6 \
# -a -n "$SUBLEVEL" -a $SUBLEVEL -le 5 ]; then
# SELECTED_MFILE=Makefile.kbuild
# RET=0
#fi
#fi
# fi
then I did "make module"
That compiled the nvidia.ko module.
Next I copied the file
/var/tmp/portage/x11-drivers/nvidia-drivers-180.51/work/NVIDIA-Linux-x86_64-180.51-pkg2/usr/X11R6/lib/modules/drivers/nvidia_drv.so
to the directory
/usr/lib/xorg/modules/drivers/
Then insmod nvidia.ko
That allowed X to start at 2560x1600 resolution.
Then I did "rmmod nvidia" so that I could use the nv driver.
One problem remaining is that video looks blocky. Is that a problem with the nv driver or some problem with initializing the card?
Thanks for your suggestion.