查看: 1843|回复: 0

MY-IMX6-EK200 Linux-4.1.15 测试手册(2)

[复制链接]
  • TA的每日心情
    无聊
    2016-8-19 09:36
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]初来乍到

    发表于 2019-1-21 11:07:10 | 显示全部楼层 |阅读模式
    分享到:
    【接上一章节明远智睿MY-IMX6-EK200 Linux-4.1.15 测试手册(1)】

    8.2  UART3
    位置:J1:11,13
    设备:/dev/ttymxc2
    测试指令
    # /my-demo/linux-4.1.15/MY_SERIAL_TEST_L4115_MYIMX6A9.out /dev/ttymxc2"www.myzr.com.cn"  

    Welcome to TTYtest  

    Send test data
    read char is w   
    read char is w   
    read char is w   
    read char is .   
    read char is m   
    read char is y   
    read char is z   
    read char is r   
    read char is .   
    read char is c   
    read char is o   
    read char is m   
    read char is .   
    read char is c   
    read char is n   
    Read Test Data finished,Read Test Data is

    8.3  UART4
    位置:J1:15,17
    设备:/dev/ttymxc3
    测试指令
    # /my-demo/linux-4.1.15/MY_SERIAL_TEST_L4115_MYIMX6A9.out /dev/ttymxc3 "www.myzr.com.cn"  

    Welcome to TTYtest  

    Send test data
    read char is w   
    read char is w   
    read char is w   
    read char is .   
    read char is m   
    read char is y   
    read char is z   
    read char is r   
    read char is .   
    read char is c   
    read char is o   
    read char is m   
    read char is .   
    read char is c   
    read char is n   
    Read Test Data finished,Read Test Data is

    8.4  UART5
    位置:J1:16,18
    设备:/dev/ttymxc4
    测试指令
    # /my-demo/linux-4.1.15/MY_SERIAL_TEST_L4115_MYIMX6A9.out /dev/ttymxc4 "www.myzr.com.cn"  

    Welcome to TTYtest  

    Send test data
    read char is w   
    read char is w   
    read char is w   
    read char is .   
    read char is m   
    read char is y   
    read char is z   
    read char is r   
    read char is .   
    read char is c   
    read char is o   
    read char is m   
    read char is .   
    read char is c   
    read char is n   
    Read Test Data finished,Read Test Data is

    9  CAN 测试
    测试准备
    CAN1的CAN_L与CAN2的CAN_L连接;将CAN1的CAN_H与CAN2的CAN_H连接。
    配置 CAN1 (can0)
    # ip link set can0 up type can bitrate 125000
    配置 CAN2 (can1)
    # ip link set can1 up type can bitrate 125000
    CAN1 (can0) 后台接收
    # candump can0 &
    CAN2 (can1) 发送数据
    # cansend can1 1F334455#1122334455667788

    10  SPI测试10.1  ECSPI1 测试
    位置:J7:7,9
    测试设备:/dev/spidev0.1
    测试指令
    # /my-demo/linux-4.1.15/MY_SPIDEV_TEST_L4115_MYIMX6A9.out -D /dev/spidev0.0   

    spi mode: 0  
    bits per word: 8  
    max speed: 500000 Hz (500 KHz)  

    FF FF FF FF FF FF   
    40 00 00 00 00 95   
    FF FF FF FF FF FF   
    FF FF FF FF FF FF   
    FF FF FF FF FF FF   
    DE AD BE EF BA AD   
    F0 0D   

    10.2  ECSPI2 测试
    位置:J7: 8,10
    测试设备:/dev/spidev1.0
    测试指令
    # /my-demo/linux-4.1.15/MY_SPIDEV_TEST_L4115_MYIMX6A9.out -D /dev/spidev1.0   

    spi mode: 0  
    bits per word: 8  
    max speed: 500000 Hz (500 KHz)  

    FF FF FF FF FF FF   
    40 00 00 00 00 95   
    FF FF FF FF FF FF   
    FF FF FF FF FF FF   
    FF FF FF FF FF FF   
    DE AD BE EF BA AD   
    F0 0D  

    11  Watchdog 测试11.1  超时复位测试
    # /unit_tests/wdt_driver_test.out 10 15 1  

    Starting wdt_driver (timeout: 10, sleep: 15, test: write)
    Trying to set timeout value=10 seconds
    The actual timeout was set to 10 seconds
    Now reading back -- The timeout is 10 seconds


    U-Boot 2016.03-svn270 (Oct 09 2018 - 14:44:15 +0800)

    CPU:   Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)
    CPU:   Extended Commercial temperature grade (-20C to 105C) at 45C
    Reset cause: WDOG
    Board: MYZR i.MX6 Evaluation Kit

    11.2  喂狗测试
    # /unit_tests/wdt_driver_test.out 4 2 1 &  

    [1] 748
    Starting wdt_driver (timeout: 4, sleep: 2, test: write)
    Trying to set timeout value=4 seconds
    The actual timeout was set to 4 seconds
    Now reading back -- The timeout is 4 seconds

    12  RTC 测试
    查看当前系统时钟
    # date  

    Wed Sep 26 00:27:45 UTC 2018
    查看当前RTC芯片时钟
    # hwclock   

    Wed Sep 26 00:28:01 2018  0.000000 seconds
    设置系统时钟,并同步到RTC芯片
    # date -s "2018-09-21 12:34:56"  

    Fri Sep 21 12:34:56 UTC 2018  
    将系统时钟写入硬件时钟
    # hwclock -w  
    断电重启评估板
    查看当前系统时钟
    # date  

    Fri Sep 21 12:36:11 UTC 2018  
    查看当前RTC芯片时钟
    # hwclock  

    Fri Sep 21 12:36:16 2018  0.000000 seconds  

    【下章节为明远智睿MY-IMX6-EK200 Linux-4.1.15 测试手册(3)】

    回复

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /3 下一条



    手机版|小黑屋|与非网

    GMT+8, 2025-1-10 05:41 , Processed in 0.111945 second(s), 15 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.