After configuring the [SPIN](SPIN.md) repository, install `npu-bootstrap-fm`.
```console
+$ cat /etc/apt/sources.list.d/tizen-spin.list
+deb [trusted=yes] http://[SPIN_ACCOUNT_ID]:[SPIN_ACCOUNT_PW]@10.113.136.32/download_trbs/newlive/devel:/Tizen:/6.0:/AI:/UbuntuTools/Ubuntu_18.04/ /
$ sudo apt -y update
$ sudo apt -y install npu-bootstrap-fm
$ dpkg -l | grep npu-bootstrap-fm
### Package Installation
-Trinity OS supports the `taos-mgr` command to give developers a convenient development environment. For example, if you`` want to install the curl package, please type commands like below.
+Trinity OS supports the `taos-mgr` command to give developers a convenient development environment. For example, if you want to install the curl package, please type commands like below.
```console
sh-3.2# taos-mgr refresh
[repo.base]
url = http://download.tizen.org/snapshots/tizen/base/latest/repos/standard/packages/
-
+
[repo.unified]
url = http://download.tizen.org/snapshots/tizen/unified/latest/repos/standard/packages/
npu-engine-devel-2.5.0-1.aarch64.rpm npu-engine-utils-2.5.0-1.aarch64.rpm
```
+You can test your packages after installing them.
+```
+$ cd /opt/trinity
+$ ./run_taos
+...
+[ in another shell ]
+$ telnet localhost 5000
+root:~> cd /mnt/RPMS
+root:~> rpm -ivh --force npu-engine-2.5.0-1.aarch64.rpm
+root:~> rpm -ivh --force npu-engine-example-2.5.0-1.aarch64.rpm
+root:~> /usr/lib64/npu-engine/bin/apptests/apptest_tvn_triv2 /usr/share/npu-engine/testdata/TRIV238_2TOPS/MAX_POOL_2D_000
+```
+
## Library Linking
To link the library to your application, its dependency declaration should be appended to your build script.
The header files NPU Engine provides are as follows:
```
-libnpuhost.h: The user APIs that NPU Engine provides
+libnpuhost.h: The user APIs that NPU Engine provides
npubinfmt.h: The format of NPU model binary
typedef.h: The type definitions used in NPU Engine
```
root# ls /opt/trinity/share/npu-engine/testdata/TRIV238_2TOPS/MOBILENET_V1
input_fmap_0.bin model.tvn output_fmap_0.bin
+root# cd /opt/trinity/bin/apptests/
+
root# apptest_tvn_triv2 /opt/trinity/share/npu-engine/testdata/TRIV238_2TOPS/MOBILENET_V1
>>> Initializaing SPM with zero. It can be time-consuming...
>>> Initializaing SPM with zero. It can be time-consuming...
../npu-engine-dev_2.5.0_amd64.deb ../npu-engine-utils_2.5.0_amd64.deb
```
-Then, install your packages manually.
+Then, install your packages manually.
+
+After `npu-engine-dev` is successfully installed, your application can access the required header files in `/opt/trinity/include`.
+
```console
-$ dpkg -i ../npu-engine_2.5.0_amd64.deb
+$ dpkg -i ../npu-engine_2.5.0_amd64.deb ../npu-engine-dev_2.5.0_amd64.deb
$ ls /opt/trinity/lib
libnpu-engine.so
+$ ls /opt/trinity/include/npu-engine
+libnpuhost.h npubinfmt.h typedef.h
```
-## Library Linking
+## Application Build
-After installing, your applications can be built and linked with NPU-DDK libraries in any convenient way.
+Your applications can be built and linked with NPU-DDK libraries in any convenient way.
For example, if you're using `make` and `pkg-config`,
```console
## API Usage
-After `npu-engine-dev` is successfully installed, your application can access the required header files in `/opt/trinity/include`.
-
-```console
-$ ls /opt/trinity/include/npu-engine
-libnpuhost.h npubinfmt.h typedef.h
-```
-
The header files NPU Engine provides are as follows:
```
-libnpuhost.h: The user APIs that NPU Engine provides
+libnpuhost.h: The user APIs that NPU Engine provides
npubinfmt.h: The format of NPU model binary
typedef.h: The type definitions used in NPU Engine
```