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