Revision [4105]
Last edited on 2011-08-17 08:12:37 by KenFongDeletions:
# export DEB_BUILD_OPTIONS=parallel=4
Revision [4102]
Edited on 2011-08-16 23:21:17 by KenFongAdditions:
fakeroot make-kpkg --jobs=4 --initrd --revision=11.natty kernel-image kernel-headers
Deletions:
Revision [4087]
Edited on 2011-08-08 09:29:00 by KenFongAdditions:
tar cvf /backup/usr.tar . --exclude=./src
Deletions:
Revision [4086]
Edited on 2011-08-08 09:26:54 by KenFongAdditions:
tar cvf usr.tar . --exclude=src
Deletions:
Revision [4085]
Edited on 2011-08-08 09:21:50 by KenFongAdditions:
# export DEB_BUILD_OPTIONS=parallel=4
fakeroot make-kpkg --jobs=4 --initrd --append-to-version=-rt kernel-image kernel-headers
fakeroot make-kpkg --jobs=4 --initrd --append-to-version=-rt kernel-image kernel-headers
Deletions:
Revision [4084]
Edited on 2011-08-08 09:20:53 by KenFongAdditions:
tar cvf --exclude=src usr.tar .
Deletions:
Revision [4083]
Edited on 2011-08-08 09:19:47 by KenFongAdditions:
Backup /usr
cd /usr
tar zcvf --exclude=src usr.tar.gz usr
export CONCURRENCY_LEVEL=4
DEB_BUILD_OPTIONS=parallel=4 fakeroot make-kpkg --jobs=4 --initrd --append-to-version=-rt kernel-image kernel-headers
A new entry will be added to grub.cfg automatically. Verify and reboot. Funny thing is some of the files under /usr were changed to be owned by non-root after the kernel upgrade. Problem with fakeroot? Do I even need to run make-kpkg with fakeroot if I simply run it as root? Anyway, restore the usr backup made before the compilation.
cd /usr
tar zcvf --exclude=src usr.tar.gz usr
export CONCURRENCY_LEVEL=4
DEB_BUILD_OPTIONS=parallel=4 fakeroot make-kpkg --jobs=4 --initrd --append-to-version=-rt kernel-image kernel-headers
A new entry will be added to grub.cfg automatically. Verify and reboot. Funny thing is some of the files under /usr were changed to be owned by non-root after the kernel upgrade. Problem with fakeroot? Do I even need to run make-kpkg with fakeroot if I simply run it as root? Anyway, restore the usr backup made before the compilation.
Deletions:
A new entry will be added to grub.cfg automatically. Verify and reboot. Funny thing is some of the files under /usr were changed to be owned by non-root after the kernel upgrade. Problem with fakeroot? Do I even need to run make-kpkg with fakeroot if I simply run it as root?
Revision [4046]
Edited on 2011-06-25 10:10:19 by KenFongAdditions:
A new entry will be added to grub.cfg automatically. Verify and reboot. Funny thing is some of the files under /usr were changed to be owned by non-root after the kernel upgrade. Problem with fakeroot? Do I even need to run make-kpkg with fakeroot if I simply run it as root?
Deletions:
Revision [4045]
Edited on 2011-06-25 09:45:27 by KenFongAdditions:
A new entry will be added to grub.cfg automatically. Verify and reboot.
Deletions:
Revision [4044]
Edited on 2011-06-25 08:39:11 by KenFongAdditions:
===Compile kernel on Ubuntu 11===
Before you begin, make sure there is enough space on /usr. You will need 10G of free spare. Download kernel, extract to /usr/src, symlink it to /usr/src/linux.
cp /boot/config-$(uname -r) ./.config
make menuconfig
In the next screen, choose select "Load an Alternate Configuration File" and load .config. Exit and save if you do not need to customize.
Build your kernel:
make-kpkg clean
fakeroot make-kpkg --jobs=3 --initrd --append-to-version=-custom kernel_image kernel_headers
dpkg -i linux-image-2.6.39.2-*.deb
dpkg -i linux-headers-2.6.39.2-*.deb
Edit grub.cfg, add the new entry, reboot.
Before you begin, make sure there is enough space on /usr. You will need 10G of free spare. Download kernel, extract to /usr/src, symlink it to /usr/src/linux.
cp /boot/config-$(uname -r) ./.config
make menuconfig
In the next screen, choose select "Load an Alternate Configuration File" and load .config. Exit and save if you do not need to customize.
Build your kernel:
make-kpkg clean
fakeroot make-kpkg --jobs=3 --initrd --append-to-version=-custom kernel_image kernel_headers
dpkg -i linux-image-2.6.39.2-*.deb
dpkg -i linux-headers-2.6.39.2-*.deb
Edit grub.cfg, add the new entry, reboot.
Revision [2179]
Edited on 2009-01-30 10:11:10 by WikiAdminAdditions:
==Post install==
These are required for vbox / nvidia driver to build
cd /usr/src/linux
make prepare
make scripts
These are required for vbox / nvidia driver to build
cd /usr/src/linux
make prepare
make scripts
Revision [2134]
Edited on 2008-12-31 20:17:39 by WikiAdminAdditions:
==[[LinuxKernelIOAccounting Per process accounting]]==
Revision [2111]
Edited on 2008-12-08 09:10:15 by WikiAdminAdditions:
Preemptible kernel, seems to quite well on my desktop environment - http://www.linuxjournal.com/article/5600
Deletions:
Revision [2110]
Edited on 2008-12-08 09:09:54 by WikiAdminAdditions:
1) run ldconfig just in case
Preemptible kernel, seems to work better on desktop environment - http://www.linuxjournal.com/article/5600
Preemptible kernel, seems to work better on desktop environment - http://www.linuxjournal.com/article/5600
Deletions:
Revision [2109]
Edited on 2008-12-08 07:49:16 by WikiAdminAdditions:
===Links===
Preemptible kernel - http://www.linuxjournal.com/article/5600
Preemptible kernel - http://www.linuxjournal.com/article/5600
Revision [1759]
Edited on 2008-06-07 13:00:49 by WikiAdminAdditions:
1) Create a ramdisk for the new kernel **mkinitrd /boot/initrd-2.6.20xxx.img 2.6.20xxx** - be careful with your current LD_LIBRARY_PATH, you might want to unset it before creating the initrd image
Deletions:
Revision [959]
Edited on 2007-09-12 22:51:50 by WikiAdminAdditions:
===Editing Kernel image===
cd /root/ && mkdir myinitrd/ && cd myinitrd/ (create temporary directory)
gzip -dc # do your thing
find . | cpio -o -c | gzip -9 > /boot/initrd-kernel_version.img (create the new initrd)
cd .. && rm -rf myinitrd/ (Cleanup)
Revision [813]
Edited on 2007-07-26 19:57:25 by WikiAdminAdditions:
===Obtain kernel-source for CentOS===
yum install rpm-build redhat-rpm-config
# download kernel.src.rpm from http://mirror.centos.org/centos/5/updates/SRPMS/
rpm -Uvh kernel-xxxxx.src.rpm
cd /usr/src/redhat/SPECS
rpmbuild -bp --target i686 kernel-2.6.spec
yum install rpm-build redhat-rpm-config
# download kernel.src.rpm from http://mirror.centos.org/centos/5/updates/SRPMS/
rpm -Uvh kernel-xxxxx.src.rpm
cd /usr/src/redhat/SPECS
rpmbuild -bp --target i686 kernel-2.6.spec
Revision [752]
Edited on 2007-06-27 20:22:32 by WikiAdminAdditions:
===Obtain kernel-source for RHEL===
%%
up2date --get-source kernel
cd /usr/src/redhat/SPECS/
rpmbuild -bp --target= kernel.spec
%%
%%
up2date --get-source kernel
cd /usr/src/redhat/SPECS/
rpmbuild -bp --target=
%%