- Create CentOS 7 VM with internet access and no user (just root).
- In the Setup, make sure ethernet is set to ON
- Get the buildscripts onto the VM in a way of your choosing (SFTP, Filezilla, etc)
- Setup a Git token
- Go to Github
- Go to Settings > Developer Settings > Personal Access Tokens
- Click "Generate a New Token" and enter your password again
- Set a description/name for it, check the "repo" permission and hit the "Generate token" button at the bottom of the page.
- Copy your new token before you leave the page
- Create a new file on your VM:
/root/.GITHUBTOKEN
- Paste the token and save
- Run setup.sh to install dependencies.
- Pass through serial USB device to the VM.
- Run flash.sh with appropriate parameters. This will clone, compile, then flash the partition.
From fresh CentOS:
cd /buildscripts
/bin/bash setup.sh
To flash bootloader:
cd /buildscripts
/bin/bash flash.sh [bootloader, partitiontable, updater, firmware] [path_to_bootloader.bin]