Revision [4105]

Last edited on 2011-08-17 08:12:37 by KenFong
Deletions:
export CONCURRENCY_LEVEL=4
# export DEB_BUILD_OPTIONS=parallel=4


Revision [4102]

Edited on 2011-08-16 23:21:17 by KenFong
Additions:
fakeroot make-kpkg --jobs=4 --initrd --revision=11.natty kernel-image kernel-headers
Deletions:
fakeroot make-kpkg --jobs=4 --initrd --append-to-version=-rt kernel-image kernel-headers


Revision [4087]

Edited on 2011-08-08 09:29:00 by KenFong
Additions:
tar cvf /backup/usr.tar . --exclude=./src
Deletions:
tar cvf usr.tar . --exclude=src


Revision [4086]

Edited on 2011-08-08 09:26:54 by KenFong
Additions:
tar cvf usr.tar . --exclude=src
Deletions:
tar cvf --exclude=src usr.tar .


Revision [4085]

Edited on 2011-08-08 09:21:50 by KenFong
Additions:
# export DEB_BUILD_OPTIONS=parallel=4
fakeroot make-kpkg --jobs=4 --initrd --append-to-version=-rt kernel-image kernel-headers
Deletions:
DEB_BUILD_OPTIONS=parallel=4 fakeroot make-kpkg --jobs=4 --initrd --append-to-version=-rt kernel-image kernel-headers


Revision [4084]

Edited on 2011-08-08 09:20:53 by KenFong
Additions:
tar cvf --exclude=src usr.tar .
Deletions:
tar zcvf --exclude=src usr.tar.gz usr


Revision [4083]

Edited on 2011-08-08 09:19:47 by KenFong
Additions:
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.
Deletions:
fakeroot make-kpkg --jobs=3 --initrd --append-to-version=-custom 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?


Revision [4046]

Edited on 2011-06-25 10:10:19 by KenFong
Additions:
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:
A new entry will be added to grub.cfg automatically. Verify and reboot.


Revision [4045]

Edited on 2011-06-25 09:45:27 by KenFong
Additions:
A new entry will be added to grub.cfg automatically. Verify and reboot.
Deletions:
Edit grub.cfg, add the new entry, reboot.


Revision [4044]

Edited on 2011-06-25 08:39:11 by KenFong
Additions:
===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.


Revision [2179]

Edited on 2009-01-30 10:11:10 by WikiAdmin
Additions:
==Post install==
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 WikiAdmin
Additions:
==[[LinuxKernelIOAccounting Per process accounting]]==


Revision [2111]

Edited on 2008-12-08 09:10:15 by WikiAdmin
Additions:
Preemptible kernel, seems to quite well on my desktop environment - http://www.linuxjournal.com/article/5600
Deletions:
Preemptible kernel, seems to work better on desktop environment - http://www.linuxjournal.com/article/5600


Revision [2110]

Edited on 2008-12-08 09:09:54 by WikiAdmin
Additions:
1) run ldconfig just in case
Preemptible kernel, seems to work better on desktop environment - http://www.linuxjournal.com/article/5600
Deletions:
Preemptible kernel - http://www.linuxjournal.com/article/5600


Revision [2109]

Edited on 2008-12-08 07:49:16 by WikiAdmin
Additions:
===Links===
Preemptible kernel - http://www.linuxjournal.com/article/5600


Revision [1759]

Edited on 2008-06-07 13:00:49 by WikiAdmin
Additions:
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:
1) Craete a ramdisk for the new kernel **mkinitrd /boot/initrd-2.6.20xxx.img 2.6.20xxx**


Revision [959]

Edited on 2007-09-12 22:51:50 by WikiAdmin
Additions:

===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 WikiAdmin
Additions:
===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


Revision [752]

Edited on 2007-06-27 20:22:32 by WikiAdmin
Additions:
===Obtain kernel-source for RHEL===
%%
up2date --get-source kernel
cd /usr/src/redhat/SPECS/
rpmbuild -bp --target= kernel.spec
%%


Revision [573]

The oldest known version of this page was created on 2007-05-21 09:11:57 by WikiAdmin
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki