-
Notifications
You must be signed in to change notification settings - Fork 0
Home
As this does require a fair amount of CPU, RAM, and IOPS, the fastest way (for me) ended up being building a local VM on my desktop machine (16 core, 32gb RAM, SSD) and using that VM to build piscore.
- 4 Cores
- 8GB RAM
- 80GB HDD
Install Debian 9.5 and install git (and probably vim, and anything else you need)
Don't clone this into /root - We use apache and symlinks to make it easy to copy the created images to your test machine. Clone it into /usr/local
git clone [email protected]:rollerderby/pi-gen.git /usr/local/pi-gen
Run the setup.sh script in /usr/local/pi-gen, which should install everything required for building. It also installs and enables apache2, and creates a symlink from http://hostname/pi to the 'work' directory
cd /usr/local/pi-gen
./setup.sh
Run build.sh and wait. That will build EVERYTHING, and you'll come back and mess with it later.
You can test the image you've build with QEMU on your desktop machine (whatever OS it may be) - See https://github.com/rollerderby/pi-test for instructions on setting up a virtual environment
Browse to http://builder/pi/ and there will be a directory called YYYY-MM-DD-piscore. Go into that directory, and then go into 'export-image' and copy the link to YYYY-MM-DD-piscore-4GB.img. Use wget or curl to download the image to the machine you're running QEMU on (or, to the machine you are going to use to burn it to a SD card)
Follow the instructions in https://github.com/rollerderby/pi-test to test the img in a VM. It will look something like this when starting: