完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
20220225231727从开始菜单打开Ubuntu终端 cd /home/lhj/MYD_JX8MP/ 下载代码 输入git clone https://github.com/eembc/coremark.git 回车 lhj@DESKTOP-BINN7F8:~/MYD_JX8MP$ git clone https://github.com/eembc/coremark.git Cloning into 'coremark'... remote: Enumerating objects: 338, done. remote: Counting objects: 100% (73/73), done. remote: Compressing objects: 100% (56/56), done. remote: Total 338 (delta 31), reused 44 (delta 15), pack-reused 265 Receiving objects: 100% (338/338), 516.01 KiB | 1022.00 KiB/s, done. Resolving deltas: 100% (190/190), done. lhj@DESKTOP-BINN7F8:~/MYD_JX8MP$ cd coremark/ code . 打开代码如下 交叉编译 菜单栏 【终端】-【新建终端】底部弹出终端 输入 source ../meta/environment-setup-cortexa53-crypto-poky-linux 加载环境变量 输入mkdir MYD_JX8MP && cp linux/* MYD_JX8MP回车 复制模板 输入make PORT_DIR=MYD_JX8MP进行编译 打印如下: lhj@DESKTOP-BINN7F8:~/MYD_JX8MP/coremark$ make PORT_DIR=MYD_JX8MP make XCFLAGS=" -DPERFORMANCE_RUN=1" load run1.log make[1]: Entering directory '/home/lhj/MYD_JX8MP/coremark' make port_preload make[2]: Entering directory '/home/lhj/MYD_JX8MP/coremark' make[2]: Nothing to be done for 'port_preload'. make[2]: Leaving directory '/home/lhj/MYD_JX8MP/coremark' echo Loading done ./coremark.exe Loading done ./coremark.exe make port_postload make[2]: Entering directory '/home/lhj/MYD_JX8MP/coremark' make[2]: Nothing to be done for 'port_postload'. make[2]: Leaving directory '/home/lhj/MYD_JX8MP/coremark' make port_prerun make[2]: Entering directory '/home/lhj/MYD_JX8MP/coremark' make[2]: Nothing to be done for 'port_prerun'. make[2]: Leaving directory '/home/lhj/MYD_JX8MP/coremark' ./coremark.exe 0x0 0x0 0x66 0 7 1 2000 > ./run1.log /bin/sh: 1: ./coremark.exe: Exec format error make[1]: *** [Makefile:113: run1.log] Error 2 make[1]: Leaving directory '/home/lhj/MYD_JX8MP/coremark' make: *** [Makefile:100: rerun] Error 2 lhj@DESKTOP-BINN7F8:~/MYD_JX8MP/coremark$ 错误信息不管,因为是交叉编译的不能在本地执行。 ls查看生成了coremark.exe可执行文件,注意该文件是交叉编译生成在开发板执行的,后缀.exe是因为使用模板posix/core_portme.mak定义了EXE = .exe lhj@DESKTOP-BINN7F8:~/MYD_JX8MP/coremark$ ls LICENSE.md Makefile barebones core_main.c core_state.c coremark.exe coremark.md5 docs linux posix run1.log MYD_JX8MP README.md core_list_join.c core_matrix.c core_util.c coremark.h cygwin freebsd macos rtems simple lhj@DESKTOP-BINN7F8:~/MYD_JX8MP/coremark$ cp coremark.exe /mnt/e复制到windows下 CRT串口终端导入到开发板,执行 root@myd-jx8mp:~# rz rz waiting to receive. Starting zmodem transfer. Press Ctrl+C to cancel. Transferring coremark.exe... 100% 34 KB 11 KB/sec 00:00:03 0 Errors root@myd-jx8mp:~# chmod +x coremark.exe root@myd-jx8mp:~# ./coremark.exe 2K performance run parameters for coremark. CoreMark Size : 666 Total ticks : 20893 Total time (secs): 20.893000 Iterations/Sec : 5264.921265 Iterations : 110000 Compiler version : GCC10.2.0 Compiler flags : -O2 -DPERFORMANCE_RUN=1 -lrt Memory location : Please put data memory location here (e.g. code in flash, data on heap etc) seedcrc : 0xe9f5 [0]crclist : 0xe714 [0]crcmatrix : 0x1fd7 [0]crcstate : 0x8e3a [0]crcfinal : 0x33ff Correct operation validated. See README.md for run and reporting rules. CoreMark 1.0 : 5264.921265 / GCC10.2.0 -O2 -DPERFORMANCE_RUN=1 -lrt / Heap root@myd-jx8mp:~# 可以看到跑分为5264.921265 将posix/core_portme.mak里PORT_CFLAGS = -O2改为PORT_CFLAGS = -O3 再次编译运行 oot@myd-jx8mp:~# rz rz waiting to receive. Starting zmodem transfer. Press Ctrl+C to cancel. Transferring coremark.exe... 100% 33 KB 11 KB/sec 00:00:03 0 Errors root@myd-jx8mp:~# chmod +x coremark.exe root@myd-jx8mp:~# ./coremark.exe 2K performance run parameters for coremark. CoreMark Size : 666 Total ticks : 20875 Total time (secs): 20.875000 Iterations/Sec : 5269.461078 Iterations : 110000 Compiler version : GCC10.2.0 Compiler flags : -O3 -DPERFORMANCE_RUN=1 -lrt Memory location : Please put data memory location here (e.g. code in flash, data on heap etc) seedcrc : 0xe9f5 [0]crclist : 0xe714 [0]crcmatrix : 0x1fd7 [0]crcstate : 0x8e3a [0]crcfinal : 0x33ff Correct operation validated. See README.md for run and reporting rules. CoreMark 1.0 : 5269.461078 / GCC10.2.0 -O3 -DPERFORMANCE_RUN=1 -lrt / Heap root@myd-jx8mp:~# 查看排名https://www.eembc.org/coremark/scores.php 下可以看到各测试的分数 搜索A53可以看到i.MX8M处理器的跑分有差不多20000,和我这里的5000多差距较大,后面有时间再去看看是什么原因导致的。
|
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
【米尔-紫光MYB-J7A100T国产FPGA开发板试用】米尔-紫光PG2L100H国产FPGA开发板开箱评测
1035 浏览 0 评论
【米尔-紫光PG2L100H国产FPGA开发板试用】官方LED例程测试体验
5233 浏览 0 评论
【米尔-紫光PG2L100H国产FPGA开发板试用】上电测试报告
4881 浏览 0 评论
【米尔-紫光PG2L100H国产FPGA开发板试用】开箱评测!米尔电子PG2L100H开发板深度体验报告
1004 浏览 0 评论
【米尔-Xilinx XC7A100T FPGA开发板试用】+04.SFP之Aurora测试(zmj)
828 浏览 0 评论
【米尔-瑞米派兼容树莓派扩展模块-试用体验】基于ROS系统的三麦轮小车自主导航
3657浏览 2评论
【米尔NXP i.MX 93开发板试用评测】5、安装Debian和排除启动故障
732浏览 2评论
【米尔NXP i.MX 93开发板试用评测】2、异构通信环境搭建和源码编译
875浏览 2评论
【米尔-瑞米派兼容树莓派扩展模块-试用体验】Free RTOS应用开发环境部署
1463浏览 1评论
【米尔-芯驰D9开发板- 国产平台试用】- 03- 外设接口测试-U盘、485总线
6821浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 13:46 , Processed in 0.482348 second(s), Total 40, Slave 31 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号