当前位置:网站首页>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已经成功卸载。
边栏推荐
- PHP Alipay transfer to Alipay account
- Create a future and enjoy extraordinary | gbase Nantah General Motors unveiled opengauss Developer Day 2022
- E. Split into two sets
- # Dest0g3 520迎新赛(更新中)
- Worthington产气荚膜梭菌神经氨酸酶的特征及测定
- Build embedded development environment and FRP penetration under win
- The import and Export button of Damon database table is gray, and the DMP file cannot be imported
- Ti AM335X工控模块使用beaglebone(bbb)的Debian系统
- I.MX6UL核心模块使用连载-RTC测试 (十二)
- Phoenix中常用shell操作
猜你喜欢

Video game quiz? I think it's useless. It's better to do these well!

Sqlyog data import and export graphic tutorial

SVN version control branch and merge function use

excel中怎么显示数字/英文时间

Ti AM335X工控模块使用beaglebone(bbb)的Debian系统

i.MX6ULL SNVS电源域GPIO状态保持验证

Why does the debugger display the wrong function

Composition API的优势

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

CD from grabbing the track to building a streaming media server -- a case study of "moon in the hometown of sleep"
随机推荐
Installing and using R in Anaconda
How uxdb works on multiple processors
SQLyog数据导入导出图文教程
After reading this article, you should thoroughly understand how to do interface testing
HTC手机官解、S-ON/S-OFF与超级CID的关系
leetcode/只出现一次的数字
【2021】【论文笔记】6G技术愿景——OTFS调制技术
DialogRPT-Dialog Ranking Pretrained Transformers
NFT market also began to diversify
[in simple terms, play with FPGA learning 11 --- testbench writing skills 1]
What is the difference between for... In... And for... Of
Republishing foundation and configuration
给RestTemplate添加拦截器记录请求响应,还需解决流只读一次的问题
Remember a laravel problem script @php artist package:discover handling the post autoload dump event returned with
还在用==0 null equal 判断空值吗,对isEmpty 和 isBlank有多少了解呢
登堂入室soc之arm汇编基础
Navica tool imports remote MySQL into local MySQL database
D - Dire Wolf (interval DP)
Infinite fraction path (BFS pruning)
[Verilog digital system design (Xia Yuwen) 4 ----- basic concepts of Verilog syntax 2]