mksquashfs for OS X

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 :) :

mksquashfs2.2-r2-OSX.tar.gz

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

One thought on “mksquashfs for OS X

  1. thanks for this. any chance you could post the unsquashfs as a osx binary as well?

    thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.