|
NAMErshim - user-space rshim driver for BlueField SoC SYNOPSISrshim [options] DESCRIPTIONrshim is the user-space rshim driver for BlueField SoC. It provides ways to access the rshim resources on the BlueField target via USB or PCIe from external host machine. The current version implements virtual console, virtual network interface, boot stream push, register access and some utility commands. This driver will probe the rshim backend and create directory /dev/rshim<N> for each of them with the following device files. /dev/rshim<N>/bootBoot device file used to push boot stream to the target, for example,
cat install.bfb > /dev/rshim<N>/boot /dev/rshim<N>/consoleConsole device file, which can be used by console tools to connect to the target, such as
screen /dev/rshim<N>/console /dev/rshim<N>/rshimDevice file used to access rshim register space. When reading/writing to this file, the offset is encoded as "((rshim_channel << 16) | register_offset)". This file can be used by tools like openocd to do CoreSight debugging. /dev/rshim<N>/miscKey/Value pairs used to read/write misc information. For example Display the output
cat /dev/rshim0/misc Initiate SW reset
echo "SW_RESET 1" > /dev/rshim<N>/misc Enable the advanced options
echo "DISPLAY_LEVEL 1" > /dev/rshim<N>/misc cat /dev/rshim0/misc OPTIONS-b, --backend
-d, --device
-f, --foreground
-i, --index
-l, --log-level
-v, --version
CONFIGURATION FILERshim configuration file (/etc/rshim.conf) can be used to specify the static mapping between rshim devices and rshim names. It can also be used to ignore some rshim devices. Example:
# Map pcie-0000:04:00.2 to rshim1
# Ignore usb-1-1.4
|