Home page of this blog

Saturday, June 25, 2011

Custom kernel 2.6.39.2 ubuntu amd64 packages optimized for core2 and above with BT_L2CAP and BT_SCO



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 core2 and above processors

The following are the configuration settings

  1. Kernel Timer Frequency set to 1000 HZ
  2. Processor is selected as CORE2
  3. main Makefile modified to use -Ofast of gcc 4.6
  4. Makefile and Makefile_32 modified to reflect march settings and mtune settings to core2 (new arch of gcc 4.6)
  5. Scheduled autogroup enabled
  6. Transparent hugepage support enabled
  7. Enabled BT_L2CAP and BT_SCO bluetooth in kernel config explicitly to build bluetooth modules inside kernel
  8. Enabled CONFIG_VGA_SWITCHEROO
  9. Copied kernel source to /usr/src and built from /usr/src folder to avoid symlink issues with the built packages (actually when built from /home/sankaran, the built binary will have symlinks to /home/sankaran which is ludicrous)
  10. Used enterprise linux kernel config as the base config and the kernel mostly seems to have no kernel debug prints because of it. Hence it runs considerably faster than stock Ubuntu kernel (well we can feel it) (I extracted the srpm to recreate the el6 config, the el6 srpm can be downloaded from http://ftp.redhat.com/redhat/linux/enterprise/6Workstation/en/os/SRPMS/kernel-2.6.32-131.0.15.el6.src.rpm)

How to install

To install

sudo dpkg -i linux-image-2.6.39.2-core2swiftr1_14.00_amd64.deb linux-headers-2.6.39.2-core2swiftr1_14.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 2.6.39.2-core2swiftr1

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: 2.6.39.2




MD5SUMS

ef7057e2b1a8360b65b03d466717f03d  CONFIGCORE2SWIFT
d251443277136b7abe068be67cd80919  linux-headers-2.6.39.2-core2swiftr1_14.00_amd64.deb
cb0f41f5fd917aca6302f7aa15118574  linux-image-2.6.39.2-core2swiftr1_14.00_amd64.deb
69e62dca4c4010286ef162a283ceb767  Readme.odt
7feb5c9bec7c58c60ae861e2feea2600  Readme.pdf




SHA256SUMS

c4f885c39f1c8673fa1a5b063e032a40f340c1e31e47560a5c9040ca333f1ed6  CONFIGCORE2SWIFT
688f8cc1dc9af82c524726db3d89eabc566cec6cc43365bdbedf8bc83f4efcab  linux-headers-2.6.39.2-core2swiftr1_14.00_amd64.deb
762247860f2c801817e728be39a6ad528bd3ee16cbfd0ba749a855e1a3312b17  linux-image-2.6.39.2-core2swiftr1_14.00_amd64.deb
1a2f411d591f546b4e8f41d199e1077872fe02e08024ab6aa5aa04868996b49a  Readme.odt
55c6f2c7e322386336ae1bda5151fa0fb49983e8e6613b3a18a2577bab1db33f  Readme.pdf



Dropbox Links

http://dl.dropbox.com/u/22900905/MyKernelBuilds/2.6.39.2-core2swift/CONFIGCORE2SWIFT
http://dl.dropbox.com/u/22900905/MyKernelBuilds/2.6.39.2-core2swift/linux-headers-2.6.39.2-core2swiftr1_14.00_amd64.deb
http://dl.dropbox.com/u/22900905/MyKernelBuilds/2.6.39.2-core2swift/linux-image-2.6.39.2-core2swiftr1_14.00_amd64.deb
http://dl.dropbox.com/u/22900905/MyKernelBuilds/2.6.39.2-core2swift/Readme.odt
http://dl.dropbox.com/u/22900905/MyKernelBuilds/2.6.39.2-core2swift/Readme.pdf

3 comments:

  1. I have modfied the kernels based on new kernel config, reuploading in progress.

    I enabled VGA_SWITCHEROO, BT_L2CAP and BT_SCO

    Once done the links will be available

    ReplyDelete
  2. linux kernel still uploading will finish in a minute or so

    ReplyDelete
  3. Finished uploading, ready for public download

    ReplyDelete