HowTo: Compile High-Memory Kernel 9500M GS - NVIDIA Driver
Posted: Wed Jul 23, 2008 12:33 am
I basically took all this information from Fourmiii in this nvnews thread and retyped it for Linux Mint users: http://www.nvnews.net/vbulletin/showthread.php?t=113682
NVIDIA KERNEL
Custom Kernel - Fix GPU Memory Allocation
# Open/Move To A Directory w/ A Lot of Free Space - I Find The Desktop To Be A Quick and Easy Place...
cd /home/(username)/Desktop
# Enable Necessary Repositiories
sudo gedit /etc/apt/sources.list (Uncomment Repositories-Save-Close)
# Download/Install Necessary Tools
sudo apt-get install build-essential
sudo apt-get install configure-debian
sudo apt-get install fakeroot
# Update apt-get
sudo apt-get update
# Download/Install Kernel Image
sudo apt-get build-dep linux-image-2.6.24-18-rt
sudo apt-get source linux-image-2.6.24-18-rt
# Download/Install Kernel Modules
sudo apt-get build-dep linux-ubuntu-modules-2.6.24-18-rt
sudo apt-get source linux-ubuntu-modules-2.6.24-18-rt
# Patch Kernel Image & Modules
sudo patch -p0 < NVRM_512M_fix.txt
# Open Kernel Image Folder
cd linux-2.6.24/
# Modify Binary Instructions & Build deb Packages
sudo CONCURRENCY_LEVEL=2 fakeroot debian/rules custom-binary-rt
cd ..
# Open Kernel Modules Folder
cd linux-ubuntu-modules-2.6.24-2.6.24/
# Modify Binary Instructions & Build deb Packages
sudo CONCURRENCY_LEVEL=2 fakeroot debian/rules binary-debs
cd ..
Install The New deb Packages (Kernel Source):
sudo dpkg -i linux-image-2.6.24-20-rt_2.6.24-20.37_i386.deb
sudo dpkg -i linux-headers-2.6.24-20-rt_2.6.24-20.37_i386.deb
sudo dpkg -i linux-headers-lum-2.6.24-20-rt_2.6.24-20.29_i386.deb
sudo dpkg -i linux-ubuntu-modules-2.6.24-20-rt_2.6.24-20.29_i386.deb
Install Latest NVIDIA Driver...
Edit Grub To Your Liking (I Remove Old Entries)...
Some other posts in the nvnews thread said you can skip the modules (I have not tried that) - I do know that the directories used in these instructions do not match Elyssa's default kernel (2.6.24-16-generic), so I was unable to successfully patch that kernel and retain the default system w/ 3D graphics support; however, I am satisfied with my current configuration - Hope this guide helps someone; please let me know if you have any questions
NVIDIA KERNEL
Custom Kernel - Fix GPU Memory Allocation
# Open/Move To A Directory w/ A Lot of Free Space - I Find The Desktop To Be A Quick and Easy Place...
cd /home/(username)/Desktop
# Enable Necessary Repositiories
sudo gedit /etc/apt/sources.list (Uncomment Repositories-Save-Close)
# Download/Install Necessary Tools
sudo apt-get install build-essential
sudo apt-get install configure-debian
sudo apt-get install fakeroot
# Update apt-get
sudo apt-get update
# Download/Install Kernel Image
sudo apt-get build-dep linux-image-2.6.24-18-rt
sudo apt-get source linux-image-2.6.24-18-rt
# Download/Install Kernel Modules
sudo apt-get build-dep linux-ubuntu-modules-2.6.24-18-rt
sudo apt-get source linux-ubuntu-modules-2.6.24-18-rt
# Patch Kernel Image & Modules
sudo patch -p0 < NVRM_512M_fix.txt
# Open Kernel Image Folder
cd linux-2.6.24/
# Modify Binary Instructions & Build deb Packages
sudo CONCURRENCY_LEVEL=2 fakeroot debian/rules custom-binary-rt
cd ..
# Open Kernel Modules Folder
cd linux-ubuntu-modules-2.6.24-2.6.24/
# Modify Binary Instructions & Build deb Packages
sudo CONCURRENCY_LEVEL=2 fakeroot debian/rules binary-debs
cd ..
Install The New deb Packages (Kernel Source):
sudo dpkg -i linux-image-2.6.24-20-rt_2.6.24-20.37_i386.deb
sudo dpkg -i linux-headers-2.6.24-20-rt_2.6.24-20.37_i386.deb
sudo dpkg -i linux-headers-lum-2.6.24-20-rt_2.6.24-20.29_i386.deb
sudo dpkg -i linux-ubuntu-modules-2.6.24-20-rt_2.6.24-20.29_i386.deb
Install Latest NVIDIA Driver...
Edit Grub To Your Liking (I Remove Old Entries)...
Some other posts in the nvnews thread said you can skip the modules (I have not tried that) - I do know that the directories used in these instructions do not match Elyssa's default kernel (2.6.24-16-generic), so I was unable to successfully patch that kernel and retain the default system w/ 3D graphics support; however, I am satisfied with my current configuration - Hope this guide helps someone; please let me know if you have any questions