LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-24-2010, 03:38 PM   #1
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 107Reputation: 107
Need help upgrading my kernel from 2.6.26.1 to 2.6.34.1


So after realizing that my current kernel (2.6.26.1) doesn't support my audio card, while the current stable (2.6.34.1) does, I apparently need to build a new kernel. The only guides I can find are from the late 90s, so I'm posting here hoping for a more up-to-date and debian-oriented guide.

I know most of the linux basics, but this is my first time doing anything with the kernel. Closest thing I've done is follow a step-by-step to installing an nvidia driver. So any instructions or guides would be most helpful if they're written with a seminewb in mind.

And one more restriction I have on this, I can't apt-get anything from my debian install. I have it here with me, but I can only connect to the net through my work computer, so any files I need have to be downloadable and transferable on disc.

I have
Quote:
linux-2.6.34.1.tar.bz2
and
Quote:
linux-2.6.34.1.tar.bz2.sign
already.

What do I do from here?

thanks for any help provided
 
Old 07-24-2010, 03:59 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Does 2.6.32 as well? Don't bother compiling it yourself. Download the debs from lenny-backports instead.

64-bit right?

http://packages.debian.org/lenny-bac...32-bpo.5-amd64

http://backports.org/debian/pool/mai...50+1_amd64.deb

As the first page says, you'll want to get firmware-linux-free too... and perhaps firmware-linux-nonfree.

The downside of you not being able to use apt-get is you have to get all the dependencies yourself. But that's probably easier than compiling a vanilla kernel if you haven't before.

Last edited by AlucardZero; 07-24-2010 at 04:01 PM.
 
Old 07-24-2010, 04:06 PM   #3
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
http://forums.debian.net/viewtopic.php?f=16&t=36525
http://www.mepis.org/docs/en/index.p...g_a_new_kernel

I tried a 34-kernel on Lenny which didn't work (but i am not that good, so it might work).

Like AlucardZero says: try the backports-kernel first.
 
Old 07-24-2010, 04:11 PM   #4
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Here is a method to use if you have not compiled your own kernel before.It's not the only method or perhaps the best but it is probably the easiest.

You'll need some packages to begin with:

Code:
aptitude install kernel-package libncurses5-dev fakeroot wget build-essential
Then make a sub-directory in your /home called 'Kernels':

Code:
ade@Pc1:~$ mkdir Kernels
Then change into the newly created directory and run the following command:

Code:
ade@Pc1:~$ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.1.tar.bz2
This will download the vanilla kernel source.
Next untar the kernel with:

Code:
ade@Pc1:~$ tar jxvf linux-2.6.34.1.tar.bz2
Next,change into the newly created kernel directory:

Code:
ade@Pc1:~$ cd linux-2.6.34.1
Next run the following command:

Code:
ade@Pc1:~$ make clean && make mrproper
Then copy your current kernel configuration with:

Code:
cp /boot/config-`uname -r` ./.config
Next we need to check the configuration options using 'menuconfig':

Code:
make menuconfig
Which brings up the kernel configuration menu. Go to Load an Alternate Configuration File and choose .config (which contains the configuration of your current working kernel) as the configuration file.

Then browse through the kernel configuration menu and make your choices. When you are finished and select Exit, answer the following question (Do you wish to save your new kernel configuration?) with Yes.

You can now build the kernel with these commands:

Code:
ade@Pc1:~$ export CONCURRENCY_LEVEL=2
Code:
ade@Pc1:~$ make-kpkg clean
Code:
ade@Pc1:~$ fakeroot make-kpkg --append-to-version -amd64custom --initrd kernel_image kernel_headers
Now just wait for the compile to finish and install the .debs with dpkg.

Last edited by the trooper; 07-24-2010 at 04:12 PM.
 
Old 07-24-2010, 04:13 PM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,887
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Try the 2.6.32 kernel from backports first.

If you are running on a newer system I would suggest upgrading to testing and installing the liquorix kernel.
 
