09.11.2012 Views

Contents - Raspberry PI Community Projects

Contents - Raspberry PI Community Projects

Contents - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

#optional#make ARCH=arm CROSS_COM<strong>PI</strong>LE=/usr/bin/arm-unknown-linux-gnueabi- menuconfig<br />

make ARCH=arm CROSS_COM<strong>PI</strong>LE=/usr/bin/arm-unknown-linux-gnueabi- -k<br />

crossdev should create a cross-toolchain using the latest stable versions of the required<br />

packages. If it fails, you can specify exact versions by removing the "-S" flag and adding<br />

the "--b", "--g", "--k" and "--l" flags.<br />

On 2012-05-06, cross -S -v -A gnueabi arm works just fine<br />

Arch Linux<br />

pacman -S git<br />

yaourt -S arm-linux-gnueabi-gcc<br />

cd /opt<br />

mkdir raspberrypi<br />

cd raspberrypi<br />

git clone git://github.com/raspberrypi/linux.git<br />

cd linux<br />

cp arch/arm/configs/bcmrpi_cutdown_defconfig .config<br />

make ARCH=arm CROSS_COM<strong>PI</strong>LE=/usr/bin/arm-linux-gnueabi- oldconfig<br />

#optional#make ARCH=arm CROSS_COM<strong>PI</strong>LE=/usr/bin/arm-linux-gnueabi- menuconfig<br />

make ARCH=arm CROSS_COM<strong>PI</strong>LE=/usr/bin/arm-linux-gnueabi- -k<br />

OS X<br />

The Kernel source requires a case-sensitive filesystem. If you do not have a HFS+ Casesensitive<br />

partition that can be used, create a disk image with the appropriate format.<br />

Ensure latest Xcode and command line tools are installed from Apple Developer<br />

Connection (http://developer.apple.com/downloads)<br />

Macports<br />

Install macports (http://guide.macports.org/#installing)<br />

port install arm-none-eabi-gcc<br />

port install arm-none-eabi-binutils<br />

cd /opt<br />

mkdir raspberrypi<br />

cd raspberrypi<br />

git clone git://github.com/raspberrypi/linux.git<br />

cd linux<br />

cp arch/arm/configs/bcmrpi_cutdown_defconfig .config<br />

make ARCH=arm CROSS_COM<strong>PI</strong>LE=/opt/local/bin/arm-none-eabi- oldconfig<br />

make ARCH=arm CROSS_COM<strong>PI</strong>LE=/opt/local/bin/arm-none-eabi- -k<br />

If you get an error message that elf.h is missing<br />

sudo port install libelf && sudo ln -s /opt/local/include/libelf /usr/include/libelf

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!