X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/049c632d3e54ecc069f4c7cf3928aed319b9a7e0..ebfb53b51b789a038b3157fc273aaf96559b76c4:/blog/archive/2013/10/index.html diff --git a/blog/archive/2013/10/index.html b/blog/archive/2013/10/index.html index 9a2df1e234..b84631e63c 100644 --- a/blog/archive/2013/10/index.html +++ b/blog/archive/2013/10/index.html @@ -36,17 +36,19 @@ create a image file, add a partition table, mount it and run debootstrap in the mounted directory to create a Debian system on a stick. Yesterday, I decided to try to teach it how to make images for Raspberry Pi, as part -of a plan to simplify the build system for the FreedomBox project. -The FreedomBox project already uses vmdebootstrap for the virtualbox -images, but its home made multistrap based system for Dreamplug -images, and it is lacking support for Raspberry Pi.

+of a plan to simplify the build system for +the FreedomBox +project. The FreedomBox project already uses vmdebootstrap for +the virtualbox images, but its current build system made multistrap +based system for Dreamplug images, and it is lacking support for +Raspberry Pi.

Armed with the knowledge on how to build "foreign" (aka non-native architecture) chroots for Raspberry Pi, I dived into the vmdebootstrap code and adjusted it to be able to build armel images on my amd64 Debian laptop. I ended up giving vmdebootstrap five new options, allowing me to replicate the image creation process I use to make -Debian +Debian Jessie based mesh node images for the Raspberry Pi. First, the --foreign /path/to/binfm_handler option tell vmdebootstrap to call debootstrap with --foreign and to copy the handler into the @@ -76,7 +78,7 @@ list:

set -e # Exit on first error rootdir="$1" cd "$rootdir" -cat < etc/apt/sources.list +cat <<EOF > etc/apt/sources.list deb http://http.debian.net/debian/ jessie main contrib non-free EOF # Install non-free binary blob needed to boot Raspberry Pi. This @@ -578,6 +580,50 @@ me know. :)

Archive