View Single Post
Old 06-03-08, 10:18 PM   #24
Registered User
Join Date: May 2008
Posts: 4
Smile Re: Unable to install Nvidia driver on 9500M + Ubuntu

To make a long story short, I bought an Asus G1Sn with 4G, installed hardy 64bit and couldn't detect the nvidia 9500 since the kernel mapped its memory outside the 32bit address range.

I read success stories involving a 4 lines patch .. so I needed to build a custom kernel.

I've got it all working now !! This is so cool ...

The trick is to compile both linux-image and linux-ubuntu-modules and get the versions to match in the .debs.

cd somewhere you have at least 4-5 Gb of free space.
Build time isn't so bad on a T8100 dual-core 2.1 GHz.

# Install Kernel Sources
sudo apt-get build-dep linux-image-2.6.24-17-rt
sudo apt-get source linux-image-2.6.24-17-rt

# Install Kernel Modules Sources
sudo apt-get build-dep linux-ubuntu-modules-2.6.24-17-rt
sudo apt-get source linux-ubuntu-modules-2.6.24-17-rt

# Apply NVRM patch (download the patch first!)
sudo patch -p0 < NVRM_512M_fix.txt

# Build debs for linux-image & linux-headers
cd linux-2.6.24/
sudo cp /boot/config-2.6.24-17-rt debian/config/amd64/config.rt
sudo CONCURRENCY_LEVEL=2 AUTOBUILD=1 NOEXTRAS=1 fakeroot debian/rules custom-binary-rt
cd ..

# Build Kernel Modules
cd linux-ubuntu-modules-2.6.24-2.6.24/
sudo CONCURRENCY_LEVEL=2 fakeroot debian/rules binary-debs
cd ..
You should then install the 4 debs :

I've attached the modified patches (against 2.6.24) for 256M and 512M.

Have fun !!

Attached Files
File Type: txt NVRM_256M_fix.txt (559 Bytes, 331 views)
File Type: txt NVRM_512M_fix.txt (559 Bytes, 553 views)
Fourmiii is offline   Reply With Quote