public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [patch] README: add help for users building their own kernels
@ 2006-06-13  0:36 Chuck Ebbert
  0 siblings, 0 replies; only message in thread
From: Chuck Ebbert @ 2006-06-13  0:36 UTC (permalink / raw)
  To: systemtap

Add help for users who build kernels from kernel.org.

 README |   29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletion(-)

--- systemtap-20060610.orig/README
+++ systemtap-20060610/README
@@ -25,7 +25,8 @@ Installation steps:
 
 Build steps:
 
-- Install the kernel-debuginfo, kernel-[smp-]devel, gcc packages.
+- Install the kernel-debuginfo, kernel-[smp-]devel, gcc packages
+  (or see below if you are building your own kernels from source.)
 - Download the latest elfutils snapshot
   ftp://sources.redhat.com/pub/systemtap/elfutils/elfutils-NNNN.tar.gz
   ftp://sources.redhat.com/pub/systemtap/elfutils/elfutils-portability.patch
@@ -48,3 +49,29 @@ Tips :
   /boot/vmlinux-`uname -r`
   /usr/lib/debug/lib/modules/`uname -r`/vmlinux
   /lib/modules/`uname -r`/vmlinux
+
+- If you are using generic kernel.org kernels built from source,
+  you do not need kernel-debuginfo or kernel-[smp-]devel.
+  Instead, you can do this:
+
+  - Build the kernel using your normal procedures. You need to enable
+    CONFIG_DEBUG_INFO and CONFIG_RELAY.
+  - Boot into the kernel you plan to use.
+  - Make sure the file 'vmlinux' from your build can be found by
+    systemtap (see above.)  You can just symlink it to one of the above
+    locations.
+  - symlink your source directory to these two places:
+    - /usr/src/kernels/`uname -r`
+    - /lib/modules/`uname -r`/source
+  - symlink your build directory to here:
+    - /lib/modules/`uname -r`/build
+  - For example, if your kernel source is in /home/me/linux/2.6.17-rc6
+    and you build your kernel in the source directory, you would do
+    this (be sure you are running the right kernel or `uname -r`
+    will be wrong:)
+       ln -s /home/me/linux/2.6.17-rc6/vmlinux /boot/vmlinux-`uname -r`
+       mkdir /usr/src/kernels  (if needed)
+       ln -s /home/me/linux/2.6.17-rc6 /usr/src/kernels/`uname -r`
+       mkdir /lib/modules/`uname -r`  (if needed)
+       ln -s /home/me/linux/2.6.17-rc6 /lib/modules/`uname -r`/build
+       ln -s /home/me/linux/2.6.17-rc6 /lib/modules/`uname -r`/source
-- 
Chuck

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-13  0:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-13  0:36 [patch] README: add help for users building their own kernels Chuck Ebbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).