1 Star 0 Fork 5K

seashell / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
setting-up-the-environment-1.md 6.78 KB
一键复制 编辑 原始数据 按行查看 历史
mamingshuai 提交于 2021-06-02 01:00 . update OpenHarmony 2.0 Canary

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.

Figure 1 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

Development Tool

Description

How to Obtain

bash

Processes CLI commands.

System configuration

Basic software package for compilation and building (required only for Ubuntu 20+)

Provides a basic software package for compilation and building.

Internet

dosfstools, mtools, and mtd-utils

Pack files.

apt-get install

Java virtual machine (JVM)

Compiles, debugs, and runs Java programs.

apt-get install

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 compilation tools like LLVM and hc-gen.
  • (Recommended) If you obtain the source code through an image site or a code repository, you should 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 && sudo apt-get install gcc && sudo apt-get install g++ && sudo apt-get install make && sudo apt-get install zlib* && sudo apt-get install libffi-dev

Installing a File Packing Tool

  1. Start a Linux server.

  2. Install dosfstools.

    sudo apt-get install dosfstools
  3. Install mtools.

    sudo apt-get install mtools
  4. Install mtd-utils.

    sudo apt-get install mtd-utils

Installing the JVM

  1. Start a Linux server.

  2. Install the Java Runtime Environment (JRE).

    sudo apt-get install default-jre
  3. Install the Java Development Kit (JDK).

    sudo apt-get install default-jdk
1
https://gitee.com/luquick/docs.git
git@gitee.com:luquick/docs.git
luquick
docs
docs
master

搜索帮助