Skip to content

Instantly share code, notes, and snippets.

@0x715C
Created December 10, 2017 23:33
Show Gist options
  • Save 0x715C/4389fc1e68431dc2b7533b7ac573c44b to your computer and use it in GitHub Desktop.
Save 0x715C/4389fc1e68431dc2b7533b7ac573c44b to your computer and use it in GitHub Desktop.
This script will download bcache kernel tree and deblob using fsfla scripts.
#!bin/bash
#WARNING - This script is not finished, DO NOT EXECUTE. This may serve as a guide for deblobbing bcache kernel.
exit 1
git clone https://evilpiepirate.org/git/bcachefs.git
cd bcachefs
kver=$(make kernelversion)
mkdir ../deblob
wget -o ../deblob/deblob-$kver https://linux-libre.fsfla.org/pub/linux-libre/releases/LATEST-$kver/deblob-$kver
wget -o ../deblob/deblob-check https://linux-libre.fsfla.org/pub/linux-libre/releases/LATEST-$kver/deblob-check
chmod u+x ../deblob/deblob-*
../deblob/deblob-$kver
zcat /proc/config.gz > .config
make menuconfig
make -j(your cores +1 ?)
#install to your boot part and update your bootloader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment