` 前段时间已经搭建好了Ubuntu虚拟机系统,至于SecureCRT串口工具,之前就一直在用,因此无需再次安装。我们使用SecureCRT来查看启动信息,则首先需要安装u***转串口的驱动。由于之前就安装过CP2105 USB转串口驱动,因此无需再次安装。
开发板有多种启动模式,我们需要将开发板设置成QSPI FLASH启动模式。至于开发板的启动模式,在开发板的TF卡槽右下角有丝印标注,这里不再赘述。将开发板的拨码开关编号1~6对应拨到100101,这个档位是QSPI FLASH启动模式。将开发板上电 ,连接12V,然后通过Micro USB数据线与PC端相连接,此时在PC的设备管理器中,查找到相应的两个串口号,其中一个为PS端串口,一个为PL端串口。
此时再打开SecureCRT软件,设置并打开对应的串口号,然后按一下RESET按钮,PS端所在串口会输出信息,再启动的瞬间会提示是否进入uboot模式,三秒钟的反应时间,如果需要进入uboot模式则需快速按回车。这里进入uboot模式下,查看了在这模式下的所以命令
- Zynq> help
- ? - alias for 'help'
- base - print or set address offset
- bdinfo - print Board Info structure
- boot - boot default, i.e., run 'bootcmd'
- bootd - boot default, i.e., run 'bootcmd'
- bootefi - Boots an EFI payload from memory
- bootelf - Boot from an ELF image in memory
- bootm - boot application image from memory
- bootp - boot image via network using BOOTP/TFTP protocol
- bootvx - Boot vxWorks from an ELF image
- bootz - boot Linux zImage image from memory
- clk - CLK sub-system
- cmp - memory compare
- coninfo - print console devices and information
- cp - memory copy
- crc32 - checksum calculation
- dcache - enable or disable data cache
- dfu - Device Firmware Upgrade
- dhcp - boot image via network using DHCP/TFTP protocol
- dm - Driver model low level access
- echo - echo args to console
- editenv - edit environment variable
- eeprom - EEPROM sub-system
- env - environment handling commands
- exit - exit script
- ext2load- load binary file from a Ext2 filesystem
- ext2ls - list files in a directory (default /)
- ext4load- load binary file from a Ext4 filesystem
- ext4ls - list files in a directory (default /)
- ext4size- determine a file's size
- ext4write- create a file in the root directory
- false - do nothing, unsuccessfully
- fatinfo - print information about filesystem
- fatload - load binary file from a dos filesystem
- fatls - list files in a directory (default /)
- fatsize - determine a file's size
- fatwrite- write file into a dos filesystem
- fdt - flattened device tree utility commands
- FPGA - loadable FPGA image support
- fstype - Look up a filesystem type
- go - start application at address 'addr'
- gpio - query and control gpio pins
- help - print command description/usage
- i2c - I2C sub-system
- icache - enable or disable instruction cache
- iminfo - print header information for application image
- imxtract- extract a part of a multi-image
- itest - return true/false on integer compare
- load - load binary file from a filesystem
- loadb - load binary file over serial line (kermit mode)
- loads - load S-Record file over serial line
- loadx - load binary file over serial line (xmodem mode)
- loady - load binary file over serial line (ymodem mode)
- loop - infinite loop on address range
- ls - list files in a directory (default /)
- md - memory display
- mdio - MDIO utility commands
- mii - MII utility commands
- mm - memory modify (auto-incrementing address)
- mmc - MMC sub system
- mmcinfo - display MMC info
- mw - memory write (fill)
- nfs - boot image via network using NFS protocol
- nm - memory modify (constant address)
- ping - send ICMP ECHO_REQUEST to network host
- printenv- print environment variables
- reset - Perform RESET of the CPU
- run - run commands in an environment variable
- save - save file to a filesystem
- saveenv - save environment variables to persistent storage
- setenv - set environment variables
- sf - SPI flash sub-system
- showvar - print local hushshell variables
- size - determine a file's size
- sleep - delay execution for some time
- source - run script from memory
- spl - SPL configuration
- test - minimal test like /bin/sh
- tftpboot- boot image via network using TFTP protocol
- tftpput - TFTP put command, for uploading files to a server
- thordown- TIZEN "THOR" downloader
- true - do nothing, successfully
- u*** - USB sub-system
- u***boot - boot from USB device
- version - print monitor, compiler and linker version
复制代码
等待系统自动完成登录后,才能进行板卡功能项目的检测
我们可以使用OpenSSH在Ubuntu和开发板之间传送文件,Ubuntu可以通过ssh -v指令来查询是否已安装OpenSSH工具
这边由于电脑没有RJ45的网口,专门买了个USB转RJ45的转接线,但是没有路由器,因此尝试使用了直接与开发板相连接的方式,Ubuntu中手动输入设置与win10同一网段的IP,但仍然连接未成功,后续再研究研究。
至于LED1灯的测试很简单,等板子登录进系统后,在SecureCRT中输入“echo 0 > /sys/class/leds/user-led0/brightness”,则LED1灯由默认的点亮状态变成熄灭
如果输入“echo 1 > /sys/class/leds/user-led0/brightness”,则点亮LED1
开发板上电运行后,输入“od -x /dev/input/event0”指令,监听由PS端控制的按键状态,按下对应的用户按键,会有如下打印信息。由下图信息可以看出键值为“0094”,检测完毕后按"Ctrl+C"即可退出监听按键的状态。
板卡上的USB功能检测也是相当简单,注意的是本文件系统支持FAT32、EXT2、EXT3、EXT4格式的U盘,若是可以识别但是无法正常使用,很可能使用的是NTFS格式的U盘,因此需重新格式化U盘为FAT32格式。插入U盘后输入df查看一下,是否挂载成功。
然后输入“/opt/product-test/test-programs/file-rw/tl-disk-rw-test_z7x -p -s 1000 -m /run/media/sda1”指令来进行USB接口读写速度测试,这里用的是一个普通8G的U盘,大约过了三分钟左右,检测的输出结果如下
由上述截图可知,此次对U盘进行了1000MByte测试数据的读写测试,测得写入速度为4MB/S,读取速度为19.63MB/S,当然实际测得的读写速度跟U盘的性能相关。
至于网络连通性测试,等板卡进入系统后,手动输入:udhcpc,通过路由自动获取IP一直失败,SecureCRT显示“Sending discover...”,有待后续调试调试。
今天的体验分享就到这儿啦,后续再对板卡做进一步分析。如有不同见解,欢迎留言反馈,谢谢!咱们下期再见。
`
0