MYZR-IMX6-EK140 Linux-4.1.15 Test Manual

来自明远智睿的wiki
Admin讨论 | 贡献2018年7月24日 (二) 11:43的版本 (创建页面,内容为“<div> ='''Test Item'''= ------- ===Test description:=== :The login password of the development board is:root.<br> == '''Network port test''' == ===Test method===...”)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

Test Item


Test description:

The login password of the development board is:root.

Network port test

Test method

1)Connect the network cable, connect the board to the computer network interface with the network cable.
2)Set IP of cable network interface card for computer as 192.168.18.18

MY-IMX6-ek140 L41115 1.2.1.0 .jpg
3)Set up the evaluation board IP: ifconfig eth0 192.168.18.100
4)Execute test command:ping 192.168.18.18 -c 4
5)Test reuslt:“0% packet loss” represent passing of test
The following information will appear after passing the test:
Figures:

MY-IMX6-ek140 L41115 1.2.1.1.jpg

USB test

Test method

1)Insert the usb drive into the development board,system will output information like below.
MY-IMX6-ek140 L41115 1.3.1.0.jpg
2)Can identify the size of the usb disk, and the test is passed.

SD card test

Test method

1)Power off, insert SD card and power up
2)After entering the system, query with the command: dmesg | grep mmc0, and the following output will be:
MY-IMX6-140 L41115 1.4.1.0.jpg

RGB screen test

Test instruction

1)After the development board is booted into the system, there are several lines of text on the screen, as shown in the figure:
MY-IMX6-ek140 L41115 1.5.1.0.jpg
2)If the above display appears, the screen is normal

Serial port test

===Test instruction===
1)There are a total of 8 serial ports for the assessment board, where UART1 is used as a debugging serial port, UART 6, UART 7, and uart8 are used as LCDs, so there are 4 serial ports for testing.
2)The operating file corresponding to UART1 is / dev / ttymx0, uart2 corresponds to / dev / ttymxc1, and so on.
3)Take uart2 as an example, which is tested by spontaneous self-collection.

Test method

1)Short uart2_rxd and uart2_txd to see how it works, corresponding to the 11 and 12 legs of P7 respectively, short them.
2)Execute test command:/home/root/my-demo/linux-4.1.15/uart_test.out /dev/ttymxc1
3)Test results are shown below to indicate that the test passed
MY-IMX6-ek140-L41115 1.6.1.0.jpg
4)Other serial port tests are the same as the uart2 method.

SPI Test

Test instruction

1)There are 2 SPI channels in the evaluation board, and the corresponding device file of SPI1 is /dev/spidev0.0.The file for SPI2 is /dev/spidev1.0.
2)Taking SPI1 as an example

Test method

1)Shorten the 24 and 26 feet of P8.
2)Execute test command:/home/root/my-demo/linux-4.1.15/spidev_test.out -D /dev/spidev0.0
3)Test results are shown below to indicate that the test passed
MY-IMX6-ek140-L41115 1.7.2.0.jpg
Note: The SPI2 test method is the same as SPI1(ie, the same above).

CAN Test

Test instruction

There are two ways of CAN in the evaluation board, because the test of CAN requires the welding of CAN's transceiver chip. This assessment board does not have the welding of CAN's transceiver chip. If testing is needed, please refer to the test manual of MY-IMX6-EK140P.

Standard GPIO test

Test instruction:

1)Interface property

Evaluation board model CPU interface System device Signal name Interface position
MY-IMX6-EK140 SNVS_TAMPER2 gpio130 SNVS_TAMPER2 P8:32
SNVS_TAMPER3 gpio131 SNVS_TAMPER3 P8:34

2)GPIO serial number calculation method. For example, SN VS_TAMPER 2, look at the arch/arm/boot / dts/imx6ul-pinfunc. H file and you can see that it belongs to the second IO of GPIO Group 5, IO serial number =(GPIO Group -1) * 32 + IO. So SN VS _ TAMPER 2 =(5-1) * 32 +2 = 130.

Test method

1)Set the IO number of the GPIO to test:OUT_IO_NUMBER=130
2)Lead out GPIO:echo ${OUT_IO_NUMBER} > /sys/class/gpio/export
3)Set the GPIO direction:echo out > /sys/class/gpio/gpio130/direction。
4)Control output electrical level:echo 0 > /sys/class/gpio/gpio130/value

After executing the command, the 32 pin of P8 can be measured with multimeter as low level.
After executing the command, the 32 pin of P8 can be measured with multimeter as high level.
Other GPIO testing methods are similar to the above example.