1、环境安装:
gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu.tar.xz
(下载地址 : https://download.csdn.net/download/zyfzhangyafei/12629495)
建立目录 sudo mkdir -p /usr/local/arm-64/
解压后,放入 /usr/local/arm-64/
1、下载e2fsprogs的源码
git clone git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
也可直接下载:https://download.csdn.net/download/zyfzhangyafei/12629612
2、路径导入环境变量中,
export PATH=/usr/local/arm-64/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu/bin:$PATH
3、编译
cd e2fsprogs
mkdir build
cd build
#../configure -host=aarch64-linux-gnu cc=arm-linux-gcc -prefix=/home/zyf/software/e2fff/e2fsprogs/build
../configure -host=aarch64-linux-gnu cc=arm-linux-gcc --target=arm-linux LDFLAG