Skip to content

Instantly share code, notes, and snippets.

@sirhopcount
Forked from jeremyckahn/build_rpi_kernel.sh
Last active August 29, 2015 14:21
Show Gist options
  • Save sirhopcount/fb4ff311958b620b9815 to your computer and use it in GitHub Desktop.
Save sirhopcount/fb4ff311958b620b9815 to your computer and use it in GitHub Desktop.
#!/bin/bash
# For Ubuntu.
# Cobbled together from:
# http://elinux.org/RPi_Kernel_Compilation
# http://mitchtech.net/raspberry-pi-kernel-compile/
# Assumes you already have https://github.com/raspberrypi/linux cloned at ~/rpi
cd ~/rpi/linux
# Get some packages
sudo apt-get install gcc-arm-linux-gnueabi make ncurses-dev
# Configure the kernel
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- bcmrpi_cutdown_defconfig
# Then build the kernel.
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- -k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment