This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| app-notes:ai-features [2026/10/09 21:17] – [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 | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| * 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) | ||
| </ | </ | ||
| - | ** | + | |
| ---- | ---- | ||
| Line 227: | Line 227: | ||
| With this information, | With this information, | ||
| - | ** | ||
| <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. | ||
| </ | </ | ||
| - | ** | ||
| Add these entries to the end of the '' | Add these entries to the end of the '' | ||
| Line 362: | Line 360: | ||
| root@LXCNAME: | root@LXCNAME: | ||
| - | root@LXCNAME:/ | + | root@LXCNAME:/ |
| root@LXCNAME:/ | root@LXCNAME:/ | ||
| </ | </ | ||
| < | < | ||
| - | export VERSION=v2.1.0 | + | export VERSION=v2.4.0 |
| git clone -b ${VERSION} --recurse-submodules https:// | git clone -b ${VERSION} --recurse-submodules https:// | ||
| </ | </ | ||
| Line 380: | Line 378: | ||
| root@LXCNAME: | root@LXCNAME: | ||
| root@LXCNAME: | root@LXCNAME: | ||
| + | root@LXCNAME: | ||
| </ | </ | ||
| You can then proceed with the installation of the DX-RT (runtime software). | You can then proceed with the installation of the DX-RT (runtime software). | ||
| + | |||
| + | Open the file `safe_cast.h` using the `nano` tool. | ||
| + | |||
| + | < | ||
| + | nano / | ||
| + | </ | ||
| + | |||
| + | Delete the code block | ||
| + | |||
| + | < | ||
| + | // For consistency with FromAddr, specify destination type as is (e.g., FromAddr< | ||
| + | |||
| + | . . . | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | |||
| + | and replace it with this code. | ||
| + | |||
| + | < | ||
| + | // For consistency with FromAddr, specify destination type as is (e.g., FromAddr< | ||
| + | template < | ||
| + | static inline T_Dest IntegerToPointer(T_Src addr) noexcept { | ||
| + | static_assert(std:: | ||
| + | static_assert(std:: | ||
| + | " | ||
| + | |||
| + | // On platforms where uintptr_t is narrower than T_Src (e.g. 32-bit targets | ||
| + | // receiving 64-bit addresses from a protocol/ | ||
| + | // address bits are silently dropped. | ||
| + | assert(static_cast< | ||
| + | " | ||
| + | |||
| + | return reinterpret_cast< | ||
| + | } | ||
| + | </ | ||
| + | |||
| < | < | ||
| root@LXCNAME: | root@LXCNAME: | ||
| + | |||
| + | root@LXCNAME: | ||
| root@LXCNAME: | root@LXCNAME: | ||
| Line 391: | Line 429: | ||
| root@LXCNAME: | root@LXCNAME: | ||
| </ | </ | ||
| + | and replace it with this code. | ||
| < | < | ||
| - | cmake -S . -B build -DPython_EXECUTABLE=/ | + | sed -i ' |
| + | / | ||
| + | |||
| + | cmake -S . -B build -DPython_EXECUTABLE=/ | ||
| cmake --build build -j1 | cmake --build build -j1 | ||