raspberry pi deployment scripts
You can edit this script to download whatever firmware version needed, the one in the script is verified to work.
- make sure your software is updated:
sudo apt update && sudo apt upgrade
- run the following script to create a new firmware image that supports PXE booting:
sh rpimakefirmware.sh
- run
sh firmwaredeploy.sh
- write down the 8 characters the script tells you to take note of(important later)
- it might be wise to write on a piece of electrical tape and put on the pi.
- shut down the pi
sudo shutdown now
- remove the SD-card, no need for that anymore.
Congrats, the firmware on the pi should be ready for network boot, now proceed with the following steps below to be ready to deploy.
-
run
sh addpi.sh 11223344
where the number will be the one that was provided in the previous step.- for example:
sh addpi.sh 2f934686
- This will create the boot directories the pi needs to be able to boot up.
- Plug in power and networking, remember to double-check you removed the SD-card.
- for example: