Penguin
Diff: KernelDevelopment
EditPageHistoryDiffInfoLikePages

Differences between version 15 and revision by previous author of KernelDevelopment.

Other diffs: Previous Major Revision, Previous Revision, 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 12 Last edited on Wednesday, October 19, 2005 7:30:21 pm by AristotlePagaltzis Revert
@@ -2,8 +2,9 @@
  
 * [Ostra] 
 * [Sparse] 
 * [Git]; see See KernelDevelopmentWithGit 
+* [OProfile]  
  
 !! Resources 
  
 * KernelDevelopmentDebugging 
@@ -12,21 +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)
  
-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