Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Downloading Current Kernel Sources - Ubuntu
post Jan 19 2009, 01:32 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 19-January 09
Member No.: 13,861

So to resolve the issue with my G1Sn I need to download the Kernel sources add a few lines and then recompile and install the new files. I found the following lines that are suppose to do it on nVidia's forums:
# 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 ..

Here is the code for the patch that was given:
diff -Naur linux-2.6.24.orig/arch/x86/pci/i386.c linux-2.6.24/arch/x86/pci/i386.c
--- linux-2.6.24.orig/arch/x86/pci/i386.c    2008-06-03 20:24:26.000000000 -0400
+++ linux-2.6.24/arch/x86/pci/i386.c    2008-06-03 20:25:40.000000000 -0400
@@ -122,6 +122,10 @@
                r = &dev->resource[idx];
                if (!r->flags)
+                if ((r->start == 0xbdf00000) && (r->end == 0xddefffff)) {
+                    r->start = 0xc0000000;
+                    r->end = 0xd0000000;
+                }
                pr = pci_find_parent_resource(dev, r);
                if (!r->start || !pr ||
                    request_resource(pr, r) < 0) {

So I got the kernel sources using the following:

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

How ever when I get to this next part:
# Install Kernel Modules Sources
sudo apt-get build-dep linux-ubuntu-modules-
sudo apt-get source linux-ubuntu-modules-

I get
jeff@jeff-ubuntu:~/Kernal$ sudo apt-get build-dep linux-ubuntu-modules-
[sudo] password for jeff:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to find a source package for linux-ubuntu-modules-

Anyone any ideas what the Kernel Module Source packages are called?... This guide I am trying to follow is obviously dated but it is the only solid lead I have been able to find towards making my ram work...

This is the original thread on the NVNEWs boards: Unable to install Nvidia driver on 9500M + Ubuntu - Page 2 - nV News Forums

Read through that thread I linked to the NVidia forums for a detailed run down of what is wrong.

The semi short version:

There is some sort of issue with the NVidia driver on the G1Sn (and several other Asus Models) and the way the Linux Kernel address memory, the issue results in not being able to use more than 2 Gigs of ram with the Nivida drivers. There is a patch (again check the nvidia forum link) that people said they had applied to fix this issue. At this point I am seriously considering Vista again if I can't get this working I love Ubuntu but I hate having my hardware limited by my software...

So please any ideas where to download the files I need to recompile in the Kernel with the patch I need for my ram to work?

I tried posting there but it seems like the thread is long dead... anyone here have any ideas how I can download the needed files and maybe how I add these lines to it?

I also started a thread on the ubuntu forums here: [ubuntu] Downloading Current Kernel Sources - Ubuntu Forums

At this point I am basically crawling everyone on the web that looks like it might be helpful trying to solve this issue.... I really do not want to have to go to Vista just to use my full 4 gigs of ram.

Help Please!
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 16th July 2018 - 07:41 AM