Hi3516DV300 development board-2.uboot, kernel, fs file system programming

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_hi3516dv300directory under OHOS_Image.bin, rootfs.img, userfs.imgcopy the three files to Windows:

VMware:

  1. Create a new folder dedicated to sharing under Windows
  2. Right-click the virtual machine in Vmware, find it 选项—共享文件夹—总是启用, then add the directory you just created, and confirm
    vm
  3. 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! ! !

  1. Advanced computer to 控制面板——所有控制面板项——网络连接see the following:
    Internet connection
  2. Right-click the Ethernet to find the property , double-click Internet 协议版本 4(TCP\IPv4):
    TCP/IPv4
  3. select 使用下面的IP地址 使用下面的DNS服务器地址
    IP settings
  4. Set as follows, confirm to exit
    IP地址为:192.168.1.5
    子网:255.255.255.0
    默认网关:192.168.1.1
    
    According to what I wrote above, these need to be kept in mind and used below.

Burning operation

Open HiTools tool , and then you can see the following:
HiTools

  1. Click in turn to 芯片—切换芯片—Hi3516DV300set the model as Hi3516DV300
    Setting up the chip

  1. Configure the network port:

    1. Transmission method selection: network port (recommended)
    2. Find the just set in the server IP IP:192.168.1.5
    3. The onboard configuration can follow my settings
      Configuration
  2. Choose here 烧写eMMC(As for why emmc is needed, dig a hole first and make up later

  3. 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 onboard u-boot, I don't select the first one, and then add the three files.
    Burn

  4. Start Address: because ubootat the beginning 1M address space accounted for, so OHOS_Image.binstart address is 1M, then it's the case 9M, Freeze write, write according to the above. (The reasons are as follows: start address, length calculation (to be completed)

  5. Just select the check mark in front of the three files.

Burn

Click to burn

Burn
Then restart the development board , you can press the switch button, it must be 15s to complete the operation.
Reboot

Burning:

Burning

Successful burning:

Burning is complete

From electronic enthusiast

Guess you like

Origin blog.csdn.net/qq_30722795/article/details/109291349