Created
August 23, 2012 07:40
-
-
Save chattama/3433882 to your computer and use it in GitHub Desktop.
raspberry pi cross compile (setup)
This file contains 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
sudo aptitude install python-software-properties bison flex texinfo libtool automake libncurses5-dev git subversion gcc gcc-4.6 g++ g++-4.6 make gperf gawk | |
sudo add-apt-repository ppa:linaro-maintainers/toolchain | |
sudo aptitude update | |
============================================================== | |
mkdir ~/raspi | |
mkdir ~/raspi/cross | |
cd ~/raspi | |
wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.16.0.tar.bz2 | |
wget -O .config.tar.gz http://www.raspberrypi.org/phpBB3/download/file.php?id=589 | |
bzip2 -cd crosstool-ng-1.16.0.tar.bz2 | tar xf - | |
cd crosstool-ng-1.16.0 | |
./configure --prefix=/opt/cross | |
make | |
sudo make install | |
sudo chmod 777 /opt/cross | |
cd ~/raspi/cross | |
gzip -cd ../.config.tar.gz | tar xf - | |
ct-ng menuconfig | |
>> Operating System ---> | |
Linux kernel version (3.2.25) | |
ct-ng build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment