Created
July 24, 2012 04:32
-
-
Save jeremyckahn/3168055 to your computer and use it in GitHub Desktop.
A script to build the Raspberry Pi kernel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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