You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
7 days ago | |
---|---|---|
betrusted-scripts@79a1ffadec | 3 weeks ago | |
ci | 1 month ago | |
fomu-flash@e5eb5dab61 | 2 years ago | |
jtagspi | 2 years ago | |
precursors | 1 month ago | |
tests | 2 weeks ago | |
.gitignore | 8 months ago | |
.gitmodules | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 10 months ago | |
adc128.py | 2 years ago | |
audio.sh | 2 years ago | |
bsim.sh | 2 years ago | |
factory-firmware.py | 7 days ago | |
gpiodefs.py | 2 years ago | |
hat-test.py | 6 years ago | |
newify.sh | 1 year ago | |
oled-off.py | 10 months ago | |
scriptminder-hat.py | 2 years ago | |
scriptminder.py | 2 years ago |
README.md
Bootstrap Mainboard
A collection of scripts to bootstrap a factory-new or bricked Precursor.
Also includes factory test scripts, to be run on the factory test jig.
Dependencies
These scripts are assumed to be run on a Raspberry Pi with a RaspiOS "buster" image (initially tested against Jan 11 2021 release on a Pi 3B+). Compatibility is not guaranteed for a Pi 4, but it "should" work.
Most of the dependencies are cloned in as submodules, but for select applications you may want to install more:
- GDB debugging and USB updates: wishbone-utils.
Requires Rust to build, but you should also be able to get the pre-built
Releases to work for GDB debugging (but not USB updates).
Note: you can also plug the USB-C port directly into your host, in which case you would
need the
wishbone-utils
on your host, not the Rpi with debug HAT. x86-hostedwishbone-utils
is actually the more typical use case. - Factory test:
pip3 install luma.oled
-- Luma OLED. Generally, you don't want to run the factory test, as you don't have the rather expensive accompanying PCB with all the sensors and adapters to make it work.pip3 install pexpect
pip3 install psutil
-- for the scriptminder.py routineraspi-config
-- enable serial port (and disable login shell on it), SPI, I2C.