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/14 15:42] – [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 380: | Line 378: | ||
| root@LXCNAME: | root@LXCNAME: | ||
| root@LXCNAME: | root@LXCNAME: | ||
| + | root@LXCNAME: | ||
| </ | </ | ||
| Line 385: | Line 384: | ||
| Open the file `safe_cast.h` using the `nano` tool. | Open the file `safe_cast.h` using the `nano` tool. | ||
| + | |||
| < | < | ||
| nano / | nano / | ||
| Line 398: | Line 398: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | 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: | ||
| - | root@LXCNAME: | ||
| - | nano / | ||
| root@LXCNAME: | root@LXCNAME: | ||
| </ | </ | ||
| + | and replace it with this code. | ||
| < | < | ||
| - | cmake -S . -B build -DPython_EXECUTABLE=/ | ||
| - | |||
| sed -i ' | sed -i ' | ||
| / | / | ||
| + | |||
| + | cmake -S . -B build -DPython_EXECUTABLE=/ | ||
| cmake --build build -j1 | cmake --build build -j1 | ||