Fun things to do building your kernel
I use the Kernel_gcc_patch that adds additional CPU options to the Linux kernel at build time.
For 3.15+ use the patch at
https://github.com/graysky2/kernel_gcc_patch/tree/v3.15%2B
then to use
patch -p1 < enable_additional_cpu_optimizations_for_gcc-updated-for-3.15.patch
cp -vi /boot/config-`uname -r` .config
make xconfig
Under Processor type and features
-Processor family
--Choose your processor.
-Under Preemption Model
change to Preemptible Kernel (Low-Latency Desktop) (PREEMPT)
Select this if you are building a kernel for a desktop or
embedded system with latency requirements in the milliseconds
range.
- Timer frequency
Choose
1000 HZ (HZ_1000
1000 Hz is the preferred choice for desktop systems and other
systems requiring fast interactive responses to events.
Make any other changes you need then save you config
for my build I have a quad core so
export CONCURRENCY_LEVEL=5
time fakeroot make-kpkg --initrd --revision=`date +%m%d%Y` --append-to-version=-`date +%m%d%Y` kernel-image kernel-headers
after its finished building
cd ..
sudo dpkg -i *.deb
Note for 14.04 and building 3.15
You need to download and install the deb
https://launchpad.net/ubuntu/+source/kernel-package/13.003/+build/5980712/+files/kernel-package_13.003_all.deb
If not you will recieve errors and the build wont complete.
See bug https://bugs.launchpad.net/bugs/1308183
No comments:
Post a Comment