我用mksquashfs制作了test.squashfs,在x86 Ubuntu上mount -t squashfs test.squashfs /opt/mount/sysroot 是可以挂载的,但是在RV1126上挂载时提示Operation is not permitted.
已经检查过内核,内核已配置squashfs 4.0 support 和 overlay support ,不知道是否和时间戳有关。
···
[root@MiWiFi-RB08-srv:~]# mount -t squashfs -o loop /sdcard/tmp/test.img /sdcard/sysroot/
mount: /sdcard/sysroot/: mount failed: Operation not permitted.
[root@MiWiFi-RB08-srv:~]# file /sdcard/tmp/test.img
/sdcard/tmp/test.img: Squashfs filesystem, little endian, version 4.0, 1179112 bytes, 20 inodes, blocksize: 131072 bytes, created: Mon Dec 11 13:58:39 2023
[root@MiWiFi-RB08-srv:~]# date
Thu Jan 1 18:58:24 CST 1970