Wiki source code of Armbian OS instruction
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
15.1 | 1 | **Table of Contents:** |
2 | |||
3 | {{toc/}} | ||
4 | |||
![]() |
1.1 | 5 | |
![]() |
48.2 | 6 | = 1. Overview = |
7 | |||
8 | |||
![]() |
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 | |||
![]() |
4.1 | 15 | |
![]() |
48.2 | 16 | |
17 | |||
18 | = 2. Development Guide = | ||
19 | |||
20 | |||
![]() |
11.1 | 21 | For advanced users to develop Driver/ Linux etc |
![]() |
4.1 | 22 | |
![]() |
25.1 | 23 | |
![]() |
48.2 | 24 | == 2.1 How to recompile LoRaWAN Concentrator Driver ( dragino-fwd package). == |
![]() |
4.1 | 25 | |
![]() |
11.1 | 26 | === Step 1. Clone dragino-fwd package === |
![]() |
4.1 | 27 | |
28 | |||
![]() |
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 | |||
![]() |
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 | |||
![]() |
17.1 | 47 | === Step 2. Compile dragino_fwd === |
![]() |
11.1 | 48 | |
![]() |
48.1 | 49 | |
![]() |
14.1 | 50 | After cloning is complete, Run the command starts compiling: |
![]() |
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 | |||
![]() |
25.1 | 66 | |
![]() |
11.1 | 67 | === Step 3. Install the dragino_fwd === |
68 | |||
![]() |
14.1 | 69 | |
![]() |
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 | |||
![]() |
16.1 | 80 | === Step 4. Test === |
![]() |
11.1 | 81 | |
![]() |
14.1 | 82 | |
![]() |
13.1 | 83 | Check the dragino_fwd log: |
![]() |
11.1 | 84 | |
85 | (% class="box infomessage" %) | ||
86 | ((( | ||
87 | journalctl -u draginofwd -f | ||
88 | ))) | ||
89 | |||
![]() |
13.1 | 90 | [[image:image-20220527165221-7.png||height="182" width="931"]] |
![]() |
11.1 | 91 | |
![]() |
13.1 | 92 | Start/stop dragino_fwd via systemctl: |
![]() |
11.1 | 93 | |
![]() |
13.1 | 94 | (% class="box infomessage" %) |
95 | ((( | ||
96 | systemctl start draginofwd | ||
97 | systemctl stop draginofwd | ||
98 | ))) | ||
99 | |||
![]() |
46.1 | 100 | == How to clone Complete OS on the EMMC to SD card == |
101 | |||
![]() |
27.1 | 102 | == How to flash SD card to eMMC == |
![]() |
13.1 | 103 | |
![]() |
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 | |||
![]() |
28.1 | 114 | |
![]() |
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 | |||
![]() |
28.1 | 138 | |
139 | |||
![]() |
1.1 | 140 |