s p a r s i fy Nokia N9/950 Compressed Sparse Image (LZO) Writer sparsify accepts a loopback filesystem image and builds a "sparse image" in the format used by Harmattan rootfs.jffs2 files. The output file can be used as input to fiasco-gen to build flashable FIASCO images. This utility is the exact opposite of ali1234's unlzo.py, and requires the same Python-LZO library in order to run (see link for more info). Be advised that any attempt to flash images produced using this tool is entirely at your own risk. Note that the base filename of the input file is written into the output image, so make sure to rename it to the desired value before sparsifying. Round-tripping an original partition image using unlzo.py and sparsify will produce a different, sometimes larger, output file, as sparsify's zero-region removal logic is different from Nokia's. However, the two files will be semantically equivalent. Usage: sparsify.py input output Example: sparsify.py rootfs rootfs.jffs2 Download: Script License: Do WTF You Want Public License