Wiki source code of Armbian OS instruction
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | **Table of Contents:** | ||
2 | |||
3 | {{toc/}} | ||
4 | |||
5 | |||
6 | = 1. Overview = | ||
7 | |||
8 | |||
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 | |||
15 | |||
16 | |||
17 | |||
18 | = 2. Development Guide = | ||
19 | |||
20 | |||
21 | For advanced users to develop Driver/ Linux etc | ||
22 | |||
23 | |||
24 | == 2.1 How to recompile LoRaWAN Concentrator Driver ( dragino-fwd package). == | ||
25 | |||
26 | === Step 1. Clone dragino-fwd package === | ||
27 | |||
28 | |||
29 | **Requirements:** | ||
30 | |||
31 | (% class="box infomessage" %) | ||
32 | ((( | ||
33 | sudo apt install -y libsqlite3-dev | ||
34 | sudo apt install -y libftdi1-dev | ||
35 | ))) | ||
36 | |||
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 | |||
47 | === Step 2. Compile dragino_fwd === | ||
48 | |||
49 | |||
50 | After cloning is complete, Run the command starts compiling: | ||
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 | |||
66 | |||
67 | === Step 3. Install the dragino_fwd === | ||
68 | |||
69 | |||
70 | Run command: | ||
71 | |||
72 | (% class="box infomessage" %) | ||
73 | ((( | ||
74 | dpkg -i draginofwd-*.deb | ||
75 | ))) | ||
76 | |||
77 | [[image:image-20220527154811-5.png]] | ||
78 | |||
79 | |||
80 | === Step 4. Test === | ||
81 | |||
82 | |||
83 | Check the dragino_fwd log: | ||
84 | |||
85 | (% class="box infomessage" %) | ||
86 | ((( | ||
87 | journalctl -u draginofwd -f | ||
88 | ))) | ||
89 | |||
90 | [[image:image-20220527165221-7.png||height="182" width="931"]] | ||
91 | |||
92 | Start/stop dragino_fwd via systemctl: | ||
93 | |||
94 | (% class="box infomessage" %) | ||
95 | ((( | ||
96 | systemctl start draginofwd | ||
97 | systemctl stop draginofwd | ||
98 | ))) | ||
99 | |||
100 | == How to clone Complete OS on the EMMC to SD card == | ||
101 | |||
102 | == How to flash SD card to eMMC == | ||
103 | |||
104 | |||
105 | Run command: | ||
106 | |||
107 | (% class="box infomessage" %) | ||
108 | ((( | ||
109 | nand-sata-install | ||
110 | ))) | ||
111 | |||
112 | [[image:image-20220602112051-1.png]] | ||
113 | |||
114 | |||
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 | |||
138 | |||
139 | |||
140 |