Skip to content

Instantly share code, notes, and snippets.

@nsenica
nsenica / init_rootfs.sh
Last active December 6, 2016 07:31 — forked from jeremyckahn/init_rootfs.sh
Setting up Raspbian rootfs on Ubuntu
#!/bin/bash
# For Ubuntu. Probably works elsewhere too.
# This script downloads the Raspbian file system into ~/rpi/chroot-raspbian-armhf
# It also chroots you into the directory, so you can act as a Raspbian user.
# This was all taken from here: http://superpiadventures.com/2012/07/development-environment/
mkdir -p ~/rpi
cd ~/rpi