Baidu cloud link of stress test tool: http://pan.baidu.com/s/1kUXtxXH
tar zxvf stress-0.18.1.tar.gz
Check README.txt, this article mainly explains how to cross compile the stes file and transplant it to the development board.
The first method: Enter in the unzipped path:
./configure --host=aarch64-poky-linux
make
cd src/
file stress
The second method:
(1): Change the configure file, line 255:
# cross_compiling=no
cross_compiling=yes
(2): Run:
source /opt/poky/2.0.1/environment-setup-aarch64-poky-linux
./configure
make clean
(3): Modify Makefile
# CC = gcc sunyi
CC = /opt/poky/2.0.1/sysroots/x86_64-pokysdk-Linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc --sysroot=/opt/poky/2.0.1/sysroots/aarch64-poky-linux
make
make install
cd src/
file stress
sunyi@mint /mnt/hgfs/share/stress-0.18.1/src $ stress -c 1
stress: info: [9721] dispatching hogs: 1 cpu, 0 io, 0 vm, 0 hdd
sunyi@mint /mnt/hgfs/share/stress-0.18.1/src $ stress -c 2
stress: info: [9754] dispatching hogs: 2 cpu, 0 io, 0 vm, 0 hdd