查看“MYZR-IMX6-EK140 Linux-4.1.15 测试手册”的源代码
←
MYZR-IMX6-EK140 Linux-4.1.15 测试手册
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
<div> ='''测试项目(Test Item)'''= ------- ===测试说明(test description):=== :开发板的登录密码是:root。 :<span style="background:#CCCCCC">The login password of the development board is:root.</span><br> == '''网口测试( test of network interface)''' == ===测试方法(test method)=== 1)连接网线,将板子和电脑的网口用网线相连。<br> 1)<span style="background:#CCCCCC">Connect the network cable, connect the board to the computer network interface with the network cable.</span><br> 2)设置计算机有线网卡IP为192.168.18.18<br> 2)<span style="background:#CCCCCC">Set IP of cable network interface card for computer as 192.168.18.18</span><br> <br> [[文件:MY-IMX6-ek140 L41115 1.2.1.0 .jpg|520px]]<br> 3) 设置评估板IP:ifconfig eth0 192.168.18.100<br> 3)<span style="background:#CCCCCC">Set up the evaluation board IP: ifconfig eth0 192.168.18.100</span><br> 4)执行测试命令:ping 192.168.18.18 -c 4<br> 4)<span style="background:#CCCCCC">execute test command:ping 192.168.18.18 -c 4 </span><br> 5)测试结果:“0% packet loss”表示测试通过<br> 5)<span style="background:#CCCCCC">test reuslt:“0% packet loss” represent passing of test</span><br> 测试通过会出现如下信息:<br> <span style="background:#CCCCCC">The following information will appear after passing the test:</span><br> 附图(figures):<br> <br> [[文件:MY-IMX6-ek140 L41115_1.2.1.1.jpg|642px]] == '''USB测试(USB test)''' == ===测试方法(test method)=== 1)将U盘插入开发板,系统会输出类似如下信息:<br> 1)<span style="background:#CCCCCC">Insert the usb drive into the development board,system will output information like below.</span><br> [[文件:MY-IMX6-ek140 L41115_1.3.1.0.jpg|642px]] <br> 2)能识别U盘的大小,则测试通过。<br> 2)<span style="background:#CCCCCC"> can identify the size of the usb disk, and the test is passed.</span><br> == '''SD卡测试(SD card test)''' == ===测试方法(test method)=== 1)断电,插入SD卡,上电。<br> 1)<span style="background:#CCCCCC">power off, insert SD card and power up</span><br> 2)进入系统后,用命令:dmesg | grep mmc0 查询,会有以下输出:<br> 2)<span style="background:#CCCCCC">after entering the system, query with the command: dmesg | grep mmc0, and the following output will be: </span><br> [[文件:MY-IMX6-140_L41115_1.4.1.0.jpg|840px]] == '''RGB屏测试(RGB screen test)''' == ===测试说明(test instruction)=== 1)开发板开机进入系统后,屏幕上有几行文字,如图:<br> 1)<span style="background:#CCCCCC">After the development board is booted into the system, there are several lines of text on the screen, as shown in the figure:</span><br> [[文件:MY-IMX6-ek140 L41115_1.5.1.0.jpg|642px]]<br> 2)出现以上显示则说明屏幕正常<br> 2)<span style="background:#CCCCCC">If the above display appears, the screen is normal</span><br> == '''串口测试( serial port test)''' == ===测试说明(test instruction):===<br> 1)评估板总共有8路串口,其中uart1用作调试串口,uart6,uart7,uart8用作LCD,所以有4路串口可供测试使用。<br> 1)<span style="background:#CCCCCC">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.</span><br> 2)uart1对应的操作文件是/dev/ttymxc0,uart2对应的是/dev/ttymxc1,以此类推。<br> 2)<span style="background:#CCCCCC">The operating file corresponding to UART1 is / dev / ttymx0, uart2 corresponds to / dev / ttymxc1, and so on.</span><br> 3)以uart2为例,通过自发自收的方式来测试。<br> 3)<span style="background:#CCCCCC">Take uart2 as an example, which is tested by spontaneous self-collection.</span><br> ===测试方法(test method) === 1)将uart2_rxd和uart2_txd短接,查看原理,分别对应P7的11和12脚,将他们短接。<br> 1)<span style="background:#CCCCCC">Short uart2_rxd and uart2_txd to see how it works, corresponding to the 11 and 12 legs of P7 respectively, short them.</span><br> 2)执行测试命令:/home/root/my-demo/linux-4.1.15/uart_test.out /dev/ttymxc1<br> 2)<span style="background:#CCCCCC">execute test command:/home/root/my-demo/linux-4.1.15/uart_test.out /dev/ttymxc1</span><br> 3)测试结果如下显示则表示测试通过<br> 3)<span style="background:#CCCCCC">Test results are shown below to indicate that the test passed</span><br> [[文件:MY-IMX6-ek140-L41115_1.6.1.0.jpg|840px]]<br> 4)其他串口测试和uart2的方法一样。<br> 4)<span style="background:#CCCCCC">Other serial port tests are the same as the uart2 method.</span><br> == '''SPI测试''' == ===测试说明(test instruction):=== 1)评估板一共有2路SPI,SPI1对应的设备文件是/dev/spidev0.0;SPI2对应的文件是/dev/spidev1.0。<br> 1)<span style="background:#CCCCCC">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.</span><br> 2)以SPI1为测试例子<br> 2)<span style="background:#CCCCCC">Taking SPI1 as an example</span><br> ===测试方法(test method)=== 1)将P8的24和26脚短接。<br> 1)<span style="background:#CCCCCC">Shorten the 24 and 26 feet of P8.</span><br> 2)执行测试命令:/home/root/my-demo/linux-4.1.15/spidev_test.out -D /dev/spidev0.0<br> 2)<span style="background:#CCCCCC">execute test command:/home/root/my-demo/linux-4.1.15/spidev_test.out -D /dev/spidev0.0</span><br> 3)测试结果如下显示则表示测试通过<br> 3)<span style="background:#CCCCCC">Test results are shown below to indicate that the test passed</span><br> [[文件:MY-IMX6-ek140-L41115_1.7.2.0.jpg|520px]]<br> 说明:SPI2测试方法同SPI1(即同上)。<br> <span style="background:#CCCCCC">Note: The SPI2 test method is the same as SPI1(ie, the same above).</span><br> == '''CAN测试''' == ===测试说明(test instruction):=== 评估板有2路CAN,因为CAN的测试需要焊接CAN的收发芯片,此评估板没有焊接CAN的收发芯片,若需要测试可以参照[[MY-IMX6-EK140P_L4115_测试手册|MY-IMX6-EK140P Linux-4.1.15 测试手册]]<br> <span style="background:#CCCCCC">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.</span><br> == '''标准GPIO测试(standard GPIO test)''' == ===测试说明(test instruction):=== 1)接口属性(interface property)<br> {| class="wikitable" |评估板型号 (evaluation board model) |CPU接口 (CPU interface) | 系统设备 (system device) |信号名称 (name of signal) |接口位置 (interface position) |- |rowspan=2|MY-IMX6-EK140 |SNVS_TAMPER2 |gpio130 |SNVS_TAMPER2 |P8:32 |- |SNVS_TAMPER3 |gpio131 |SNVS_TAMPER3 |P8:34 |} 2)GPIO序号的计算方法。例如SNVS_TAMPER2,查看arch/arm/boot/dts/imx6ul-pinfunc.h文件,可以看到它属于GPIO组5的第2个IO,IO序号 = (GPIO组-1)*32 + IO 。所以SNVS_TAMPER2 = (5-1)*32 + 2 = 130。 2)<span style="background:#CCCCCC">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.</span><br> ===测试方法(test method)=== 1)设置需要测试的GPIO的IO序号:OUT_IO_NUMBER=130。<br> 1)<span style="background:#CCCCCC">Set the IO number of the GPIO to test:OUT_IO_NUMBER=130</span><br> 2)导出GPIO:echo ${OUT_IO_NUMBER} > /sys/class/gpio/export<br> 2)<span style="background:#CCCCCC">lead out GPIO:echo ${OUT_IO_NUMBER} > /sys/class/gpio/export</span><br> 3)设置GPIO方向:echo out > /sys/class/gpio/gpio130/direction。<br> 3)<span style="background:#CCCCCC">Set the GPIO direction:echo out > /sys/class/gpio/gpio130/direction。</span><br> 4)控制输出电平:echo 0 > /sys/class/gpio/gpio130/value。<br> 4)<span style="background:#CCCCCC">control output electrical level:echo 0 > /sys/class/gpio/gpio130/value。</span><br> :执行命令后可用万用表测P8的32脚为低电平。<br> :<span style="background:#CCCCCC">After executing the command, the 32 pin of P8 can be measured with multimeter as low level.</span><br> :执行命令后可用万用表测P8的32脚为高电平。<br> :<span style="background:#CCCCCC">After executing the command, the 32 pin of P8 can be measured with multimeter as high level.</span><br> :其他GPIO的测试方法同上例子。<br> :<span style="background:#CCCCCC">Other GPIO testing methods are similar to the above example.</span><br> </div>
返回至
MYZR-IMX6-EK140 Linux-4.1.15 测试手册
。
导航菜单
个人工具
登录
命名空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
[-_-]
NXP平台:
MYZR-IMX6-EK200
MYZR-IMX6-EK200(EN)
MYZR-IMX6-EK314
MYZR-IMX6-EK314(EN)
MYZR-IMX6-EK336
MYZR-IMX6-EK336(EN)
MYZR-IMX6-EK140
MYZR-IMX6-EK140(EN)
MYZR-IMX6-EK140P
MYZR-IMX6-EK140P(EN)
MYZR-IMX8M-EK300
MYZR-IMX8M-EK300(EN)
MYZR-IMX8M-EVK
MYZR-IMX8Mmini-EK240
MYZR-IMX8Mmini-EK240(EN)
MYZR-IMX28-EK142
MYZR-IMX28-EK142(EN)
MYZR-LS1012A-EK200
MYZR-LS1012A-EK200(EN)
Rockchip平台:
MYZR-RK3288-EK314
MYZR-RK3288-EK314(EN)
MYZR-RK3399-EK314
MYZR-RK3399-EK314(EN)
Allwinner平台:
MYZR-R16-EK166
MYZR-R16-EK166(EN)
Microchip平台:
MYZR-SAMA5-EK200
MYZR-SAMA5-EK200(EN)
网关产品:
GW200
GW300
GW310/GW311
ST平台:
MYZR-STM32-EK152
所有页面
工具
链入页面
相关更改
特殊页面
页面信息