Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6334

Is there any short A to Z description of how to debug the Linux kernel that has been tested and contains ALL necessary steps ? Esp. for Yocto?

$
0
0

Debugging the Linux Kernel with kgdb over rs-232 needs several preparation steps. I found awesome documentation, but no single-source that is fully self-contained and summarizes all steps needed, does not explain for ages, and has been tested. And also covers Yocto.

Is there any source that covers all that is needed in one single and short description ?

I.e.:

  • What files are needed in the directory GDB is started from (e.g. kernel awareness, source, vmlinux) and how to get theese, where to put it ?
  • When and where to get a cross-gdb from ?
  • ALL kernel config options needed, also the not-obvious ones (like CONFIG_RANDOMIZE_BASE)
  • How to configure the serial ports
  • Explaining a working back and forth of breaking into debugee and debugger to get started.
  • Explaining one rock-solid option of stopping the kernel that runs everywhere.
  • Explaining how to get this done not only for PC-PC debugging, but also for Yocto targets.

Viewing all articles
Browse latest Browse all 6334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>