|
tdx-info is a shell script that makes it easy to get information from
Toradex's module (and potentially, any machine).
The script is capable of showing the following information: bootloader
(version, vendor, some variables), kernel (version, command line
arguments), distro, hostname, related to Toradex's hardware (module's
full name and version, serial number, Toradex's Product ID and
Revision), device tree (device trees available, device tree loaded,
device tree overlays available, device tree overlays enabled), devices
in /dev, kernel modules loaded.
tdx-info requires read access (write access as well when stated) to the
following files/folders: /proc/cmdline, /etc/os-release, /etc/issue,
/etc/hostname, /proc/device-tree/model, /proc/device-tree/serial-number,
/proc/device-tree/toradex,product-id,
/proc/device-tree/toradex,board-rev,
/proc/device-tree/chosen/u-boot,version, /boot, /boot/overlays,
/boot/overlays.txt, /dev, write access to the home of the current user
(/home/<username>) .
Examples of tdx-info usage on a Verdin iMX8M Plus running Reference
Minimal Image from Toradex's BSP 5.7
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 5.4.193-5.7.0+git.f78299297185 #1 SMP PREEMPT Mon Jul 11 14:42:03 UTC 2022
Kernel command line: root=PARTUUID=a406e573-02 ro rootwait console=tty1 console=ttymxc2,115200 consoleblank=0 earlycon
Distro name: NAME="TDX Wayland with XWayland"
Distro version: VERSION_ID=5.7.0-build.20
Hostname: verdin-imx8mp-06849036
-----------------------------------------------------------
For more details see https://github.com/toradex/tdx-info/blob/master/README.md
Signed-off-by: Henrique Garcia <henrique.garcia@toradex.com>
(cherry picked from commit 042bdd4004a3cd21422104324077a3ce34594bc9)
|