Build (and cross-compile) your own image for Raspberry Pi
Set of bash scripts for your Debian or Ubuntu Linux to create your own .img file for Raspberry Pi. Have your own image with YOUR content in minutes!
Initial script was taken from the [Klaus Maria Pfeiffer blog] (http://blog.kmp.or.at/2012/05/build-your-own-raspberry-pi-image/).
Original script was created to burn Debian Wheezy, my target is Raspbian, which is better for Raspberry Pi. You can read more about Raspbian (and its difference from stock Debian) at project page: http://raspbian.org Anyways... it is possible to create pure Debian Wheezy images as well.
It is possible to prepare environment on almost every Linux, where chroot, QEMU and debootstrap exists. I strictly recommend to install apt-cacher-ng (apt-get install apt-cacher-ng), that caches all downloaded deb packages and lets you to use deb_local_mirror, what's extreamely useful for further experiments, system won't download packages from internet anymore! [Read more about apt-cacher-ng] (https://www.unix-ag.uni-kl.de/~bloch/acng/html/config-servquick.html#config-client)
-
run install.sh to install the required applications
-
Run build_raspbian_sd_card.sh script, to write diretly to your SD card:
./build_raspbian_sd_card.sh /dev/sdX
OR to create IMG file
./build_raspbian_sd_card.sh
The resulting image will be placed in a folder named rpi within your build environment.