Preface
Setting up environment tutorial: Hi3516DV300 development board-1. Environment setting up
The default environment for this tutorial: Win10+VMware+Ubuntu18.04
This article is only for programming using the network port under Windows, so you need a network cable and a serial cable to connect directly to the computer.
Do not ask why not use the serial port, serial port because I had a burning two hours did not succeed, and finally network ports minute and a half to burn successfully, as provided by the official VS code , for serialport too bad installed, decisively abandoned.
Baidu cloud expires, you can leave the mailbox to send which @@@@
Preparation for programming
1. Install USB to serial port driver
Link: USB-to-Serial Comm Port extraction code: r504
Unzip and install, then connect to the development board !!!
You can see the port number in the device management.
2. Download HiTools (unzip it)
Baidu cloud link: Hi_Tools extraction code: 9svv
3. Copy files to Windows
At this point, you should be able to compile it without a problem, and then enter the source directory:
cd ~/.Source_Code
Then the out/ipcamera_hi3516dv300
directory under OHOS_Image.bin
, rootfs.img
, userfs.img
copy the three files to Windows:
VMware:
- Create a new folder dedicated to sharing under Windows
- Right-click the virtual machine in Vmware, find it
选项—共享文件夹—总是启用
, then add the directory you just created, and confirm
- Go back to Ubuntu, and copy the file to Windows: (The path behind should be based on the actual one created under Windows)
cp OHOS_Image.bin rootfs.img userfs.img /mnt/hgfs/HarmonyOS/
Then go back to the folder you just created in Windows and you can see these three folders.
The rest of the process is operated under Windows, so don't be afraid, follow me step by step to set it up, it's not difficult.
Network port settings (important)
This step is very important, if there is any setting, it will cause you to fail to burn later! ! !
- Advanced computer to
控制面板——所有控制面板项——网络连接
see the following:
- Right-click the Ethernet to find the property , double-click
Internet 协议版本 4(TCP\IPv4)
:
- select
使用下面的IP地址 使用下面的DNS服务器地址
- Set as follows, confirm to exit
According to what I wrote above, these need to be kept in mind and used below.IP地址为:192.168.1.5 子网:255.255.255.0 默认网关:192.168.1.1
Burning operation
Open HiTools tool , and then you can see the following:
- Click in turn to
芯片—切换芯片—Hi3516DV300
set the model as Hi3516DV300
-
Configure the network port:
- Transmission method selection: network port (recommended)
- Find the just set in the server IP
IP:192.168.1.5
- The onboard configuration can follow my settings
-
Choose here
烧写eMMC
(As for why emmc is needed, dig a hole first and make up later) -
Click on the green and
+
add three items in the second step , and then find the three files copied from the virtual machine just now. According to my order, because there are onboardu-boot
, I don't select the first one, and then add the three files.
-
Start Address: because
uboot
at the beginning 1M address space accounted for, soOHOS_Image.bin
start address is 1M, then it's the case9M
, Freeze write, write according to the above. (The reasons are as follows: start address, length calculation (to be completed)) -
Just select the check mark in front of the three files.
Burn
Click to burn
Then restart the development board , you can press the switch button, it must be 15s to complete the operation.