MYZR-IMX6-EK140 Linux-4.1.15 Test Manual
目录
[隐藏]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
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:
USB test
Test method
1)Insert the usb drive into the development board,system will output information like below.
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:
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:
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
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
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.