Skip to content

Instantly share code, notes, and snippets.

@denji
Created April 2, 2013 13:37
Show Gist options
  • Save denji/5292255 to your computer and use it in GitHub Desktop.
Save denji/5292255 to your computer and use it in GitHub Desktop.
Build Linux Kernel
apt-get install build-essential
git clone http://evilpiepirate.org/git/linux-bcache.git
git checkout origin/bcache-3.2
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
git checkout v3.2.28
diff -Nru -x .git ./linux-stable/ ./linux-bcache/ > bcache.patch
patch -p1 < /usr/src/bcache.patch
cp /boot/config-3.2.0-0.bpo.4-amd64 /usr/src/fafafa/linux-3.2.33/.config
echo CONFIG_BCACHE=y >> .config
make-kpkg --jobs 32 --initrd kernel_image
apt-get install libblkid-dev
git clone http://evilpiepirate.org/git/bcache-tools.git
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment