352
edits
(→Kdump) |
|||
Line 123: | Line 123: | ||
<syntaxhighlight lang=make> | <syntaxhighlight lang=make> | ||
IMAGE_INSTALL += "kexec-tools" | IMAGE_INSTALL += "kexec-tools" | ||
</syntaxhighlight> | |||
=== KGDB === | |||
KGDB is intended to be used for kernel debugging, as a source level debugger along with GDB. It also allows to place breakpoints in kernel code and perform limited execution stepping. | |||
In order to include KGDB on our image, it is necessary to modify the kernel configuration by running the following command: | |||
<syntaxhighlight lang=bash> | |||
bitbake -c menuconfig virtual/kernel | |||
</syntaxhighlight> | |||
The settings are as follows: | |||
<syntaxhighlight lang=bash> | |||
Kernel hacking -> KGDB: Kernel debugger (Check it and Enter): | |||
Check: KGDB: use kgdb over the serial console | |||
Kernel debugging Check it | |||
</syntaxhighlight> | |||
Finally, it is necessary to add SSH to the image. This can be done by adding to the '''$YOCTO_BUILD/conf/local.conf''': | |||
'''$YOCTO_BUILD/conf/local.conf''' | |||
<syntaxhighlight lang=bash> | |||
CORE_IMAGE_EXTRA_INSTALL += "openssh" | |||
</syntaxhighlight> | </syntaxhighlight> | ||
edits