Home page of this blog

Saturday, July 23, 2011

Custom Kernel 3.0 amd64 ubuntu packages optimized for core2 and above

Read my getting ready for kernel 3.0 article here

Want to try i7 optimized kernel 3.0, visit my blog post here


Requirements

This package is created in Ubuntu 11.04 and should install fine in all versions of Ubuntu Linux 11.04 (as well 10.10) and Linux Mint 11 (as well Mint 10) (should as well in debian squeeze but not sure about dkms)

The build is for 64bit for core2 and above processors

The following are the configuration settings

  1. Processor is selected as CORE2
  2. Makefile and Makefile_32 modified to reflect march settings and mtune settings to core2
  3. Configuration of oneiric kernel is taken as base, http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.0-rc7-oneiric/
  4. Kernel Timer Frequency is 300 HZ
  5. Changed arch/x86/Makefile and arch/x86/Makefile_32.cpu to reflect CORE2 optimization flags as native

How to install

To install

sudo dpkg -i linux-image-3.0.0-core2swift_07.00_amd64.deb linux-headers-3.0.0-core2swift_07.00_amd64.deb

followed by (these steps update-initramfs and update-grub are not required for mint10 or maverick, these were required when using Ubuntu Lucid)

sudo update-initramfs -c -k 3.0.0-core2swift

and final step of

sudo update-grub

before rebooting and reboot into the newly installed kernel from grub

How to build yourself

follow my blog on how to build kernel in ten steps at


Kernel Source

I downloaded the kernel source tarball from kernel.org

Version: 3.0

http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2


Makefile difference

sankaran@sankaran-desktop:/usr/src/linux-3.0/arch/x86$ diff Makefile_32.cpu Makefile_32-orig.cpu
35c35
< cflags-$(CONFIG_MCORE2) += -march=core2 $(call tune,core2)
---
> cflags-$(CONFIG_MCORE2) += -march=i686 $(call tune,core2)
sankaran@sankaran-desktop:/usr/src/linux-3.0/arch/x86$ diff Makefile Makefile-orig
57c57
< $(call cc-option,-march=core2,$(call cc-option,-mtune=core2))
---
> $(call cc-option,-march=core2,$(call cc-option,-mtune=generic)) 


MD5SUMS

63c35f4e075cc414260f23da6344fc95  CONFIG-KERNEL3.0
3b0cb472a7ec2e690aa938f40c39e4e0  linux-headers-3.0.0-core2swift_07.00_amd64.deb
2b38178da91852a86c02b87e9919e26f  linux-image-3.0.0-core2swift_07.00_amd64.deb
5b9ad47d9705604fcbde71cd5e94a16a  Readme.odt
381949af7aeccf03bbf4dfebeff05c33  Readme.pdf



SHA256SUMS

a3d84e0163c67dcc1056416a9c56b2befb171e94b9e49b26b15c857d70c71c46  CONFIG-KERNEL3.0
63077b20d62718fb64b1bdfe82e8dfcb4ee457f19750467ecc5ad3494c8bc23f  linux-headers-3.0.0-core2swift_07.00_amd64.deb
3e9beb44399302b752686112a3404f30deb5a19504dfc5acc9c3fa36afbc4377  linux-image-3.0.0-core2swift_07.00_amd64.deb
e93f652d5110564686bddc95a096ffcfb2d4a6648e985d998e948b74eeb41cf7  Readme.odt
6c2e74cc724c6fd33d4e5a4b0713fa5e7e624838f9455063871ee90d48b82d0d  Readme.pdf



Dropbox Download Links


http://dl.dropbox.com/u/22900905/MyKernelBuilds/3.0-core2swift/CONFIG-KERNEL3.0
http://dl.dropbox.com/u/22900905/MyKernelBuilds/3.0-core2swift/linux-headers-3.0.0-core2swift_07.00_amd64.deb
http://dl.dropbox.com/u/22900905/MyKernelBuilds/3.0-core2swift/linux-image-3.0.0-core2swift_07.00_amd64.deb
http://dl.dropbox.com/u/22900905/MyKernelBuilds/3.0-core2swift/MD5SUMS
http://dl.dropbox.com/u/22900905/MyKernelBuilds/3.0-core2swift/Readme.odt
http://dl.dropbox.com/u/22900905/MyKernelBuilds/3.0-core2swift/Readme.pdf
http://dl.dropbox.com/u/22900905/MyKernelBuilds/3.0-core2swift/SHA256SUMS

Build Screenshot


3 comments:

  1. Is ureadahead working with with your kernel? Have you applied the patch?
    Kevin

    ReplyDelete
  2. No, it is plain kernel from kernel.org, only config is based upon ubuntu ppa

    ReplyDelete
  3. Thanks for kernel linux install guides in my ubuntu.

    ReplyDelete