[Doc] Add some documents for NPU kernel modules
authorDongju Chae <dongju.chae@samsung.com>
Wed, 28 Jul 2021 00:50:50 +0000 (09:50 +0900)
committer채동주/On-Device Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Wed, 28 Jul 2021 08:01:52 +0000 (17:01 +0900)
This patch adds some documents how to install NPU kernel modules.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
docs/markdown/FastModels.md

index e199ef9..2ec3892 100644 (file)
@@ -94,6 +94,30 @@ sh-3.2# ls /mnt
 
 We highly recommend to append this command to your `/init` script.
 
+### NPU Kernel Module Installation
+
+When you install `npu-bootstrap-fm` package, `linux-fvp` package is installed as well.
+The `linux-fvp` package contains NPU kernel modules which can be shared via sshfs.
+
+```console
+$ dpkg -L linux-fvp
+...
+/opt/trinity/npu-bootstrap/modules/npu_sched.ko
+/opt/trinity/npu-bootstrap/modules/trinity_vision2.ko
+...
+$ cp /opt/trinity/npu-bootstrap/modules/*.ko /opt/trinity/share/
+```
+
+Then, you can install the modules inside the FastModel simulator.
+```console
+$ telnet localhost 5000
+...
+sh-3.2# toybox insmod /mnt/npu_sched.ko
+sh-3.2# toybox insmod /mnt/trinity_vision2.ko
+sh-3.2# mdev -s
+sh-3.2# ls /dev/triv2-0
+```
+
 ### Multiple Sessions using ssh
 
 If you need multiple sessions, a ssh server should be prepared inside the FastModel.