January 2018
Intermediate to advanced
456 pages
12h 49m
English
To include gdbserver in your target image, you can use an -sdk image if there is one, or you can add the tools-debug feature to your image by adding the following to your conf/local.conf configuration file:
EXTRA_IMAGE_FEATURES += "tools-debug"
We will now build our images and program them in the target.
The images running on the target and the toolchain's sysroot need to match, and the sysroot needs to contain debug information on shared libraries and executables. Before building the SDK we need to configure our conf/local.conf file to add debug information as follows:
EXTRA_IMAGE_FEATURES += "dbg-pkgs"
For example, if you are using core-image-minimal images, the SDK needs to have been generated in the same project as follows: ...
Read now
Unlock full access