This will create a customized OS image for the Raspberry Pi based on Raspian Jessie Lite.
There are 3 "machines" you will be working with
- Host = Your computer
- Build Machine = Virtual Box machine
- Build = Simulated Raspberry Pi
- install virtualbox
- confirmed working on v5.0.14 (check with
vboxmanage --version
)
- confirmed working on v5.0.14 (check with
- install vagrant
- confirmed working on v1.8.1 (check with
vagrant --version
)
- confirmed working on v1.8.1 (check with
sudo apt-get install virtualbox
sudo apt-get install vagrant
brew install vagrant
brew cask install virtualbox
To create and start the Build Machine called pirateship-buildmachine
, simply:
git clone [email protected]:pirate-sh/pirateship-buildmachine.git
cd pirateship-buildmachine
./start.sh
- when done, you will be inside the Build Machine.
- typing
exit
will bring you back to the Host. To get back into the Build Machine runvagrant ssh -c onboot.sh
- typing
- to create the Build image, from inside the Build Machine in the directory
/vagrant
run./pirateship-image-creator --chroot
- when done you are in the pirateship Build
- If you stay inside the Build you can manually modify the image
exit
will bring you back to the Build Machine- you will now find your Build image inside the Build Machine at
/vagrant/temp
or in the Host attemp
- the git repository on the Host is mounted at
/vagrant
in the Build Machine