Tuesday, January 22, 2013

Install Linux Kernel 3.7.4 in Ubuntu/Linux Mint



Another update for Kernel 3.7 series has been made available recently which brings various bug fixes and improvements. As usual, we have updated our simple bash script to be able to install Linux Kernel 3.7.4 with just a few commands on the terminal.

But let's first see some of the changes and fixes in this latest kernel taken from the changelog:



  •     USB: io_ti: Fix NULL dereference in chase_port()
  •     drm/radeon: fix a bogus kfree
  •     drm/radeon: fix NULL pointer dereference in UMS mode
  •     ALSA: usb - fix race in creation of M-Audio Fast track pro driver
  •     s390/time: fix sched_clock() overflow
  •     sh: Fix FDPIC binary loader
  •     mxs: uart: fix setting RTS from software
  •     staging: vt6656: Fix inconsistent structure packing
  •     staging: wlan-ng: Fix clamping of returned SSID length


  Linux Kernel 3.7.4 Installation

To install Linux Kernel 3.7.4 (Ubuntu 12.10/12.04 or older and Linux Mint 14/13 or older) in your system, open the terminal and enter these commands at your own risk:

cd /tmp 
wget http://dl.dropbox.com/u/47950494/upubuntu.com/kernel-3.7.4 -O kernel-3.7.4 
chmod +x kernel-3.7.4 
sudo sh kernel-3.7.4 
sudo reboot

If you have encountered any troubles while installing this kernel in a system having the Nvidia driver installed, you can try to fix it by enabling text mode (CTRL+ALT+F2) and executing these commands:

cd /usr/src/linux-headers-3.7-030704/arch/x86/include 
sudo cp -v generated/asm/unistd* ./asm 
sudo apt-get install --reinstall nvidia-current

In case you want to uninstall Linux Kernel 3.7.4, issue this command:

sudo apt-get purge linux-image-3.7.4*