Giter Site home page Giter Site logo

tdx-info's Introduction

tdx-info

DEPRECATED, MOVE TO TORADEX REPO

This repo is deprecated now. It moved to Toradex official repo: https://github.com/toradex/tdx-info

All instructions below are old and this repo should not be used anymore.

Objective

Script to get useful information about Toradex Hardware. The goal of this script is to run it once and get useful information about hardware and software.

Usage

Usage: ./tdx-info [OPTION]

  • 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 : Display hardware and software information without listing devices.
  • --software, -s : Display only software information.
  • --all, -a : Display all information shown above without the dmesg log.

tdx-info's People

Contributors

g-claudino avatar hiagofranco avatar leograba avatar

Watchers

 avatar  avatar  avatar

Forkers

leograba grilohbg

tdx-info's Issues

Tool name

I understand that the current Brict name is quite short and easy to remember.

But I would like to propose some name that talks by itself.

Maybe support-helper.sh

Or tdx-support-helper.sh

I really think that this name shows one of the main usages of this tool: to help Toradex support during early (maybe the first) steps of support.

What do you guys think? :)

Bootloader detection on Colibri iMX6ULL 512MB (NAND)

Although I have U-boot installed, the logic used to get the bootloader on Colibri iMX6ULL 512MB (NAND) is giving me "Unknown" bootloader:

root@colibri-imx6ull-06388259:~# ./brict -s 

Software summary
------------------------------------------------------------
Bootloader:               Unknown
Kernel version:           5.4.161-5.6.0+git.ed9c66090d11 #1 SMP Tue Feb 15 10:27:40 UTC 2022
Kernel command line:      user_debug=30 ubi.mtd=ubi root=ubi0:rootfs rw rootfstype=ubifs ubi.fm_autoconvert=1 console=tty1 console=ttymxc0,115200n8 consoleblank=0
Distro name:              NAME="TDX Wayland with XWayland Upstream"
Distro version:           VERSION_ID=5.6.0-build.18
Hostname:                 colibri-imx6ull-06388259
------------------------------------------------------------
root@colibri-imx6ull-06388259:~# ./brict -b

Bootloader info
------------------------------------------------------------
Unknown bootloader:       -
------------------------------------------------------------

But works as expected on Apalis iMX6D 512MB (eMMC)

root@apalis-imx6-10692081:~# ./brict -s

Software summary
------------------------------------------------------------
Bootloader:               U-Boot
Kernel version:           5.4.161-5.6.0+git.0f0011824921 #1 SMP Fri Mar 25 14:27:29 UTC 2022
Kernel command line:      enable_wait_mode=off vmalloc=400M root=PARTUUID=c49561da-02 ro rootwait fec_mac=00:14:2d:a3:25:f1 consoleblank=0 no_console_suspend=1 console=tty1 console=ttymxc0,115200n8 mxc_hdmi.only_cea=1 fbmem=32M
Distro name:              NAME="TDX Wayland with XWayland"
Distro version:           VERSION_ID=5.6.0-build.18
Hostname:                 apalis-imx6-10692081
------------------------------------------------------------
root@apalis-imx6-10692081:~# ./brict -b

Bootloader info
------------------------------------------------------------
U-Boot version:           -
U-Boot vendor:            toradex
U-Boot board:             apalis_imx6
U-Boot fdt_board:         -
U-Boot soc:               mx6
U-Boot video args:        32M
U-Boot secure boot:       -
U-Boot boot delay:        1
------------------------------------------------------------

Probably all NAND based modules are presenting the same behavior.

Only ask for elevated access when needed

This is a proposal.

As of now, the script exits immediately when it is not run as administrator. For many pieces of information, this is not required at all.

The idea is to:

  • Identify which options require elevated access
  • Ask for elevated access inside the script (needs research for best practices on how to do it)

This would allow things as reduced defaults (#13) to be run without asking for sudo.

Reduce amount of data on default option

Hi guys, this is a proposal.

Currently, the default option behaves the same as --all:

Nothing, “-a“ or “--all“: it’ll print everything.

I'd like to propose that the default (when no option is passed) only print a small subset of data that is almost always required, no matter which bug: basic hardware (whatever --hardware prints) and software summary (whatever --software prints).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.