杭州软库科技有限公司
Hangzhou Roombanker Technology Co., Ltd.
杭州市大关路 189 号万通中心A 幢
8
楼
,310004
Floor 8, building A, Wantong center,
Hangzhou 310004, china
www.dusunlock.com
Website: www.dusuniot.com
Content
1.
Introduction ................................................................................................................................................................................................... 3
2.
Gateway Information ................................................................................................................................................................................ 3
2.1 Basic information .............................................................................................................................................................................. 3
2.2 Interface ............................................................................................................................................................................................... 3
3.
Target Setup .................................................................................................................................................................................................. 4
4.
Compile the Environment to Build ...................................................................................................................................................... 5
4.1 Virtual Machine ................................................................................................................................................................................. 5
4.2 Ubuntu PC Compile the Environment to Build ...................................................................................................................... 5
5.
SDK Acquisition and Preparation ........................................................................................................................................................ 5
5.1 Download the source code from the Dusun FTP .................................................................................................................. 5
5.2 Code Compression Package Check ............................................................................................................................................ 5
5.3 The Source Compression Package is Unzipped ..................................................................................................................... 5
6. Code Compilation ....................................................................................................................................................................................... 6
6.1 Getting started, global Compilation .......................................................................................................................................... 6
6.1.1 Initialize Compilation Environment Variables (select file system) ............................................................................... 6
6.1.2 Prepare the Root File System base ......................................................................................................................................... 6
6.1.3 Run The Image on the board .................................................................................................................................................... 7
6.2 Compiled Each Image Part Separately ...................................................................................................................................... 7
6.2.1 The build system and the image structure .......................................................................................................................... 7
6.2.2 Build Uboot only ............................................................................................................................................................................ 8
6.2.3 Build Linux Kernel Only ............................................................................................................................................................... 8
6.2.4 Build Recovery File System Only .............................................................................................................................................. 8
7. More about buildroot system ............................................................................................................................................................... 9
7.1 Test hardware components .......................................................................................................................................................... 9
7.1.1 Test Wi-Fi as AP ............................................................................................................................................................................. 9
7.1.2 Test I2C ...........................................................................................................................................................................................10
8. Wireless development (Zigbee, Z-Wave, BLE, LoRaWAN) .....................................................................................................10
8.1 BLE ........................................................................................................................................................................................................10
8.2 LoRaWAN ..........................................................................................................................................................................................11
8.3 GPS .......................................................................................................................................................................................................11
9. Image Upgrade ..........................................................................................................................................................................................12
9.1 Upgrade Tool ...................................................................................................................................................................................12
9.2 Go into Upgrade Mode ................................................................................................................................................................12
9.3 The Entire Package of Firmware "update.img" Upgrade ..................................................................................................13
9.4 Upgrade the Firmware Separately ............................................................................................................................................13