09.11.2012 Views

Contents - Raspberry PI Community Projects

Contents - Raspberry PI Community Projects

Contents - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

From a foreign machine<br />

Firmware<br />

cd /opt<br />

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

cd firmware/boot<br />

scp arm128_start.elf arm192_start.elf arm224_start.elf bootcode.bin loader.bin start.elf @:/boot/<br />

After the first time:<br />

cd /opt/firmware<br />

git pull<br />

cd boot<br />

scp arm128_start.elf arm192_start.elf arm224_start.elf bootcode.bin loader.bin start.elf @:/boot/<br />

Kernel cross compilation<br />

You can use the "-j" flag to improve compilation time. If you have a dual core machine<br />

you can use "-j 3", for a quad core machine you can use "-j 6", and so on. Also if your<br />

trying to rebuild an existing kernel, the proper .config file can be obtained from the<br />

raspberry pi using zcat /proc/config.gz > .config<br />

Ubuntu<br />

apt-get install git gcc-arm-linux-gnueabi make ncurses-dev<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 />

Gentoo Linux<br />

crossdev -S -v -t arm-unknown-linux-gnueabi<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-unknown-linux-gnueabi- oldconfig

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

Saved successfully!

Ooh no, something went wrong!