标签搜索

fio程序交叉编译记录

Leo
Leo
2021-11-12 / 0 评论 / 274 阅读 / 正在检测是否收录...

make CC=aarch64-linux-gnu-gcc AR=aarch64-linux-gnu-ar RANLIB=aarch64-linux-gnu-ranlib
内核需要开启 CONFIG_SYSVIPC=y配置项
编译libaio
make CC=aarch64-linux-gnu-gcc AR=aarch64-linux-gnu-ar RANLIB=aarch64-linux-gnu-ranlib
1
将libaio.a拷贝到交叉编译工具链的gcc-linaro-5.4.1-2017.01-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/lib64目录
头文件libaio.h拷贝到交叉编译工具链的gcc-linaro-5.4.1-2017.01-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include目录

编译fio

./configure --cpu=arm64 --cc=aarch64-linux-gnu-gcc --extra-cflags=-static
1
fio测试
./fio -direct=1 -iodepth=8 -rw=read -ioengine=libaio -bs=16M -size=64M -numjobs=1 -runtime=1800 -filename=/dev/block/mmcblk0p1 -name=test

aarch64-linux-gnu-gcc
./configure --host=arm-linux --cross-prefix=/home/leo/Desktop/fio-master/out --cc=aarch64-linux-gnu-gcc

sudo ./configure --cpu=arm64 --prefix=/home/leo/Desktop/fio-master/out --cc=/home/leo/gcc-linaro-7.4.1-507/bin/aarch64-linux-gnu-gcc --build-static

0

评论 (0)

取消