Wiki source code of Armbian OS instruction

Version 48.1 by Kilight Cao on 2022/06/13 19:44

Show last authors
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
18 == How to recompile LoRaWAN Concentrator Driver ( dragino-fwd package). ==
19
20 === Step 1. Clone dragino-fwd package ===
21
22
23 **Requirements:**
24
25 (% class="box infomessage" %)
26 (((
27 sudo apt install -y libsqlite3-dev
28 sudo apt install -y libftdi1-dev
29 )))
30
31 Run command clone dragino-fwd package:
32
33 (% class="box infomessage" %)
34 (((
35 git clone https:~/~/github.com/dragino/dragino_fwd_src.git
36 )))
37
38 [[image:image-20220527151010-1.png]]
39
40
41 === Step 2. Compile dragino_fwd ===
42
43
44 After cloning is complete, Run the command starts compiling:
45
46 (% class="box infomessage" %)
47 (((
48 Compile HP0C/HP0A fwd:  ./hp0z-make-deb.sh c
49 )))
50
51 The following example compilers HP0C fwd.
52
53 [[image:image-20220527153913-3.png]]
54
55
56 **When the compilation is complete a draginofwd-*.deb package is generated.**
57
58 [[image:image-20220527154311-4.png||height="385" width="773"]]
59
60
61 === Step 3. Install the dragino_fwd ===
62
63
64 Run command:
65
66 (% class="box infomessage" %)
67 (((
68 dpkg -i draginofwd-*.deb
69 )))
70
71 [[image:image-20220527154811-5.png]]
72
73
74 === Step 4. Test ===
75
76
77 Check the dragino_fwd log:
78
79 (% class="box infomessage" %)
80 (((
81 journalctl -u draginofwd -f
82 )))
83
84 [[image:image-20220527165221-7.png||height="182" width="931"]]
85
86 Start/stop dragino_fwd via systemctl:
87
88 (% class="box infomessage" %)
89 (((
90 systemctl start draginofwd
91 systemctl stop draginofwd
92 )))
93
94 == How to clone Complete OS on the EMMC to SD card ==
95
96 == How to flash SD card to eMMC ==
97
98
99 Run command:
100
101 (% class="box infomessage" %)
102 (((
103 nand-sata-install
104 )))
105
106 [[image:image-20220602112051-1.png]]
107
108
109 Select the "Boot from eMMC - system on eMMC"
110
111 [[image:image-20220602112058-2.png||height="292" width="646"]]
112
113 [[image:image-20220602112106-3.png||height="301" width="643"]]
114
115
116 Select the "1  ext4"
117
118 [[image:image-20220602112113-4.png||height="271" width="642"]]
119
120
121 It takes 4-5 minutes to burn from SD card to eMMC
122
123 [[image:image-20220602112119-5.png||height="309" width="641"]]
124
125 [[image:image-20220602112125-6.png||height="281" width="640"]]
126
127 [[image:image-20220602112131-7.png||height="241" width="638"]]
128
129
130 (% style="color:red" %)**Note: After the flash is complete, power off the device and then remove the SD card.**
131
132
133
134