Home page of this blog

Wednesday, September 7, 2011

Custom 64 bit ubuntu kernel 3.0.4 optimized for i3, i5 and i7


Kernel Configuration 3.0.4
  1. Followed Ubuntu way of building kernel (to know more follow this link)
  2. Used EL6 config as base (copied EL6 config instead of cp debian.master/config/amd64/config.flavour.generic debian.master/config/amd64/config.flavour.i7)
  3. Selected processor as CORE2 
  4. Used GCC 4.6 (to use the new arch corei7 which is for i3, i5 and i7 intel processors)
  5. Edited main Makefile to append -march=corei7 -mtune=corei7
  6. Enabled transparent hugepages support
  7. Enabled all cpufrequency scaling drivers like ubuntu
How to install


Extract the kernel zip file, and enter into the extracted folder in terminal (using open in terminal in nautilus)

sudo dpkg -i linux-headers-3.0.4-030004_3.0.4-030004.201108301138_all.deb linux-headers-3.0.4-030004-i7_3.0.4-030004.201108301138_amd64.deb linux-image-3.0.4-030004-i7_3.0.4-030004.201108301138_amd64.deb
Changes done in my system

Added pci=nocrs to kernel in /etc/grub.d/10_linux to avoid pci address space conflict warning

GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT pci=nocrs"

Ran update-grub2 to regenerate grub entries
Added acpi_cpufreq in /etc/modules to enable cpufrequncy scaling (by default not adding acpi_cpufreq module in /etc/modules ran my processor in full speed and I was happy to the overclock frequency working!!, or in other words if you overclock dont add acpi_cpufreq in /etc/modules)

Mediafire download links

Zipped Kernel build script,  config, headers and image deb here
SHA256SUMS here


SHA256SUMS


884f4abf7e2761a793ead1fd8084620601a94e83b79b40e2b43e81b871e765eb  kernel3.0.4-i7.zip
ea4dd33494dd78c3260d3c8f9be04b8566e33f7a297bd6b1763d7c358dc73f22  CONFIG-3.0.4-I7
ed775d49a8ccb92788b5c1a9c2df6a6ff1ffabae0c1fda2915f469e5b316f068  linux-headers-3.0.4-030004_3.0.4-030004.201108301138_all.deb
71ea4e0f0250a4e121c853f5686a6803d03c5ef0d4b1050accdbb8015be2e209  linux-headers-3.0.4-030004-i7_3.0.4-030004.201108301138_amd64.deb
7a6fc23445001d6e9d45dcbf8c47ba9400d56e3c4d9bc4733f3f98bfa48ef4d3  linux-image-3.0.4-030004-i7_3.0.4-030004.201108301138_amd64.deb

No comments:

Post a Comment