当前位置:网站首页>I.MX6UL核心模块使用连载-USB接口测试 (六)
I.MX6UL核心模块使用连载-USB接口测试 (六)
2022-07-26 01:58:00 【szembed】
以下内容已经在Iot-6ULX/EVB-6ULX平台上验证通过,Iot-6ULX/EVB-6ULX介绍如下:

5. USB接口测试
开发板上搭载了1路USB Host和1路USB OTG,其中USB OTG在开发板上作为程序烧录口使用,暂不测试。以下测试内容是针对USB Host的测试。
USB Host接口使用U盘进行测试,测试结果根据使用的U盘的不同,会有所差异。
5.1 USB Host写速度测试
目前系统暂不支持自动挂载外接设备,所以测试之前,需要先将U盘挂载到系统。系统启动之后,插入FAT32格式的U盘到开发板上的USB Host,系统能识别到U盘设备sda:

系统识别U盘信息
挂载sda的sda1分区:
[email protected] ~# mount -t vfat /dev/sda1 /mnt/ //将sda1分区挂载到mnt目录
[email protected] ~# df //查看磁盘占用情况,查看挂载设备

挂载U盘
从图中可以看到,sda1已经成功挂载到了mnt目录下,可以在mnt目录下对U盘进行读写测试了。进入到mnt目录:
[email protected] ~# cd /mnt //进到mnt目录
[email protected] mnt# pwd //查看当前所在目录

进入mnt目录
使用dd指令往root目录下写入数据,并生成largefile文件,文件大小为80 MiB,测试写速度。
[email protected] mnt#
dd if=/dev/zero of=./largefile bs=8k count=10240 conv=fdatasync

USB接口写速度测试
从终端显示的信息中,写入的文件大小为80MiB,速度为7.8MB/s。
5.2 USB Host读速度测试
说明:因为Linux的内核机制,一般情况下不需要特意去释放已经使用的cache。这些cache内容可以增加文件的读写速度。
测试过程是为了能够测试出从U盘中读取数据的准确速度,所以需要先清除缓存。
执行以下指令,清除缓存:
[email protected] mnt# sh -c "sync && echo 3 > /proc/sys/vm/drop_caches" //清除页面缓存,目录项和inode

清除缓存
再次使用dd指令读取前面用dd指令写入的largefile文件,测试读速度:
[email protected] ~# dd if=./largefile of=/dev/null bs=8k

USB接口读速度测试
从终端显示的信息中,读取的文件大小为80MiB,速度为26.2MB/s。
测试完成后,用指令删除掉测试文件:
[email protected] ~# ls -alh largefile //查看largefile文件
[email protected] ~# rm largefile //移除largefile文件

删除测试文件
测试完成后,需要将U盘卸载:
[email protected] mnt# cd //进入用户主目录
[email protected] ~# umount /mnt //卸载mnt目录下的挂载的U盘
[email protected] ~# df //查看磁盘占用情况,查看挂载设备

卸载U盘
从终端显示的信息中可以看到,sda1已经成功卸载。
边栏推荐
- 【Verilog数字系统设计(夏宇闻)3-----Verilog语法的基本概念1】
- TI AM335x工控模块网络跟文件系统NFS的实现
- Dest0g3 520 orientation (under update)
- Niuke - bm39 serialized binary tree [hard]
- 【2021】【论文笔记】6G技术愿景——OTFS调制技术
- Leetcode/ numbers that appear only once
- [in simple terms, play with FPGA learning 11 --- testbench writing skills 2]
- (CVPR 2019) GSPN: Generative Shape Proposal Network for 3D Instance Segmentation in Point Cloud
- 一款可插拔的AM335X工控模块板载wifi模块
- How does Flink SQL configure to print the insert parameter log
猜你喜欢

【2019】【论文笔记】基于超材料可调谐THz宽频吸收——

TI AM335x工控模块网络跟文件系统NFS的实现
![[independent station construction] Shopify seller: learn these points and double the sales volume of online stores!](/img/52/8c1520db38ffa8927e975b6f244a65.png)
[independent station construction] Shopify seller: learn these points and double the sales volume of online stores!

pt-onnx-ncnn转换的问题记录(接yolov5训练)

Composition API的优势

CD from grabbing the track to building a streaming media server -- a case study of "moon in the hometown of sleep"

【2021】【论文笔记】6G技术愿景——OTFS调制技术

Sqlyog data import and export graphic tutorial

还在用==0 null equal 判断空值吗,对isEmpty 和 isBlank有多少了解呢

SQL manual blind injection and error reporting injection
随机推荐
flutter 下 grpc list没有Setter 方法 ,如何使用相关属性
G. Count the trains (thought set + two points)
QT program beautification of the use of style sheets, QT uses pictures as the background and transparency of controls, QT custom button styles
E. Split into two sets
The work of robot engineering and the puzzle of postgraduate entrance examination "volume" supplement
Excuse me, sir. Oracle to PG CDC Oracle, the upper case of the field is the same as that of PG
怎么使用宝塔面板把node全栈项目部署到服务器上
How to modify Oracle functions?
Leetcode algorithm 147. insert and sort the linked list
Worthington papain - production of glycopeptides from purified proteoglycans (attached Literature)
IDEA如何快速删除最近打开的项目
Make and makefile summary II
The e-commerce project is written in the resume. How to answer it during the interview
I.MX6UL核心模块使用连载-RTC测试 (十二)
There is no setter method in grpc list under flutter. How to use related attributes
Digital transformation behind the reshaping growth of catering chain stores
Ti AM335X工控模块矩阵键盘电路的设计与驱动移植
Why does the debugger display the wrong function
重发布基础与配置
TI AM335x工控模块网络跟文件系统NFS的实现
