Find the answer to your Linux question:
Results 1 to 7 of 7
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Location
    Alsip, IL
    Posts
    4

    Downloading Current Kernel Sources - Ubuntu


    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:
    Code:
    # 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:
    Code:
    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)
     					continue;
    +				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:

    Code:
    # Install Kernel Sources
    sudo apt-get build-dep linux-image-2.6.27.9-generic
    sudo apt-get source linux-image-2.6.27.9-generic
    How ever when I get to this next part:
    Code:
    # Install Kernel Modules Sources
    sudo apt-get build-dep linux-ubuntu-modules-2.6.27.9-generic
    sudo apt-get source linux-ubuntu-modules-2.6.27.9-generic
    I get
    Code:
    jeff@jeff-ubuntu:~/Kernal$ sudo apt-get build-dep linux-ubuntu-modules-2.6.27.9-generic
    [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-2.6.27.9-generic
    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

    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!
    ~Jeff

  2. #2
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,998
    may I inquire why you are doing this? Recompiling kernels is a pretty hefty task and can usually be avoided
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

  3. #3
    Just Joined!
    Join Date
    Jan 2009
    Location
    Alsip, IL
    Posts
    4
    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?

    ~Jeff

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    when i look in synaptic for myself I see linux-ubuntu-modules-2.6.24-1 so i'm guessing you should use linux-ubuntu-modules-2.6.27.9

  6. #5
    Just Joined!
    Join Date
    Jan 2009
    Location
    Alsip, IL
    Posts
    4
    Gah good idea but no dice on that one:
    Code:
    jeff@jeff-ubuntu:~/Kernal$ sudo apt-get build-dep linux-ubuntu-modules-2.6.27.9
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Unable to find a source package for linux-ubuntu-modules-2.6.27.9
    Any other ideas?... I really need to get this working

    ~Jeff

  7. #6
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    open synaptic and search for linux-ubuntu-modules and find which one it is

  8. #7
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,998
    Maybe try this out:

    https://help.ubuntu.com/community/Kernel/Compile

    I've only had to do this one time so I don't really remember but those instructions seem pretty good
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •