laitimes

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

This article will be divided into several parts, detailed sharing of embedded beginners to get the development board, some of the basic tests that need to be done, such as system startup, file transfer, LED, buttons, clock settings, DDR read and write, SATA and other interface read and write, serial port and other tests, interested can be consulted according to the number of articles, start sharing.

Preface

This guidance document applies to development environments:

Windows development environment: Windows 7 64bit, Windows 10 64bit

Linux development environment: Ubuntu18.04.4 64bit

Virtual machine: VMware 15.1.0

Before proceeding with this document, please follow the debugging tool installation, Linux development environment construction related documents, and install SecureCRT serial port debugging terminal, VMware virtual machine and other related software.

This document primarily provides a hardware resource test methodology for the evaluation board. Without special instructions, the default use of USB TO UART0 as a debugging serial port, the use of Linux system boot card (Micro SD mode) to start the system, through the router to connect to the PC network.

The device node corresponding to the Linux system startup card is mmcblk1, and the device node corresponding to eMMMC is mmcblk0.

Evaluation board for quick testing

The test board is based on Chuanglong Technology TLT3-EVM is a 4-core ARM Cortex-A7 high-performance and low-power domestic evaluation board based on quanzhi technology T3 processor design, with a frequency of up to 1.2GHz per core.

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

The EV kit interface is rich in resources, which leads to dual network ports, dual CAN, dual USB, dual RS485 and other communication interfaces, on-board Bluetooth, WIFI, 4G (optional) modules, and MIPI LCD, LVDS LCD, TFT LCD, CVBS OUT, CAMERA, LINE IN, H/P OUT and other audio and video multimedia interfaces, supporting dual-screen display, 1080P@45fps H.264 video hardware codec and support SATA mass storage interface.

System boot test

Plug in a power source and use the Micro USB cable to connect the USB TO UART0 debug serial port of the PC and evaluation board. Open Device Manager and confirm the COM port number corresponding to the USB TO UART0 debug serial port of the EV kit.

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 1

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 2

Open the serial port debugging terminal SecureCRT, select the corresponding COM port number, and set the baud rate to 115200, 8N1, no check digit. Establish a serial port connection, as shown in the following figure.

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 3

Insert the Linux system boot card into the evaluation board Micro SD card slot, and dial the dip switch to 0 according to the evaluation baseplate silk screen, and this gear will take precedence to boot the system from the Linux system boot card. Power-on on the EV kit, the system will automatically log in to the root user, and the serial terminal will print the boot information similar to the following.

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 4

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 5

The changes in the core board LEDs during system startup are described below:

After the EV kit is powered on, the power indicator LED0 is lit; Then the first stage of U-Boot starts, and LED1 is lit; Immediately after the second phase of U-Boot starts, LED2 is lit; Until the kernel boots up, LED2 turns off and LED1 blinks heartbeat; When the eMMC is reading and writing, LED2 blinks.

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 6

File transfer test

Common ways to transfer files between the PC and the EV kit are as follows:

  1. Copy through linux system boot card, USB stick and other storage media.
  2. Copy via NFS, TFTP, OpenSSH and other network methods.

Boot the card through the Linux system

The supporting system boot card is inserted into the PC through the card reader to mount to the virtual machine Ubuntu system, as shown in the following figure, query the system boot card device node, where "/dev/sdb7" is the Linux system boot card file system partition, the specific name shall prevail.

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 7

Run the following command to mount the "/dev/sdb7" device node to the "/mnt/" directory.

Host# sudo mount /dev/sdb7 /mnt

Host# ls /mnt/

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 8

Run the following command to create a new file test0 in Ubuntu and copy the test0 file to the root directory of the eviction board file system.

Host# touch test0

Host# sudo cp test0 /mnt/root/

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 9

After the file copy is complete, perform the following command to uninstall the device, and unplug the card reader to remove the Linux system boot card from it.

Target# sudo umount /dev/sdb7

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 10

Insert the Linux system boot card into the evaluation board Micro SD card slot, and the evaluation board can be powered on to view the files in the root directory.

Target# ls

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 11

Via OpenSSH

OpenSSH is a free and open source implementation of the SSH (Secure Shell) protocol. The SSH protocol family can be used for remote control or to transfer files between computers, and the EV kit file system supports SSH libraries by default.

Run the following command in Ubuntu to check whether OpenSSH is installed.

Host# ssh -v

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 12

You can see that the system has its own OpenSSH. If it is not installed, please install OpenSSH correctly by yourself.

Connect the EV kit's RGMII ETH ethernet port to the router via a network cable. Execute the following command on the EV kit to automatically obtain the IP, as shown in the following figure. "-i" is used to specify the network card, eth0 is the name of the network card, please modify it according to the actual situation.

Target# udhcpc -i eth0

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 13

Run the following command to query the IP address: The IP address queried this time is 192.168.0.87.

Target# ifconfig

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 14

Use OpenSSH to transfer files from the PC to the eviction board

Run the following command to create a new file test1 in Ubuntu, and use the OpenSSH command to copy the test1 file to the root directory of the EV kit file system.

Host# touch test1 // New file

Host# scp test1 [email protected]:/

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 15

If the prompt "Are you sure you want to continue connecting (yes/no)?" appears, enter yes.

Execute the following command on the EV kit to see the files copied from the PC, as shown in the following figure.

Target# ls /

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 16

Use OpenSSH to transfer files from the evaluation board to the PC

Run the following command to create a new test file test2 in the root directory of the EV kit file system:

Target# cd /

Target# touch test2 //New file

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 17

Execute the following OpenSSH command on Ubuntu to copy the evaluation board test file test2 to the "/home/tronlong/" directory on the PC. If you are transferring folders, add the parameter "-r" after scp.

Host# sudo scp [email protected]:/test2 /home/tronlong/

Host# ls

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 18

Log in to the EV kit file system using OpenSSH

Execute the following command on Ubuntu to log in to the EV kit file system via OpenSSH.

Host# sudo ssh [email protected]

"Embedded Essential Learning" Based on Quanzhi T3 Platform Development Board Evaluation Manual - System Testing(1)

Figure 19

To log out, execute the exit or logout command.