Wiki source code of Armbian OS instruction
Version 15.1 by Kilight Cao on 2022/05/27 16:56
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | **Table of Contents:** | ||
2 | |||
3 | {{toc/}} | ||
4 | |||
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 | |||
13 | = Development Guide = | ||
14 | |||
15 | For advanced users to develop Driver/ Linux etc | ||
16 | |||
17 | == How to recompile LoRaWAN Concentrator Driver ( dragino-fwd package). == | ||
18 | |||
19 | === Step 1. Clone dragino-fwd package === | ||
20 | |||
21 | |||
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 | |||
32 | === Step 2.Compile dragino_fwd === | ||
33 | |||
34 | |||
35 | After cloning is complete, Run the command starts compiling: | ||
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 | |||
54 | |||
55 | Run command: | ||
56 | |||
57 | (% class="box infomessage" %) | ||
58 | ((( | ||
59 | dpkg -i draginofwd-*.deb | ||
60 | ))) | ||
61 | |||
62 | [[image:image-20220527154811-5.png]] | ||
63 | |||
64 | |||
65 | == Trouble Shootings == | ||
66 | |||
67 | |||
68 | Check the dragino_fwd log: | ||
69 | |||
70 | (% class="box infomessage" %) | ||
71 | ((( | ||
72 | journalctl -u draginofwd -f | ||
73 | ))) | ||
74 | |||
75 | [[image:image-20220527165221-7.png||height="182" width="931"]] | ||
76 | |||
77 | Start/stop dragino_fwd via systemctl: | ||
78 | |||
79 | (% class="box infomessage" %) | ||
80 | ((( | ||
81 | systemctl start draginofwd | ||
82 | systemctl stop draginofwd | ||
83 | ))) | ||
84 | |||
85 | |||
86 |