install_packages.sh - Align with latest ArchLinux build
- Exit on error - Do additional steps for getting around with gpg keys
|11 months ago|
|chroot||11 months ago|
|config||4 years ago|
|helpers||4 years ago|
|packages||2 years ago|
|.gitignore||4 years ago|
|CHANGELOG.md||4 years ago|
|CHECKLIST.md||4 years ago|
|Makefile||11 months ago|
|README.md||11 months ago|
|TODO.md||4 years ago|
|build_all.sh||11 months ago|
This repository contains tools to create a 4GB SD card image based upon latest arch sources including all dependencies for PirateBox.
To create an image you will need to have the following tools available on your system:
On Debian based systems simply run:
sudo apt-get install pv qemu-system-arm qemu-user-static zip
Running make will acquire all dependencies, install PirateBox and package the image for distribution:
By default this target builds the image for the RPi 1 to build the image for RPi 2 simply pass the ARCH variable:
There is a script in place that will build the images for RPi 1 and RPi 2, simply invoke:
The resulting zip files are stored in a freshly created folder “images”.
To zip the image simply invoke the dist target:
The versioning scheme of the image is like so:
Each parameter is described below.
You can pass different parameters to the build script, lets describe them briefly.
May be rpi or rpi2, defaults to rpi.
Number of the build. Leave empty for a date stamp. Defaults to date stamp
Used piratebox version in format x.y.z, defaults to devBuild
May be piratebox or librarybox, defaults to piratebox
The branch of pirtebox-ws used, defaults to master.
To access the image via chroot simply mount the image by invoking
In case you need network access within the chroot mount proc to the mounted image:
sudo mount -t proc proc /mount/root/proc/
Then chroot into the environment:
sudo chroot /mount/root/
Do not forget to unmount the image when you are done:
After the image is build it may be run in QEMU by invoking the helper script:
cd qemu-arm-rpi ./rpi.sh /path/to/piratebox.img
This only works with the RPi 1 image.
To dump the raw image to an SD card run:
sudo dd if=piratebox-rpi.img bs=2048 | pv | sudo dd of=/dev/mmcblk0 bs=2048 sync
There are only two images needed to support all different Raspberry Pi boards.
Big shout outs to all the people helping with testing (in alphabetical order):