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