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


TF卡读写测试过程中,测试结果根据使用的TF卡的不同,会有所差异。
目前系统暂不支持自动挂载外接设备,所以测试之前,需要先将TF卡挂载到系统。系统启动之后,插入TF卡,系统能识别到TF卡设备mmcblk0:

系统识别TF卡信息
挂载mmcblk0的p1分区:
[email protected] ~# mount -t vfat /dev/mmcblk0p1 /mnt/ //将mmcblk0的p1分区挂载到mnt目录
[email protected] ~# df
载设备

挂载TF卡
从图中可以看到,mmcblk0p1已经成功挂载到了mnt目录下,可以在mnt目录下对TF卡进行读写测试了。
4.1 TF卡写速度测试
进入到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

TF卡写速度测试
从终端显示的信息中,写入的文件大小为80MiB,速度为9.6MB/s。
4.2 TF卡读速度测
说明:因为Linux的内核机制,一般情况下不需要特意去释放已经使用的cache。这些cache内容可以增加文件的读写速度。
测试过程是为了能够测试出从TF卡中读取数据的准确速度,所以需要先清除缓存。
执行以下指令,清除缓存:
[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

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

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

卸载TF卡
从终端显示的信息中可以看到,mmcblk0p1已经成功卸载。
边栏推荐
- 劳驾问一下各位老师 oracle 到pg cdc oracle 那边字段大写 pg 这边小写 同
- MPLS knowledge points
- AttributeError: ‘Document‘ object has no attribute ‘pageCount‘
- flutter 下 grpc list没有Setter 方法 ,如何使用相关属性
- Arm assembly foundation of SOC
- D. Permutation restoration (greedy + double pointer)
- Detailed explanation of redis6.x configuration parameters
- 登堂入室soc之arm汇编基础
- AUTOCAD——计算面积的方法
- Composition API的优势
猜你喜欢

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

How to use the pagoda panel to deploy the full stack project of node to the server

SVN版本控制分支、合并功能使用

6 + 1 skills of Software Test Engineer

Create a future and enjoy extraordinary | gbase Nantah General Motors unveiled opengauss Developer Day 2022

There is no setter method in grpc list under flutter. How to use related attributes

【2020】【论文笔记】磁控溅射法生长Bi2Te3/CoFeB双层异质结——

Worthington产气荚膜梭菌神经氨酸酶的特征及测定

BGP知识点总结

(CVPR 2019) GSPN: Generative Shape Proposal Network for 3D Instance Segmentation in Point Cloud
随机推荐
Composition API的优势
There is no setter method in grpc list under flutter. How to use related attributes
Ti AM335X工控模块矩阵键盘电路的设计与驱动移植
《穷爸爸与富爸爸》读后小结
HTC手机官解、S-ON/S-OFF与超级CID的关系
Dataframe modifies the value of a row or column position
vite 本地运行首次进入页面加载慢问题
How idea can quickly delete recently opened projects
What is cross site scripting (XSS)?
转:高效做正确的事
excel中怎么显示数字/英文时间
SQL injection tutorial: learn through examples
# Dest0g3 520迎新赛(更新中)
Add an interceptor to resttemplate to record the request response, and you also need to solve the problem that the flow is read only once
Redis cluster construction (based on 6.x)
Remember a laravel problem script @php artist package:discover handling the post autoload dump event returned with
软件加群验证
MySQL transaction isolation level
[Android development IOS series] Language: swift vs kotlin
【深入浅出玩转FPGA学习11----Testbench书写技巧1】