Forum

Full Version: How can I add lz4-patch to kernel?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

i've seen this post here: http://forum.xbian.org/thread-2217-post-24363.html#pid24363

so there is a special xbian lz4-patch for the kernel. maybe this might be a solution to mount my btrfs partition on my normal ubuntu/debian/etc system?

My question here is:
can u guys give me a little "how to" / blue print for compiling/patching my standard ubuntu kernel with this patch?

PS: i've seen that the github-link in this post might be offline where can i find the right one?

thanks very much in advance! Smile
can nobody help me here? i just need a little introduction (:
It's not an XBian specific patch, just find the patch for your specific kernel version and follow any of the tutorials for patching and compiling a Linux kernel.
not an XBian specific patch? but if i want to mount the btrfs partitions on my sd card with any pc-distribution linux, i need maybe this xbian-patch? so there is no chance with an other btrfs-lz4 patch to patch the kernel stable: 4.2.7 in my case...

so where can i find an lz4 patch for stable: 4.2.7 cant find anything on web.. the changelog dont say anything about this xbian specifics.. https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/log/?id=refs%2Ftags%2Fv4.2.7&qt=grep&q=lz4
@f1vefour stated, the btrfs lz4 patch is a general btrfs patch that should be available for all kernel versions.
@suhm
If you are still interested in lz4 patch for kernel(s), here is this one we're using
https://github.com/xbianonpi/xbian-package-kernel/blob/master/patches/rpi/lz4.patch
(28th Jan, 2016 01:24 PM)Nachteule Wrote: [ -> ]@suhm
If you are still interested in lz4 patch for kernel(s), here is this one we're using
https://github.com/xbianonpi/xbian-package-kernel/blob/master/patches/rpi/lz4.patch

Although patching the kernel sounds like a cool option it would be much appreciated if any member of the xbian community could share a patched 4.x kernel (x86_64) with lz4 support. IMHO the majority of the xbian userbase (like myself) doesn't have the knowledge or skills to recompile the kernel.

Any help would be much appreciated.

Cheers,

Jiko
(10th Jan, 2017 02:11 AM)jyviko Wrote: [ -> ]
(28th Jan, 2016 01:24 PM)Nachteule Wrote: [ -> ]@suhm
If you are still interested in lz4 patch for kernel(s), here is this one we're using
https://github.com/xbianonpi/xbian-package-kernel/blob/master/patches/rpi/lz4.patch

Although patching the kernel sounds like a cool option it would be much appreciated if any member of the xbian community could share a patched 4.x kernel (x86_64) with lz4 support. IMHO the majority of the xbian userbase (like myself) doesn't have the knowledge or skills to recompile the kernel.

Lol, do you know how many linux distros exists Smile All distros are building their own kernel with their specific patches, so it is absolutely impossible to do what you like to have.

And btw, if you do not like LZ4 compression, you could set compression to lzo in file /boot/cmdline.txt (in first partition of sd card) after you flashed image and before you're booting RPi the first time.
(10th Jan, 2017 06:29 AM)Nachteule Wrote: [ -> ]
(10th Jan, 2017 02:11 AM)jyviko Wrote: [ -> ]
(28th Jan, 2016 01:24 PM)Nachteule Wrote: [ -> ]@suhm
If you are still interested in lz4 patch for kernel(s), here is this one we're using
https://github.com/xbianonpi/xbian-package-kernel/blob/master/patches/rpi/lz4.patch

Although patching the kernel sounds like a cool option it would be much appreciated if any member of the xbian community could share a patched 4.x kernel (x86_64) with lz4 support. IMHO the majority of the xbian userbase (like myself) doesn't have the knowledge or skills to recompile the kernel.

Lol, do you know how many linux distros exists Smile All distros are building their own kernel with their specific patches, so it is absolutely impossible to do what you like to have.

And btw, if you do not like LZ4 compression, you could set compression to lzo in file /boot/cmdline.txt (in first partition of sd card) after you flashed image and before you're booting RPi the first time.

Thanks Nachteule,
I have successfully patched the kernel and managed to mount the xbian partition.
Thx for the suggestions.

J<
Reference URL's