Hide last authors
Kilight Cao 15.1 1 **Table of Contents:**
2
3 {{toc/}}
4
Edwin Chen 1.1 5
Xiaoling 48.2 6 = 1.  Overview =
7
8
Edwin Chen 1.1 9 This is a general instruction for the use of Armbian base OS of Dragino devices. Current models include:
10
11 * HP0A
12 * HP0C
13 * LPS8v2
14
Edwin Chen 4.1 15
Xiaoling 48.2 16
17
18 = 2.  Development Guide =
19
20
Kilight Cao 11.1 21 For advanced users to develop Driver/ Linux etc
Edwin Chen 4.1 22
Kilight Cao 25.1 23
Xiaoling 48.2 24 == 2.1  How to recompile LoRaWAN Concentrator Driver ( dragino-fwd package). ==
Edwin Chen 4.1 25
Kilight Cao 11.1 26 === Step 1. Clone dragino-fwd package ===
Edwin Chen 4.1 27
28
Kilight Cao 30.1 29 **Requirements:**
30
31 (% class="box infomessage" %)
32 (((
33 sudo apt install -y libsqlite3-dev
34 sudo apt install -y libftdi1-dev
35 )))
36
Kilight Cao 11.1 37 Run command clone dragino-fwd package:
38
39 (% class="box infomessage" %)
40 (((
41 git clone https:~/~/github.com/dragino/dragino_fwd_src.git
42 )))
43
44 [[image:image-20220527151010-1.png]]
45
46
Kilight Cao 17.1 47 === Step 2. Compile dragino_fwd ===
Kilight Cao 11.1 48
Kilight Cao 48.1 49
Kilight Cao 14.1 50 After cloning is complete, Run the command starts compiling:
Kilight Cao 11.1 51
52 (% class="box infomessage" %)
53 (((
54 Compile HP0C/HP0A fwd:  ./hp0z-make-deb.sh c
55 )))
56
57 The following example compilers HP0C fwd.
58
59 [[image:image-20220527153913-3.png]]
60
61
62 **When the compilation is complete a draginofwd-*.deb package is generated.**
63
64 [[image:image-20220527154311-4.png||height="385" width="773"]]
65
Kilight Cao 25.1 66
Kilight Cao 11.1 67 === Step 3. Install the dragino_fwd ===
68
Kilight Cao 14.1 69
Kilight Cao 11.1 70 Run command:
71
72 (% class="box infomessage" %)
73 (((
74 dpkg -i draginofwd-*.deb
75 )))
76
77 [[image:image-20220527154811-5.png]]
78
79
Edwin Chen 16.1 80 === Step 4. Test ===
Kilight Cao 11.1 81
Kilight Cao 14.1 82
Kilight Cao 13.1 83 Check the dragino_fwd log:
Kilight Cao 11.1 84
85 (% class="box infomessage" %)
86 (((
87 journalctl -u draginofwd -f
88 )))
89
Kilight Cao 13.1 90 [[image:image-20220527165221-7.png||height="182" width="931"]]
Kilight Cao 11.1 91
Kilight Cao 13.1 92 Start/stop dragino_fwd via systemctl:
Kilight Cao 11.1 93
Kilight Cao 13.1 94 (% class="box infomessage" %)
95 (((
96 systemctl start draginofwd
97 systemctl stop draginofwd
98 )))
99
Xiaoye 46.1 100 == How to clone Complete OS on the EMMC to SD card ==
101
Kilight Cao 27.1 102 == How to flash SD card to eMMC ==
Kilight Cao 13.1 103
Kilight Cao 27.1 104
105 Run command:
106
107 (% class="box infomessage" %)
108 (((
109 nand-sata-install
110 )))
111
112 [[image:image-20220602112051-1.png]]
113
Kilight Cao 28.1 114
Kilight Cao 27.1 115 Select the "Boot from eMMC - system on eMMC"
116
117 [[image:image-20220602112058-2.png||height="292" width="646"]]
118
119 [[image:image-20220602112106-3.png||height="301" width="643"]]
120
121
122 Select the "1  ext4"
123
124 [[image:image-20220602112113-4.png||height="271" width="642"]]
125
126
127 It takes 4-5 minutes to burn from SD card to eMMC
128
129 [[image:image-20220602112119-5.png||height="309" width="641"]]
130
131 [[image:image-20220602112125-6.png||height="281" width="640"]]
132
133 [[image:image-20220602112131-7.png||height="241" width="638"]]
134
135
136 (% style="color:red" %)**Note: After the flash is complete, power off the device and then remove the SD card.**
137
Kilight Cao 28.1 138
139
Edwin Chen 1.1 140
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0