- 到https://sourceforge.net/projects/e2fsprogs/下载e2fsprogs源码;
- 修改编译选项,增加ALL_CFLAGS
sed -i -e 's/-DTEST/$(ALL_CFLAGS) &/' lib/e2p/Makefile.in
- Mkdir build;cd ./build ,然后配置config的toolchain:
../configure --host=arm-linux --prefix=$PWD CC=arm-linux-gnueabihf-gcc
4. Make;make install
5. 在build/sbin下面生成e2fsprogs相关执行档:
6.将生成的mkfs.ext4和tune2fs打包到busybox或者直接拷贝到板子,执行如下命令格式化分区为ext4 格式,并挂载支持日志系统模式
Fat文件系统tool源码交叉编译
源码下载地址:
http://ftp.debian.org/debian/pool/main/d/dosfstools/
如下版本验证可用:
编译步骤:
1. tar -xvf dosfstools_4.1.orig.tar.xz ;cd dosfstools-4.1/
2. 配置交叉编译,./configure --host=arm-linux --prefix=$PWD CC=arm-linux-gnueabihf-gcc
3. make;make install
4. tool生成在dosfstools-4.1/sbin目录