summaryrefslogtreecommitdiff
path: root/sys/man
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-10-09 12:12:13 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-10-09 12:12:13 +0000
commita3f3953ab2f245cd47aab3563014c04f1a70f9be (patch)
treed41fef4bdbf207b7c5cf9d8b9568b85cf5a4ea30 /sys/man
parent610071bb8b28fe8a871b97f0332e47c3d921f3cf (diff)
usbsdmux: Add program to control usb-sd-mux device
Diffstat (limited to 'sys/man')
-rw-r--r--sys/man/8/usbsdmux41
1 files changed, 41 insertions, 0 deletions
diff --git a/sys/man/8/usbsdmux b/sys/man/8/usbsdmux
new file mode 100644
index 000000000..d489114c7
--- /dev/null
+++ b/sys/man/8/usbsdmux
@@ -0,0 +1,41 @@
+.TH USBSDMUX 8
+.SH NAME
+usbsdmux \- change mode of a usb-sd-mux device
+.SH SYNOPSIS
+.B aux/usbsdmux
+.I mode
+.B [
+.I /dev/sdUxxxxx/raw
+.B ]
+.SH DESCRIPTION
+The USB-SD-Mux from Linux Automation GmbH is a device
+that can programmatically attach and detach a sd-card
+from a device-under-test (DUT), allowing it to be
+re-written from another machine (HOST) without the
+need to physically swap the sd-card.
+.PP
+The
+.I mode
+can be one of the following:
+.TP
+off
+The sd-card is disconnected from both the HOST and the DUT.
+.TP
+dut
+The sd-card is connected to the DUT and disconnected from
+the HOST.
+.TP
+host
+The sd-card is connected to the HOST and disconnected from
+the DUT.
+.PP
+This program uses a vendor-specific SCSI command to change
+the mode.
+When not specified, it opens
+.B /dev/sdUdca10/raw
+which is the first USB-SD-Mux device attached to the HOST.
+.SH SOURCE
+.B /sys/src/cmd/aux/usbsdmux.c
+.SH SEE ALSO
+.IR nusb (4)
+.B https://linux-automation.com/en/products/usb-sd-mux.html