3520a新板做内存测试

来源:互联网 发布:cnc编程用什么软件好 编辑:程序博客网 时间:2024/05/10 20:59

http://yangkuncn.cn/2013/03/28/%E5%BC%80%E5%8F%913520a%E9%81%87%E5%88%B0%E7%9A%84%E9%97%AE%E9%A2%98/


工具名称:memtester 4

下载地址:http://pyropus.ca/software/memtester/

截至目前最新版本 4.2.1

memtester is licensed under the GNU General Public License version 2 (only)

 

用法简介如下:

Usage: memtester [-p physaddrbase] <mem>[B|K|M|G] [loops]

如果要测试2G 内存 100次,请写如下的命令:

Memtester 2G 100

如果要测试2G 内存无限次,请写如下的命令:

Memtester 2G

 

 

测试过程如下:

[root@localhost memtester-4.2.1]# memtester 2G
memtester version 4.2.0 (64-bit)
Copyright (C) 2010 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffffffffffff000
want 2048MB (2147483648 bytes)
got  2048MB (2147483648 bytes), trying mlock ...locked.
Loop 1:
  Stuck Address       : ok         
  Random Value        : ok
  Compare XOR         : ok
  Compare SUB         : ok
  Compare MUL         : ok
  Compare DIV         : ok
  Compare OR          : ok
  Compare AND         : ok
  Sequential Increment: ok
  Solid Bits          : ok         
  Block Sequential    : ok
  Checkerboard        : ok
  Bit Spread          : ok
  Bit Flip            : ok
  Walking Ones        : ok
  Walking Zeroes      : ok
  8-bit Writes        : ok
  16-bit Writes       : ok

 

结果全部显示为OK表示正常。



在arm(海思3520a)上交叉编译此工具:

修改conf-ld,conf-cc文件,把里面的ld,cc工具改成arm-hisiv200-linux-gcc和arm-hisiv200-linux-ld。然后make就可以编译出来arm下的memtester了。