Differences between version 15 and predecessor to the previous major change of KernelDevelopment.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 15 | Last edited on Wednesday, December 6, 2006 8:30:04 pm | by IanMcDonald | Revert |
Older page: | version 14 | Last edited on Wednesday, November 2, 2005 10:03:45 am | by IanMcDonald | Revert |
@@ -2,8 +2,9 @@
* [Ostra]
* [Sparse]
* [Git]; see See KernelDevelopmentWithGit
+* [OProfile]
!! Resources
* KernelDevelopmentDebugging
@@ -12,25 +13,26 @@
* [Hacking the Linux 2.6 kernel, Part 2: Making your first hack | http://www-128.ibm.com/developerworks/linux/edu/l-dw-linux-kernelhack2-i.html]
!! Some notes
-Using
[DistCC] for KernelDevelopment can
be problematic
.
+In theory you can use
[DistCC] or [ccache | http://ccache.samba.org/] to speed up compilation but IanMcDonald hasn't been able to get them to work with the kernel (he would love to be told how to though). The problem seems to
be not so much with those products but the fact that when you do a make with a -j option it gets screwed up (-j does parallelisation)
.
-In theory [ccache | http://ccache.samba.org/] should help speed up compilation as well. I'm testing it and will update -- IanMcDonald
-
-
A script to copy a new [Kernel
] to remote machines:''''
+A script to copy a new [LinuxKernel
] to remote machines:''''
<verbatim>
- #!/bin/bash
- SRC=$HOME
/linuxsrc/dccpwork
- VER=2.6.14-rc4
- rm $HOME
/tmp/lib/modules/$VER/build
- rm $HOME
/tmp/lib/modules/$VER/source
- scp
$SRC/System.map root@$1:/boot/System.map-$VER
- scp
$SRC/arch/i386/boot/bzImage root@$1:/boot/vmlinuz-$VER
- scp
-r
$HOME
/tmp/lib root@$1:/
+ #! /bin/bash
+ # syntax m machine_num directory version
+ H=/home/ian
+ SRC=$H
/linuxsrc/$2
+ VER=$3
+ rm $H
/tmp/lib/modules/$VER/build
+ rm $H
/tmp/lib/modules/$VER/source
+ rsync
$SRC/System.map root@jandi
$1:/boot/System.map-$VER
+ rsync
$SRC/arch/i386/boot/bzImage root@jandi
$1:/boot/vmlinuz-$VER
+ rsync $SRC/vmlinux root@jandi$1:/boot/vmlinux
-$VER
+ rsync -av $H
/tmp/lib/modules/$VER
root@jandi
$1:/lib/modules
</verbatim>
It has also been suggested to me to use kgdb with qemu and/or kgdboe to help with debugging.
----
CategoryKernel