Contents
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 Start Compiling .................................................................................................................... 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 ........................................................................................... 8
6.2.1 The build system and the image structure ........................................................................... 8
6.2.2 Build Uboot only ................................................................................................................. 8
6.2.3 Build Linux Kernel Only ..................................................................................................... 8
6.2.4 Build Recovery File System Only ....................................................................................... 8
6.2.5 Build File System Only ....................................................................................................... 8
6.2.6 Final Image Packaging ........................................................................................................ 8
7 More about system and hardware ............................................................................................................. 9
7.1 Test hardware components ............................................................................................................. 9
7.1.1 Test Wi-Fi as AP ................................................................................................................. 9
7.1.2 Test Wi-Fi as STA ............................................................................................................. 10
7.1.3 Test LTE ............................................................................................................................ 11
7.1.3 Test LED............................................................................................................................ 13
7.1.4 Test I2C ............................................................................................................................. 13
7.2 BLE ............................................................................................................................................... 13
7.3 LoRaWAN .................................................................................................................................... 13
7.4 System management configuration .............................................................................................. 15
8 Image Upgrade ........................................................................................................................................ 17
8.1 Upgrade Tool ................................................................................................................................ 17
8.2 Go into Upgrade Mode by ADB Switch ...................................................................................... 17
8.3 Go into Upgrade Mode by Serial .................................................................................................. 18
8.4 The Entire Package of Firmware "update-linux.img" Upgrade .................................................... 19
8.5 Upgrade the Firmware Separately ................................................................................................ 20
9. Read firmware image from gateway ...................................................................................................... 20