Here is a patch for compiling the mksquashfs tool on OS X:
squashfs-tools2.2-r2-OSX.patch
The compiled binary is here in case you’re too lazy to compile it yourself :) :
This is what I use to generate a SquashFS image for my patched Zaurus kernel:
# cd somedirectory_to_compress # mksquashfs . /Volumes/Zaurus/compressedimage.squashfs -le -noappend
If you’re using the kernel included with Cacko ROM, you don’t have to patch anything as SquashFS support is already included.
Finally, here is how to mount the image on the Zaurus:
# mount -t squashfs -o loop /mnt/card/compressedimage.squashfs /mnt/mountedimage
thanks for this. any chance you could post the unsquashfs as a osx binary as well?
thanks