-
Notifications
You must be signed in to change notification settings - Fork 12
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatible LZ4 compression #75
Comments
Hi @mscdex, thanks for reporting this issue. I will look into the details and change the Linux kernel configuration accordingly, which will hopefully provide a resolution. |
I have investigated the situation and it seems that there is a mismatch between |
After a bit of digging it seems to be because squashfs-tools uses the C API for compressing with LZ4, however the LZ4 "legacy" format that the kernel still uses is only available via the LZ4 CLI tool because it utilizes a special, non-public function that still compresses in this "legacy" format. So squashfs-tools is unknowingly compressing with LZ4's newer, non-legacy format. I'm guessing that at some point in the past the "legacy" format was still the default and that fact changed over some time. Executing |
Ah, great, thanks for the hints! The |
I am not sure if you had any exact plans for the fix, but I found a fork called |
No, I did not have any immediate plans since xz seems to work well enough with the Celeron N5105 I'm using. I still think having working LZ4 would be worth it though for more underpowered machines since it has significantly faster decompression speed compared to the other available compression algorithms. |
This is now fixed in f98c558fb4b9e51c92f1c659bbae7c14eab708be -- please test it if you have the time. |
@mscdex I have not received any negative feedback from you, and it works for me (as far as I tested). I am now closing this ticket. Feel free to re-open if you still experience any issues. |
Sorry, I'm not able to test. I ended up switching to a different OS. |
When selecting LZ4 for the compression and generating the squashfs, during boot the Linux kernel panics because it couldn't load the rootfs. In particular there is a kernel message (seen via
wifibox console
) saying: "SQUASHFS error: Unknown LZ4 version"The text was updated successfully, but these errors were encountered: