Setting Up the Environment
Environment Requirements
Hardware
- Hi3516D V300 IoT camera development board
- USB-to-serial cable and network cable (The Windows workstation is connected to the Hi3516D V300 development board through the USB-to-serial cable and network cable.)
The following figure shows the hardware connections.
Software
NOTICE: This section describes how to use an installation package to set up the compilation and development environment. If you are going to use Docker to set up the environment, skip this section and Installing Linux Build Tools.
The following table describes the tools required for setting up the general environment for a Linux server of the Hi3516 development board and how to obtain these tools.
Table 1 Development tools and obtaining methods
Basic software package for compilation and building (required only for Ubuntu 20+) |
Provides a basic software package for compilation and building. |
|
Installing Linux Build Tools
NOTICE:
- If you acquire the source code using an HPM component or HPM CLI tool, you do not need to install hc-gen.
- (Recommended) If you obtain the source code via the mirror site or code repository, install hc-gen. When installing the compilation tool, ensure that its environment variable path is unique.
Changing Linux Shell to Bash
Check whether bash is used as the shell.
ls -l /bin/sh
If /bin/sh -> bash is not displayed, do as follows to change shell to bash.
Method 1: Run the following command on the device and then click No.
sudo dpkg-reconfigure dash
Method 2: Run the first command to delete sh and then run the second command to create a new soft link.
sudo rm -rf /bin/sh
sudo ln -s /bin/bash /bin/sh
Installing Basic Software Used for Compilation and Building (Required Only for Ubuntu 20+)
Install the software.
sudo apt-get install build-essential gcc g++ make zlib* libffi-dev
Installing File Packing Tools and JVM
-
Start a Linux server.
-
Install the dosfstools, mtools, mtd-utils, Java Runtime Environment (JRE), and Java SDK.
sudo apt-get install dosfstools mtools mtd-utils default-jre default-jdk