Wiki source code of Armbian OS instruction

Version 25.1 by Kilight Cao on 2022/06/02 11:22

Hide last authors
Kilight Cao 15.1 1 **Table of Contents:**
2
3 {{toc/}}
4
Edwin Chen 1.1 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
Edwin Chen 4.1 13 = Development Guide =
14
Kilight Cao 11.1 15 For advanced users to develop Driver/ Linux etc
Edwin Chen 4.1 16
Kilight Cao 25.1 17
18 = Advance =
19
20 == SSH Access for Linux console ==
21
22 Connect the HP0C Ethernet port to your router and HP0C will obtain an IP address from your router. In the router’s management portal, you should be able to find what IP address the router has assigned to the HP0C. You can use this IP to connect the SSH access of HP0C.
23
24 IP address:  IP address of HP0C
25
26 Port:         22
27
28 User Name:      **root**
29
30 Password:  **draginohp** (default)
31
32 After logging in, you will be in the Linux console and can enter commands as shown below.
33
34
35 == How to burn from SD card to eMMC ==
36
37 [[image:image-20220602112051-1.png]]
38
39 [[image:image-20220602112058-2.png||height="292" width="646"]]
40
41 [[image:image-20220602112106-3.png||height="301" width="643"]]
42
43 [[image:image-20220602112113-4.png||height="271" width="642"]]
44
45 [[image:image-20220602112119-5.png||height="309" width="641"]]
46
47 [[image:image-20220602112125-6.png||height="281" width="640"]]
48
49 [[image:image-20220602112131-7.png||height="241" width="638"]]
50
Edwin Chen 4.1 51 == How to recompile LoRaWAN Concentrator Driver ( dragino-fwd package). ==
52
Kilight Cao 11.1 53 === Step 1. Clone dragino-fwd package ===
Edwin Chen 4.1 54
55
Kilight Cao 11.1 56 Run command clone dragino-fwd package:
57
58 (% class="box infomessage" %)
59 (((
60 git clone https:~/~/github.com/dragino/dragino_fwd_src.git
61 )))
62
63 [[image:image-20220527151010-1.png]]
64
65
Kilight Cao 17.1 66 === Step 2. Compile dragino_fwd ===
Kilight Cao 11.1 67
68
Kilight Cao 14.1 69 After cloning is complete, Run the command starts compiling:
Kilight Cao 11.1 70
71 (% class="box infomessage" %)
72 (((
73 Compile HP0D/rasspberrypi fwd:  ./hp0z-make-deb.sh d
74 Compile HP0C/HP0A fwd:  ./hp0z-make-deb.sh c
75 )))
76
77 The following example compilers HP0C fwd.
78
79 [[image:image-20220527153913-3.png]]
80
81
82 **When the compilation is complete a draginofwd-*.deb package is generated.**
83
84 [[image:image-20220527154311-4.png||height="385" width="773"]]
85
Kilight Cao 25.1 86
Kilight Cao 11.1 87 === Step 3. Install the dragino_fwd ===
88
Kilight Cao 14.1 89
Kilight Cao 11.1 90 Run command:
91
92 (% class="box infomessage" %)
93 (((
94 dpkg -i draginofwd-*.deb
95 )))
96
97 [[image:image-20220527154811-5.png]]
98
99
Edwin Chen 16.1 100 === Step 4. Test ===
Kilight Cao 11.1 101
Kilight Cao 14.1 102
Kilight Cao 13.1 103 Check the dragino_fwd log:
Kilight Cao 11.1 104
105 (% class="box infomessage" %)
106 (((
107 journalctl -u draginofwd -f
108 )))
109
Kilight Cao 13.1 110 [[image:image-20220527165221-7.png||height="182" width="931"]]
Kilight Cao 11.1 111
Kilight Cao 13.1 112 Start/stop dragino_fwd via systemctl:
Kilight Cao 11.1 113
Kilight Cao 13.1 114 (% class="box infomessage" %)
115 (((
116 systemctl start draginofwd
117 systemctl stop draginofwd
118 )))
119
120
Edwin Chen 1.1 121