SquashFs工具制作

下面是SquashFs.tar.gz的下载地址,解压后,直接执行其中的Makefile即可。

SquashFs.tar.gz

说明:

制作squashfs格式的压缩镜像:

./mksquashfs ./rootfs ./rootfs.squashfs.img -b 64K -comp xz || exit -1


修改uboot传参:

mem=104M console=ttyAMA0,115200 root=/dev/mtdblock1 rootfstype=squashfs mtdparts=hi_sfc:4M(boot),11776K(rootfs),512K(config)

 

配置内核使其支持SquashFs:

原文地址:https://www.cnblogs.com/pengdonglin137/p/3521438.html