Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to using jetpack docker #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: test arch
run: uname -a ; lscpu
- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: longkl/iot:latest
image: longkl/jetpack4_6_iot:manifest-latest
options: -v ${{ github.workspace }}:${{ github.workspace }}
run: |
cmake -B/home/runner/work/iot/iot/build -S /home/runner/work/iot/iot/
cmake --build /home/runner/work/iot/iot/build | grep 'Linking CXX executable iot' || exit 127
cmake --build /home/runner/work/iot/iot/build | grep '[100%] Built target' || exit 127
cmake -B/home/runner/work/iot/iot/unittests/build -S /home/runner/work/iot/iot/unittests/
cmake --build /home/runner/work/iot/iot/unittests/build
cd /home/runner/work/iot/iot/unittests/build && make test | grep '100% tests passed' || exit 127
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,32 @@ or
## Configure systemd
To make the app run as a service in your Linux system:
follow [this](https://wiki.archlinux.org/title/systemd), and [my config](https://github.com/vuhailongkl97/iot/blob/master/iot.service)

## Docker config for jetson nano
Inside docker [longkl/jetpack4_6_iot](https://hub.docker.com/r/longkl/jetpack4_6_iot) has:

Jetpack 32.7.1
```
apt update
apt install cuda cmake pkg-config wget
apt install build-essential

wget https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1-linux-aarch64.sh
bash ./cmake-3.25.1-linux-aarch64.sh

https://sourceforge.net/projects/asio/files/asio/1.24.0%20%28Stable%29/
download unzip and make install

Lib Dependencies
https://repo.download.nvidia.com/jetson/#Jetpack%204.6.1
total 364M
-rw-rw-r-- 1 1000 1000 2.4K Nov 30 18:31 cuda-compiler-10-2_10.2.460-1_arm64.deb
-rw-rw-r-- 1 1000 1000 123K Nov 30 18:31 cuda-cudart-10-2_10.2.300-1_arm64.deb
-rw-rw-r-- 1 1000 1000 2.5K Nov 30 18:31 cuda-libraries-10-2_10.2.460-1_arm64.deb
-rw-rw-r-- 1 1000 1000 44M Nov 30 18:35 libcublas10_10.2.3.300-1_arm64.deb
-rw-rw-r-- 1 1000 1000 272M Nov 30 18:34 libcudnn8_8.2.1.32-1+cuda10.2_arm64.deb
-rw-rw-r-- 1 1000 1000 38M Nov 30 18:36 libcurand-10-2_10.1.2.300-1_arm64.deb
-rw-rw-r-- 1 1000 1000 999K Nov 30 18:36 libopencv-dev_4.1.1-2-gd5a58aa75_arm64.deb
-rw-rw-r-- 1 1000 1000 9.5M Nov 30 18:36 libopencv_4.1.1-2-gd5a58aa75_arm64.deb

```