Gdb for our Colibri build

I would like to be able to a build that matches our current Colibri iMX6 build, but with gdb included.
(Note: I was able to do a Colibri iMX6 against a recent/current version, but this did not help me since the associated libraries, like /lib/libpthread.so.0, are not the correct version.)

How do I:

  • Identify what version of the image I am currently running?
  • Based on the current image I am running, where/how do I get a “copy” of this image so that I can rebuild it with gdb included?

In other words, I want to build exactly what we are running now (kernel and rfs), and then add gdb to the build.

Current info:
root@aresg3-pp07:/tmp# uname -a
Linux aresg3-pp07 4.14.170-3.0.4+gbaa6c24240a4 #1 SMP Tue Apr 21 01:45:08 UTC 2020 armv7l GNU/Linux
root@aresg3-pp07:/tmp# cat /proc/version
Linux version 4.14.170-3.0.4+gbaa6c24240a4 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Tue Apr 21 01:45:08 UTC 2020
root@aresg3-pp07:/tmp#
root@aresg3-pp07:/tmp# hostnamectl
Static hostname: aresg3-pp07
Icon name: computer
Machine ID: cdd24f89478448aca3143e677058dfeb
Boot ID: 43fb26d98d2f490a806673bbeaf1cb84
Operating System: TDX X11 2.6-snapshot-20200309 (thud)
Kernel: Linux 4.14.170-3.0.4+gbaa6c24240a4
Architecture: arm
root@aresg3-pp07:/tmp# cat /etc/os-release
ID=“tdx-x11”
NAME=“TDX X11”
VERSION=“2.6-snapshot-20200309 (thud)”
VERSION_ID=“2.6-snapshot-20200309”
PRETTY_NAME=“TDX X11 2.6-snapshot-20200309 (thud)”

Thanks.

Hi @EvanE,

do you still have access to your Yocto build? Then you can add the gdb recipe to your image or bitbake the gdb ipk package and manually install it on your module.

If you don’t have the Yocto files, can you share at least where you downloaded the image? or which version of it?

There is no way of copying the image from your module back to your computer and using that with Yocto.

Best Regards,
Hiago.

Yes, I think the build “Colibri iMX6 (3.0.4 | 2020-04-21)” from here is what I am using:

This matches the 3.0.4 reported from the “uname -a” command.

I don’t think I have access to the original Yocto build. In fact, there may never have been a build on our side - we may have just taken the above LTS images(s) from the download link and ran with that. (Sorry, I don’t know the entire history of this project/product)

The clickable link above for “Colibri iMX6” appears to just pull down the images, not the source files. Where would I go to get the source to recreate the build? Is it basically following the instructions here?:

And, yes, agreed - pulling the image from the module back to computer is not feasible…

Hi @EvanE,

Yes, the link you shared is correct, but this is an updated version of our new developer website: Build a Reference Image with Yocto Project/OpenEmbedded | Toradex Developer Center

From the information, it looks like you’re using BSP 2.6 or 2.8, which is not supported anymore (and is very old). You can follow this guide to setup your build environment, but I recommend you update to our latest version, which is BSP 6.

Best Regards,
Hiago.

OK, thanks. We will start the process of migrating to BSP version 6.x

Colibri iMX6DL 512MB V1.1A, 1.1Y
Colibri Eval Board Rev 3.2
Linux BSP 3.x?