... the make_ext4fs did not work for me on debian stretch 64bit. I took the one from the debian package "android-tools-fsutils".
MAKE_EXT4FS=make_ext4fs if [ ! -f "$MAKE_EXT4FS" ]; then echo "Please download the '$MAKE_EXT4FS' binary tool supplied by Jolla into this directory" echo "or build one yourself:" echo "git clone https://android.googlesource.com/platform/system/extras" echo "cd extras/ext4_utils" echo "git checkout 67bf7cb2c7487b2a93af8e2d9903842e8fe51f69 -b no-android-deps" echo "gcc [^se]*.c sha1.c sparse_crc32.c ext4_utils.c extent.c -o $MAKE_EXT4FS -lz" echo "cp $MAKE_EXT4FS $(pwd)" echo "cd $(pwd)" exit 1