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:
Quote:
What do I do from here? thanks for any help provided |
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. |
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. |
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 Code:
ade@Pc1:~$ mkdir Kernels Code:
ade@Pc1:~$ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.1.tar.bz2 Next untar the kernel with: Code:
ade@Pc1:~$ tar jxvf linux-2.6.34.1.tar.bz2 Code:
ade@Pc1:~$ cd linux-2.6.34.1 Code:
ade@Pc1:~$ make clean && make mrproper Code:
cp /boot/config-`uname -r` ./.config Code:
make menuconfig 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 |
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. |
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? |
If you use the Nvidia driver,you'll need to reinstall the driver for the new kernel.
|
Quote:
|
Depends how you installed it originally.
Did you download the driver from the Nvidia website or install from Debians' repositories?. |
downloaded the driver from nvidia, then followed this little guide I found online, and it worked.
|
You need to kill X,then login as root and run the following:
Code:
nvidia-installer --uninstall |
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 |
Do I need to reinstall the NVIDIA driver from this CLI before it will let me do anything?
|
Yes,you need to navigate to where you have the the installer then run it again.
|
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:
edit: Actually, just found the package it says it can't find, about to install it and try again |
All times are GMT -5. The time now is 10:06 AM. |