PeterPawn / YourFritz

dynamic package management for AVM routers
GNU General Public License v2.0
225 stars 63 forks source link

squashfs #18

Closed doak closed 5 years ago

doak commented 5 years ago

I just tried to investigate shellinabox.squashfs, but failed to unsquash it on Debian v9.6 with unsquashfs v4.3:

./yourfritz/addons/VR9$ unsquashfs -l shellinabox.squashfs
Reading a different endian SQUASHFS filesystem on shellinabox.squashfs
Filesystem on shellinabox.squashfs is (4:0), which is a later filesystem version than I support!

I am confused, because the message looks like my version is too old, but what else should 4:0" > "4.3" mean? There seems to be no later version available. On the other hand, if "4:0" is the version of the FS itself, the manpages of squashfs-tools does not mention anything about it. However, the changelog states at least that FS v4.0 was added in SW v4.0.

Anyway, which version and which SW did you use to generate the image?

doak commented 5 years ago

Oh, I just stumbled over directory squashfs and the patches within it ...

PeterPawn commented 5 years ago

Still the wrong path ... the patches there address a different problem.

AVM uses an own format for SquashFS4 images. While all other platforms were using "little endian format", starting with SquashFS4, AVM decided to stay with "big endian format" and therefore you need an adapted version of SquashFS4 tools, which is maintained by the Freetz project. You have to get the patches for "vanilla sources" from there or you may use a pre-compiled version of both binaries (you need an "unsquashfs" and a "mksquashfs" tool for a "complete" toolbox) from my "yf_bin" repository.

Feel free to close this issue yourself, if you think, it's solved now.

doak commented 5 years ago

Thanks a lot for the explanation.