1
Hardware Assembly
Insert the DX-M1 module into the M.2 2280 slot on the board at an angle of approximately 30 degrees,
then bring the module into a horizontal position and tighten the retaining screw.
The module draws up to 5W under full load and heats up. Using the module together with a heatsink is
recommended for continuously running applications.
2
Adding the Overlay
In order for the DX-M1 module to be recognized properly over the PCIe bus, the
The Add the After defining the overlay file, the board must be restarted so that the changes can be applied by the
system.
k3-am67a-t3-gem-o1-pcie-link-speed-2.dtbo overlay file, which sets the link speed, must be
activated.Open the uEnv.txt file located in the boot directory using the text editor named nano from the
terminal interface.uEnv.txt file will contain definitions such as these.k3-am67a-t3-gem-o1-pcie-link-speed-2.dtbo file name to the end of the overlays= line,
leaving a space.The final state of the uEnv.txt file will be like this. You need to place the appropriate file name in
the <file-name> section.Do not delete the other overlay files on the
overlays= line. Otherwise the interfaces that were
activated earlier will become unusable.3
Verifying the PCIe Connection
After restarting the board, check that the module is detected on the PCIe bus.The
Processing accelerators line appearing in the output indicates that the module is recognized at
the hardware level.4
Installing the Driver and Runtime
After updating the package list, install the DeepX driver and runtime package.This package installs the PCIe kernel driver (
dxrt_driver, dx_dma), the DX-RT runtime and helper
tools such as dxrt-cli.Restart the board so that the driver can be loaded into the kernel.5
Checking That the Driver Is Loaded
Load the kernel modules and then restart the service.The You can check whether the kernel module was loaded successfully with the command below.You can also check the device files created by the driver.
modprobe command above loads the module only for the current session. In order for the driver to
be loaded automatically on every boot, add the module to the systemd-modules-load configuration.6
Verifying the Device Status
Verify with the
dxrt-cli tool that the module is accessible by the runtime. An output similar to the
following is expected. The version and temperature values will differ depending on the hardware you are
using.7
Installing the Python Package
The inference interface on the Python side is provided by the
dx_engine package. Install the package
with pip3.8
Verifying the Python Package
In order to run inference with Python, the If the command ran without an error, the development environment is ready to use.
dx_engine package must be available.
