1 Develop board connection methods
The connection method of computer and development board, a total of serial port connection, network port connection, remote connection three kinds. The connection method of X3J3 and J5 is similar. Here, the J5EVM development board is taken as an example, and the MobaXterm software is used to introduce it. 1.1 Serial port connection First, you need to prepare a micro-USB cable to support data transfer. If you are using a Windows computer, you also need to install the USB driver provided by the OE package (located in bsp/tools/Windows_USB_Driver). After the driver is installed, connect the micro-USB head of the cable to the development board, and connect the USB head to the computer. At this time, the device manager will add 4 COM interface information, as shown in the following figure:
First of all, make sure that the baud rate set by the development board is the same as that set by the computer port. The J5 development board supports two baud rates, 921600bps and 115200bps, which can be configured using the DIP switch on the EVM development board. For details, see the EVM development Board manual. The default baud rate is 921600bps, so you need to set the baud rate of these COMs to 921600 in the port properties as well. Typically, it’s the second-to-last COM, COM5 in this figure, that really matters. Then open MobaXterm and follow the steps below to establish the connection between the development board and the computer through the serial port.
Enter hrut_ipfull g to view the IP address, subnet mask, and default gateway of the development board.
root@j5dvb:~# hrut_ipfull g
ip=10.64.61.57
mask=255.255.252.0
gw=10.64.61.1
In terms of serial connection of XJ3, because the serial cable used by the XJ3 development board is different from that of J5, users can refer to the firmware upgrade manual in the XJ3 chip development manual for configuration.
1.2 Network Port connection
First, you need to know the IP address of the development board. If you are not sure, read the Serial Port connection section to learn how to obtain the IP address. After connecting the network cable to the development board and the computer, modify the IPV4 attributes of the computer Ethernet according to the IP address of the development board. The requirements are as follows: IP address: The first three segments are the same as the IP of the development board, and the last segment is different; Subnet mask: the same as the development board; Default gateway: The first three segments are the same as the IP address of the development board, but the last segment is different.
Then open the MobaXterm software and follow the following steps to establish a connection in SSH mode. Enter the IP address of the development board for Remote host, Specify username, tick and enter root, and set Port to 22 by default.
1.3 Remote connection After the development board is connected to the router via a network cable, a remote connection can be established using the MobaXterm software on the computer using SSH. Enter the IP address of the development board for Remote host, Specify username, tick and enter root, and set Port to 22 by default.
At this point, the three ways to establish a connection between the computer and the development board have been introduced.
2 Tool chain plate end tool installation
X3J3 is identical to J5’s on-board toolchain tools, including two executables, hrt_bin_dump and hrt_model_exec. hrt_bin_dump is a dump tool for the PTQ debug model, which is used to save the layer-by-layer output inside the BPU subgraph as binary files. hrt_model_exec is a model testing tool that can obtain model information and evaluate inference performance directly on the development board. These two on-board tools are not included in the system image, and users can run the installation script in the OE package on the development machine to copy it to the development board:
cd ddk/package/board
bash install.sh ${board_ip}
Replace the ${board_ip} in the code with the ip address of your development board, and make sure that the development machine can ping the development board before running. After the installation script is finished, restart the development board, connect the development machine to the development board in MobaXterm, and then execute the following command:
hrt_bin_dump --help
hrt_model_exec --help
If the help information is displayed, the board tools of the toolchain are successfully installed on the development board. In addition, you can copy the hrt_model_exec and hrt_bin_dump tools directly to any writable directory on the development board, and use the chmod 777 command to give permission to directly invoke the tools in the directory. For example, if hrt_model_exec and hrt_bin_dump are stored in the /userdata/hrt directory on the development board, you can run the following command to verify:
cd /userdata/hrt
chmod 777 ./hrt_bin_dump
chmod 777 ./hrt_model_exec
./hrt_bin_dump --help
./hrt_model_exec --help
If the help information is displayed, the board tool can be used normally.
3 Common commands of the development board
Here are some of the more commonly used commands on the development board for your reference. View the IP address, subnet mask, and gateway
hrut_ipfull g
ip=10.64.61.55
mask=10.64.60.1
gw=255.255.252.0
Change the IP address, subnet mask, and gateway
hrut_ipfull s eth0 10.64.61.57 255.255.255.0 10.64.61.1 hrut_ipfull s eth1 10.64.61.57 255.255.255.0 10.64.61.1
Restore the IP address, subnet mask, and gateway to the default values hrut_ipfull c
View chip temperature, CPU frequency, BPU frequency, and BPU usage hrut_somstatus
=====================1=====================
temperature-->
ddr_cv_cam-thermal : 38.2 (C)
soc-thermal : 37.3 (C)
bpu0_r-thermal : 36.4 (C)
ddr0_sram : 37.4 (C)
bpu0_b_top : 36.2 (C)
bpu0_video : 36.7 (C)
ddr0_video : 37.1 (C)
peri : 37.0 (C)
bpu1_cpu-thermal : 36.8 (C)
bpu1_sram : 37.2 (C)
bpu1_top : 35.9 (C)
bpu1_left : 36.4 (C)
bpu0_cam_cv : 36.9 (C)
ddr1_cam : 37.9 (C)
cpu-thermal : 37.0 (C)
cpu_t-thermal : 36.4 (C)
cpu frequency-->
min cur max
cpu0: 456000 1200000 1200000
cpu1: 456000 1200000 1200000
cpu2: 456000 1200000 1200000
cpu3: 456000 1200000 1200000
cpu4: 456000 1200000 1200000
cpu5: 456000 1200000 1200000
cpu6: 456000 1200000 1200000
cpu7: 456000 1200000 1200000
bpu status information---->
min cur max ratio
bpu0: 200000000 1200000000 1200000000 0
bpu1: 200000000 1200000000 1200000000 0
View only the BPU usage hrut_bpuprofile -b 2 -r 0 -b indicates the BPU to be queried. 0 indicates the BPU0, 1 indicates the BPU1, and 2 indicates the BPU2. -r indicates how many times the system checks the display. The system refreshes the display once every second. If the value is set to 0, the system checks the display all the time.
BPU RATIO FREE QUEUE
0 0% 1024
1 0% 1024
View the system software version cat /etc/version
LNX5.10_REL_PL3.0_20221128-161022 release