Old 07-24-2010, 04:53 PM   #6
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Original Poster
Rep: Reputation: 107Reputation: 107
so I did the backport version, installed it, then restarted. Grub had the new kernel in the list, I tried booting into it, it dropped me to a cli login. I logged in, ran startx, and nothing but an error :|

Made sure to install the dependencies before installing the backport image. Did I do something wrong?
 
Old 07-24-2010, 04:59 PM   #7
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
If you use the Nvidia driver,you'll need to reinstall the driver for the new kernel.
 
Old 07-24-2010, 05:01 PM   #8
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Original Poster
Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by the trooper View Post
If you use the Nvidia driver,you'll need to reinstall the driver for the new kernel.
I think thats exactly what it is, since theres a lot of NVIDIA errors on my laptop screen right now. how exactly do I go about uninstalling that driver?
 
Old 07-24-2010, 05:03 PM   #9
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Depends how you installed it originally.
Did you download the driver from the Nvidia website or install from Debians' repositories?.
 
Old 07-24-2010, 05:04 PM   #10
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Original Poster
Rep: Reputation: 107Reputation: 107
downloaded the driver from nvidia, then followed this little guide I found online, and it worked.
 
Old 07-24-2010, 05:10 PM   #11
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
You need to kill X,then login as root and run the following:

Code:
nvidia-installer --uninstall
Obviously you then need to re-run the installer for your new kernel.
 
Old 07-24-2010, 05:20 PM   #12
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Original Poster
Rep: Reputation: 107Reputation: 107
k, did that, rebooted, then tried the new kernel again. it dropped me into the CL again, I logged in the CLI, then did startx again, then got this

Failed to load module "type1" (module does not exist, 0)
Failed to load module "nvidia" (module does not exist, 0)
No drivers available

Fatal server error:
no screens up
giving up.
xinit: Connection reset by peer (errno 104): unable to connect to X server
xinit: No such process (errno 3): Server error
 
Old 07-24-2010, 05:23 PM   #13
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Original Poster
Rep: Reputation: 107Reputation: 107
Do I need to reinstall the NVIDIA driver from this CLI before it will let me do anything?
 
Old 07-24-2010, 05:25 PM   #14
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Yes,you need to navigate to where you have the the installer then run it again.
 
Old 07-24-2010, 05:31 PM   #15
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Original Poster
Rep: Reputation: 107Reputation: 107
k, tried that, and it starts the installer, but gives an error saying Unable to load nvidia.ko. I didn't get this error last time I tried to install. Is there a step I missed?

This is the guide I followed originally before trying to upgrade the kernel.

Quote:
1. Open a terminal and type sudo su

2. Type apt-get install build-essential linux-headers-$(uname -r)

3. Type cd /usr/src

4. Type ln -s linux-headers-$(uname -r) linux

5. Type
wget [file]

6. Type /etc/init.d/gdm stop (to stop gdm and drop to a terminal)

7. Type cd /usr/src && sh NVIDIA-Linux-x86-100.14.23-pkg1.run (to launch the nVidia installer script)
at step 2, it goes through a few lines, says build-essential is already the newest version, then E: Couldn't find package linux-headers-2.6.32-bpo.5-amd64.

edit: Actually, just found the package it says it can't find, about to install it and try again

Last edited by Cultist; 07-24-2010 at 05:37 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic after upgrading slackware64-current to 2.6.32.x kernel Lenard Spencer Slackware 4 01-22-2010 10:54 AM
Upgrading RHEL4.7 kernel but what to keep the old kernel in boot.grub fcfury Linux - Newbie 2 08-14-2009 08:13 AM
Upgrading Athlon Kernel to i686 Kernel (work around for >4Gb memory) amreek Red Hat 3 04-29-2009 01:28 PM
upgrading Fedora Core 3 kernel 2.6.9-1.667 to 2.6.26.3 manually+kernel panic error LinuxLovinNoob Linux - Newbie 7 12-17-2008 08:45 PM
can i upgrade the red hat EL4 ES kernel to AS Kernel without upgrading the whole OS? oreaba Linux - Newbie 6 08-19-2008 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration