Skip to main content

Getting Device Information with Tdx-Info

Introduction

In this article, you will learn how to use tdx-info, a script made by Toradex, to get useful information about Toradex hardware and software. The script can be run using the tdx-info command once inside the module:

# tdx-info

It will output the information about the hardware and software, which can be helpful in the support process in our community.

The code, written in shell script, is open source and available at tdx-info Github.

Prerequisites

  • Toradex SoM
  • BSP or Torizon OS version 6 or later
info

tdx-info Yocto recipe was added to BSP 6.0.0 inside meta-toradex-bsp-common.

For older versions of BSP and TorizonCore, run the following command inside the module:

# wget https://raw.githubusercontent.com/toradex/tdx-info/master/tdx-info --output-document=tdx-info && sudo sh ./tdx-info

Using tdx-info

Using tdx-info is very straightforward. If you are using BSP 6 or later, simply run:

# tdx-info

Instead, if Torizon OS is being used, run it with sudo:

# sudo tdx-info

Without any parameters, tdx-info will display the software summary and the hardware info, as in the example below.

Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 5.15.77-6.1.0-devel+git.a8d2c55c6ae7 #1-TorizonCore SMP PREEMPT Wed Nov 30 08:37:42 UTC 2022
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.1/torizon/e1240cd366029c0ab7e7c777eae3f918eb9375c5659866aab049ee2063c72aad/0
Distro name: NAME="TorizonCore"
Distro version: VERSION_ID=6.1.0-devel-202212-build.4
Hostname: verdin-imx8mm-06827384
------------------------------------------------------------

Hardware info
------------------------------------------------------------
HW model: Toradex Verdin iMX8M Mini on Dahlia Board
Toradex version: 0057 V1.1A
Serial number: 06827384
Processor arch: aarch64
------------------------------------------------------------

By running it with the --help flag, more options are provided:

Usage: tdx-info [OPTION]
List information about hardware and software from Toradex modules.

If no parameter was passed, this script will display hardware and software information by default.
--bootloader, -b : Display bootloader related information (U-Boot and GRUB only).
--devices, -d : List all devices in /dev/.
--device-tree, -dt : Display device tree and overlays related information.
--dmesg, -dm : Export the dmesg output in a txt file at ~.
--hardware, -w : Display only hardware information.
--help, -h : Display this message.
--no-devices, -nd : Diplay hardware and software information without listing devices.
--software, -s : Display only software information.
--all, -a : Display all information showed above without the dmesg log.

For example, we can get all relevant information about device trees and overlays by running tdx-info with -dt (or --device-tree) flag.

# sudo tdx-info -dt

Device tree
------------------------------------------------------------
Device tree enabled: imx8mm-verdin-nonwifi-dahlia.dtb
Compatible string: toradex,verdin-imx8mm-nonwifi-dahliatoradex,verdin-imx8mm-nonwifitoradex,verdin-imx8mmfsl,imx8mm
Device trees available:
imx8mm-verdin-nonwifi-dahlia.dtb
imx8mm-verdin-nonwifi-dev.dtb
imx8mm-verdin-wifi-dahlia.dtb
imx8mm-verdin-wifi-dev.dtb
------------------------------------------------------------

Device tree overlays
------------------------------------------------------------
Overlays enabled: fdt_overlays=verdin-imx8mm_hmp_overlay.dtbo
Overlays available:
display-dpi-lt170410_overlay.dtbo
display-edt5.7_overlay.dtbo
display-edt7_overlay.dtbo
display-fullhd_overlay.dtbo
display-lt161010_overlay.dtbo
display-lt170410_overlay.dtbo
display-vga_overlay.dtbo
verdin-imx8mm_20mhz_can1.dtbo
verdin-imx8mm_disable_can1.dtbo
verdin-imx8mm_dsi-to-hdmi_overlay.dtbo
verdin-imx8mm_dsi-to-lvds_panel-cap-touch-10inch-lvds_overlay.dtbo
verdin-imx8mm_hmp.dtbo
verdin-imx8mm_hmp_overlay.dtbo
verdin-imx8mm_ov5640_overlay.dtbo
verdin-imx8mm_spidev_overlay.dtbo
------------------------------------------------------------

All the other options are also very useful and explained by the --help output. Feel free to use it, post the output on the community and also check the source code at tdx-info Github or by manually opening it inside your module at /usr/bin/tdx-info.



Send Feedback!