This README file contains information on configuring and building a Linux distribution for the Raspberry Pi 2
In your Ubuntu machine or VM terminal:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install build-essential gettext bison libfile-slurp-perl gawk libncurses-dev autoconf flex doxygen libtool automake libpcre3-dev zlib1g-dev libbz2-dev subversion minicom putty libssl-dev rpm python-pexpect python-svn python-argparse vim tofrodos meld dos2unix cmake uuid-dev ruby transfig libglib2.0-dev xutils-dev lynx-cur gperf autopoint python-dulwich python-dev curl vim diffstat texinfo chrpath openjdk-7-jre sed wget cvs git-core coreutils unzip texi2html libsdl1.2-dev docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev mercurial groff tree
sudo dpkg-reconfigure dash ### select 'no'
git clone -b fido git://git.yoctoproject.org/poky.git
cd poky
git clone -b fido git://git.openembedded.org/meta-openembedded.git
git clone git://git.yoctoproject.org/meta-raspberrypi.git
git clone https://github.com/leon-anavi/meta-weston-rpi.git
git clone https://github.com/s-maynard/meta-raspi2-example.git
echo "TEMPLATECONF=${TEMPLATECONF:-meta-raspi2-example/conf}" > .templateconf
source oe-init-build-env
bitbake example-image
- The boot splashscreen is located in recipes-core/psplash. To modify the image, replace psplash-img.png
- The IP address information printed above the login prompt is controlled by the scripts in recipes-extra/info
- The user creation on first boot is controlled by the scripts in recipes-extra/setup
- Build information will be stored on the image root filesystem in /etc/build.
- from the VM on the mac:
sudo cp tmp/deploy/images/raspberrypi2/example-raspberrypi2.rpi-sdimg /media/sf_shared/ - from the terminal on the mac (after the sdcard has been inserted):
make sure your sdcard is disk2!
sudo diskutil list
sudo diskutil unmountDisk /dev/disk2
sudo dd if=/Users/smaynard/shared/example-raspberrypi2.rpi-sdimg of=/dev/rdisk2 bs=4m
sudo diskutil unmountDisk /dev/disk2