| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| app-notes:ai-features [2026/10/14 15:45] – [The next thing you'll need is the DX-RT runtime software] gray | app-notes:ai-features [2026/11/01 19:15] (current) – [Adjust the LXC config so that the USB port can be used in the container] gray |
|---|
| * Not available for legacy products NB1600, NB2700, NB3700, NB3710 | * Not available for legacy products NB1600, NB2700, NB3700, NB3710 |
| |
| ** | |
| <WRAP center round important 90%> | <WRAP center round important 90%> |
| The wiki was tested with router software nrsw-image-2800-0.0.0.0.img and the LXC container with debina 13 armhf (trixie) | The wiki was tested with router software nrsw-image-2800-0.0.0.0.img and the LXC container with debina 13 armhf (trixie) |
| </WRAP> | </WRAP> |
| ** | |
| |
| ---- | ---- |
| With this information, we can adjust the LXC configuration so that we have access to the device from within the container. | With this information, we can adjust the LXC configuration so that we have access to the device from within the container. |
| |
| ** | |
| <WRAP center round important 90%> | <WRAP center round important 90%> |
| This change is made directly in the router software. When updating the router software, this entry must be made again because it is not part of the official software. | This change is made directly in the router software. When updating the router software, this entry must be made again because it is not part of the official software. |
| </WRAP> | </WRAP> |
| ** | |
| |
| Add these entries to the end of the ''config'' file. | Add these entries to the end of the ''config'' file. |
| root@LXCNAME:~# apt install libncurses-dev | root@LXCNAME:~# apt install libncurses-dev |
| root@LXCNAME:~# apt install libonnxruntime-dev | root@LXCNAME:~# apt install libonnxruntime-dev |
| | root@LXCNAME:~# apt install nano |
| </konsole> | </konsole> |
| |
| <konsole> | <konsole> |
| root@LXCNAME:~# cd /mnt/home/data/dx-all-suite/dx-runtime/dx_rt | root@LXCNAME:~# cd /mnt/home/data/dx-all-suite/dx-runtime/dx_rt |
| | |
| | root@LXCNAME:~# sed -i 's/uint64_t addr;/uintptr_t addr;/' /mnt/home/data/dx-all-suite/dx-runtime/dx_rt/lib/buffer.cpp |
| |
| root@LXCNAME:~# cmake -S . -B build -DPython_EXECUTABLE=/usr/bin/python3 -Donnxruntime_INCLUDE_DIRS=/mnt/home/data/dx-all-suite/dx-runtime/dx_rt/extern/onnxruntime-win-x64-1.20.1/include -Donnxruntime_LIB_DIRS=/mnt/home/data/dx-all-suite/dx-runtime/dx_rt/extern/onnxruntime-win-x64-1.20.1/lib | root@LXCNAME:~# cmake -S . -B build -DPython_EXECUTABLE=/usr/bin/python3 -Donnxruntime_INCLUDE_DIRS=/mnt/home/data/dx-all-suite/dx-runtime/dx_rt/extern/onnxruntime-win-x64-1.20.1/include -Donnxruntime_LIB_DIRS=/mnt/home/data/dx-all-suite/dx-runtime/dx_rt/extern/onnxruntime-win-x64-1.20.1/lib |
| |
| root@LXCNAME:~# sed -i 's/uint64_t addr;/uintptr_t addr;/' /mnt/home/data/dx-all-suite/dx-runtime/dx_rt/lib/buffer.cpp | |
| nano /mnt/home/data/dx-all-suite/dx-runtime/dx_rt/lib/include/dxrt/safe_cast.h | |
| root@LXCNAME:~# cmake --build build -j1 | root@LXCNAME:~# cmake --build build -j1 |
| </konsole> | </konsole> |
| and replace it with this code. | and replace it with this code. |
| <code> | <code> |
| cmake -S . -B build -DPython_EXECUTABLE=/usr/bin/python3 -Donnxruntime_INCLUDE_DIRS=/mnt/home/data/dx-all-suite/dx-nano /mnt/home/data/dx-all-suite/dx-runtime/dx_rt/lib/include/dxrt/safe_cast.hruntime/dx_rt/extern/onnxruntime-win-x64-1.20.1/include -Donnxruntime_LIB_DIRS=/mnt/home/data/dx-all-suite/dx-runtime/dx_rt/extern/onnxruntime-win-x64-1.20.1/lib | |
| |
| sed -i 's/uint64_t addr;/uintptr_t addr;/' \ | sed -i 's/uint64_t addr;/uintptr_t addr;/' \ |
| /mnt/home/data/dx-all-suite/dx-runtime/dx_rt/lib/buffer.cpp | /mnt/home/data/dx-all-suite/dx-runtime/dx_rt/lib/buffer.cpp |
| | |
| | cmake -S . -B build -DPython_EXECUTABLE=/usr/bin/python3 -Donnxruntime_INCLUDE_DIRS=/mnt/home/data/dx-all-suite/dx-nano /mnt/home/data/dx-all-suite/dx-runtime/dx_rt/lib/include/dxrt/safe_cast.hruntime/dx_rt/extern/onnxruntime-win-x64-1.20.1/include -Donnxruntime_LIB_DIRS=/mnt/home/data/dx-all-suite/dx-runtime/dx_rt/extern/onnxruntime-win-x64-1.20.1/lib |
| |
| cmake --build build -j1 | cmake --build build -j1 |