Hi! I've created a PR on a cloned repo to be able to build on ubuntu 22.04, and probably any other modern linux. https://github.com/cquijano/cc-tool/pull/3
Hi Lasse! Thanks for all your comments. I worked to make the changes you suggested, and it work well with the lib provided with Ubuntu 20.04 like that. I had to set the LZMA properties byte (lc/lp/pb) to 0 though, or it wouldn't work. I'm not sure about the implication, but I feel I'm lucky I managed to make it worked in the first place on my side. So I discoved jffs2reader is part of mtd-utils, which is managed by a linux-mtd, which is a sub-team from the linux kernel. Not sure it'll get integrated...
Hi, I've unintentionnaly removed a file from my openwrt router. It was on a jffs2 partition, with lzma compression activated (it's activated on openwrt, there is a jffs2_make_lzma_available.patch applied on the kernel) I've dig into the partition, and discovered the nice jffs2dump/jffs2reader to recover my file "offline". I've tried to port the LZMA support in jffs2reader. After much digging, I've managed to have it working by patching liblzma, to access lzma_decoder.c, bypassing lzma2_decoder.c...