Source: tbtools Section: utils Maintainer: Debian Rust Maintainers Uploaders: Loïc Minier , Agathe Porte , Build-Depends: debhelper-compat (= 13), dh-cargo, cargo:native, librust-ansi-term-0.12+default-dev, librust-clap-4+default-dev, librust-clap-4+derive-dev, librust-csv-1+default-dev (>= 1.3.0), librust-cursive-0.21+crossterm-backend-dev (>= 0.21.1), librust-include-dir-0.7+default-dev (>= 0.7.3), librust-include-dir-0.7+glob-dev (>= 0.7.3), librust-lazy-static-1+default-dev (>= 1.4.0), librust-nix-0.30+default-dev (>= 0.30.1), librust-nix-0.30+ioctl-dev (>= 0.30.1), librust-nix-0.30+mount-dev (>= 0.30.1), librust-nix-0.30+poll-dev (>= 0.30.1), librust-nix-0.30+time-dev (>= 0.30.1), librust-nix-0.30+user-dev (>= 0.30.1), librust-num-traits-0.2+default-dev (>= 0.2.15), librust-rand-0.10+default-dev (>= 0.10.1), librust-regex-1+default-dev, librust-serde-1+default-dev, librust-serde-1+derive-dev, librust-serde-json-1+default-dev (>= 1.0.108), librust-udev-0.9+default-dev, librust-uuid-1+default-dev (>= 1.7.0), libstd-rust-dev, rustc:native, Standards-Version: 4.7.4 Homepage: https://github.com/intel/tbtools/ Vcs-Git: https://salsa.debian.org/rust-team/tbtools.git Vcs-Browser: https://salsa.debian.org/rust-team/tbtools Package: tbtools Architecture: any Multi-Arch: foreign Depends: ${misc:Depends}, ${shlibs:Depends}, Description: Thunderbolt/USB4 debugging tools tbtools is a collection of tools for Linux Thunderbolt/USB4 development, debugging and validation but may be useful to others as well. This consists of a library (tbtools) that can be used as standalone for a custom tools, and a basic set of debugging tools built on top of this library. . Following tools are currently available: . tblist: Lists all the Thunderbolt/USB4 devices, including retimers. . tbauth: Authorizes and De-authorizes (if supported) devices. . tbadapters: Displays all adapters of given router. . tbdump: Reads registers from various config spaces. . tbget: Read specified registers from various config spaces. This is similar to tbdump but more suitable for scripting. . tbset: Write various config spaces. In order to write registers the kernel must have CONFIG_USB4_DEBUGFS_WRITE=y set. . tbmargin: Run receiver lane margining on given USB4 port. This requires that the kernel is build with CONFIG_USB4_DEBUGFS_MARGINING=y set. . tbmonitor: Command line monitor for events in the Thunderbolt/USB4 domains. . tbpd: Type-C port power delivery control. Currently only supports ChromeOS style through their embedded controller. To use this on Chromebooks you need to enable CONFIG_CROS_EC_CHARDEV in the kernel config. . tbtrace: Helper utility for tracing the control channel traffic. This requires that the kernel driver has tracepoint support. If you need to enable tracing already from boot, you can pass trace_event=thunderbolt:* in the kernel command line. All this also requires that you have CONFIG_TRACING=y in your kernel config. . tbtunnels: Utility that dumps all tunnels in the domain. . tbman: Live device manager tool. This can be used to view the device topology in more visual manner. This too requires debugfs access but mounts it automatically (which implies that the user needs to have root privileges).