Wiki source code of Armbian OS instruction
Version 24.1 by Kilight Cao on 2022/06/02 11:21
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
15.1 | 1 | **Table of Contents:** |
2 | |||
3 | {{toc/}} | ||
4 | |||
![]() |
1.1 | 5 | = Overview = |
6 | |||
7 | This is a general instruction for the use of Armbian base OS of Dragino devices. Current models include: | ||
8 | |||
9 | * HP0A | ||
10 | * HP0C | ||
11 | * LPS8v2 | ||
12 | |||
![]() |
4.1 | 13 | = Development Guide = |
14 | |||
![]() |
11.1 | 15 | For advanced users to develop Driver/ Linux etc |
![]() |
4.1 | 16 | |
17 | == How to recompile LoRaWAN Concentrator Driver ( dragino-fwd package). == | ||
18 | |||
![]() |
11.1 | 19 | === Step 1. Clone dragino-fwd package === |
![]() |
4.1 | 20 | |
21 | |||
![]() |
11.1 | 22 | Run command clone dragino-fwd package: |
23 | |||
24 | (% class="box infomessage" %) | ||
25 | ((( | ||
26 | git clone https:~/~/github.com/dragino/dragino_fwd_src.git | ||
27 | ))) | ||
28 | |||
29 | [[image:image-20220527151010-1.png]] | ||
30 | |||
31 | |||
![]() |
17.1 | 32 | === Step 2. Compile dragino_fwd === |
![]() |
11.1 | 33 | |
34 | |||
![]() |
14.1 | 35 | After cloning is complete, Run the command starts compiling: |
![]() |
11.1 | 36 | |
37 | (% class="box infomessage" %) | ||
38 | ((( | ||
39 | Compile HP0D/rasspberrypi fwd: ./hp0z-make-deb.sh d | ||
40 | Compile HP0C/HP0A fwd: ./hp0z-make-deb.sh c | ||
41 | ))) | ||
42 | |||
43 | The following example compilers HP0C fwd. | ||
44 | |||
45 | [[image:image-20220527153913-3.png]] | ||
46 | |||
47 | |||
48 | **When the compilation is complete a draginofwd-*.deb package is generated.** | ||
49 | |||
50 | [[image:image-20220527154311-4.png||height="385" width="773"]] | ||
51 | |||
52 | === Step 3. Install the dragino_fwd === | ||
53 | |||
![]() |
14.1 | 54 | |
![]() |
11.1 | 55 | Run command: |
56 | |||
57 | (% class="box infomessage" %) | ||
58 | ((( | ||
59 | dpkg -i draginofwd-*.deb | ||
60 | ))) | ||
61 | |||
62 | [[image:image-20220527154811-5.png]] | ||
63 | |||
64 | |||
![]() |
16.1 | 65 | === Step 4. Test === |
![]() |
11.1 | 66 | |
![]() |
14.1 | 67 | |
![]() |
13.1 | 68 | Check the dragino_fwd log: |
![]() |
11.1 | 69 | |
70 | (% class="box infomessage" %) | ||
71 | ((( | ||
72 | journalctl -u draginofwd -f | ||
73 | ))) | ||
74 | |||
![]() |
13.1 | 75 | [[image:image-20220527165221-7.png||height="182" width="931"]] |
![]() |
11.1 | 76 | |
![]() |
13.1 | 77 | Start/stop dragino_fwd via systemctl: |
![]() |
11.1 | 78 | |
![]() |
13.1 | 79 | (% class="box infomessage" %) |
80 | ((( | ||
81 | systemctl start draginofwd | ||
82 | systemctl stop draginofwd | ||
83 | ))) | ||
84 | |||
85 | |||
![]() |
1.1 | 86 |