http://sourceforge.net/projects/bonnie/?source=typ_redirect
references:
http://www.eygle.com/archives/2004/10/use_bonnie_plus2_test_iospeed.html
http://www.net527.cn/a/caozuoxitong/Linux/2012/1117/25062.html
http://www.eygle.com/archives/2004/10/use_bonnie_plus2_test_iospeed.html
http://mkl-note.blogspot.tw/2008/11/using-bonnie.html
http://www.360doc.com/relevant/282911096_more.shtml
http://www.360doc.com/content/10/0511/17/1059940_27092422.shtml
(優化)
http://blog.csdn.net/fireroll/article/details/13770567
./configure --host=arm-unknown-linux-uclibcgnueabi CXX=arm-unknown-linux-uclibcgnueabi-g++
make
=> 會出現以下問題
......
zcav.cpp: In function ‘int main(int, char**)’:
zcav.cpp:73: error: ‘strdup’ was not declared in this scope
zcav.cpp:112: error: ‘strcmp’ was not declared in this scope
......
解決辦法:
zcav.cpp 加入以下2個header file
#include <stdio.h>
#include <string.h>
==> make clean && make
拷貝 bonnie++到板子執行,會出現以下問題
./bonnie++: can't load library 'libstdc++.so.6'
解決辦法: 改成靜態編譯
vi Makefile
......
WFLAGS=-Wall -W -Wshadow -Wpointer-arith -Wwrite-strings -pedantic -ffor-scope $(MORE_WARNINGS)
CFLAGS=-O2 -DNDEBUG $(WFLAGS) $(MORECFLAGS) -static
CXX=arm-unknown-linux-uclibcgnueabi-g++ $(CFLAGS)
.....
拷貝 bonnie++到板子執行即可
[如何下command]