Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Ok, so I'm not new to Linux, but by no means am I a guru, and its time for me to upgrade my Linux Kernel to 3.5.4 (I need new drivers only compatible with the newest kernel image), and I would like to do so manually.

What I mean is that I would like to download the official .tar.bz2 image from here, then extract the image, but after that how do I actually install the kernel image?

share|improve this question
1  
Did you consider to use binary pre-built packages instead? (As mentioned in the answer of @BuZZ-dEE) Or is there a reason for compiling/installing from upstream souce? –  gertvdijk Sep 17 '12 at 8:33
    
I did consider it, and at the time I dismissed it, as I though the kernel would do better if it was compiled on the platform it would run on. However after looking at these answers, and doing further research, it doesn't seem to matter, does it? –  John Sep 17 '12 at 19:46
    
No, not really. Unless you do specific optimizations like settings specific compiler flags or manually configuring all the modules, it doesn't really matter performance wise. It is possible, however, to lower boot time a few seconds or so by doing so. –  gertvdijk Sep 17 '12 at 19:50
add comment

2 Answers

up vote 1 down vote accepted

You could update your kernel to v3.5.4 by installing a mainline kernel.

Do mainline kernel builds include Ubuntu specific drivers?

By definition the mainline kernel builds are made from virgin unaltered mainline kernel sources and therefore do not, and should not, include any Ubuntu patches or drivers. There are also no binary drivers for these kernels.

Open a terminal and do the following:

mkdir v3.5.4-quantal
cd v3.5.4-quantal
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.4-quantal/linux-headers-3.5.4-030504_3.5.4-030504.201209142010_all.deb

Only for 32 bit systems:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.4-quantal/linux-headers-3.5.4-030504-generic_3.5.4-030504.201209142010_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.4-quantal/linux-image-3.5.4-030504-generic_3.5.4-030504.201209142010_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.4-quantal/linux-image-extra-3.5.4-030504-generic_3.5.4-030504.201209142010_i386.deb

Only for 64 bit systems:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.4-quantal/linux-headers-3.5.4-030504-generic_3.5.4-030504.201209142010_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.4-quantal/linux-image-3.5.4-030504-generic_3.5.4-030504.201209142010_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.4-quantal/linux-image-extra-3.5.4-030504-generic_3.5.4-030504.201209142010_amd64.deb

Install the kernel.:

sudo dpkg -i *.deb
share|improve this answer
    
These packages are targeted for Quantal (12.10), not for 12.04. It could just work, but compatibility issues may arise now or later. I recommend installing the 3.5 kernel backported for Precise, for example via Q-series LTS PPA. For example, I have seen many compatibility issues installing 'plain' mainline kernels for Oneiric in Lucid (mainly GUI-related). Also, the question is about how to install (build) the kernel from source from kernel.org. –  gertvdijk Sep 17 '12 at 7:50
    
His question is not so clear, I think. Maybe he doesn't know that there are a binary mainline kernel for Ubuntu. You could install the quantal packages also in precise. If you only use open source drivers, it should work. I use those packages also with precise without problems. –  BuZZ-dEE Sep 17 '12 at 8:30
    
@gertvdijk please explain me, why it should be necessary to backport a mainline kernel to a specific ubuntu version –  BuZZ-dEE Sep 17 '12 at 8:58
1  
Kernel configurations for compatibility with user-space, for example Xorg, filesystems, device management (udev/devfs), etc. Also packaging options that may be incompatible if some schemes are changed (new FHS for example). Backported kernels are usually being tested with older userspace, so that should improve user experience. –  gertvdijk Sep 17 '12 at 9:08
add comment

Compiling and installing upstream ('vanilla') kernels is described in this wiki article: GitKernelBuild. Should contain everything you need.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.