Cisco-Offensive-Summit / badge-2024

4 stars 2 forks source link

Get firmware image to a release state #6

Closed samaclea closed 7 months ago

samaclea commented 9 months ago
samaclea commented 9 months ago

Updater code works well when pulling from Github, and shouldn't be too hard to refactor to pull from a server we control if we need to.

As for getting our code on the badge with the initial firmware install so far we need 7 files:

samaclea commented 9 months ago

Test script lives in src/test_badge.py for now, but I will probably move it to tools later because I don't think we need to ship it with final badge code.

Script tests:

Script doesn't test:

samaclea commented 9 months ago

Swapped to firmware version 8.2.10 while debugging firmware, not sure if it had any affect but it's probably good form to use the stable branch and not beta.

I am now able to get files included on initial firmware write, I do this by modifying circuitpython/supervisor/shared/filesystem.c with the byte contents of files in firmware/init_files/. Doing this manually is laborious and annoying so I created the tools/py2fs.py script to do this for you. Instructions are here.

samaclea commented 9 months ago

Ooops still need to get info from @pmcknig1 on badge network stuff.

samaclea commented 7 months ago

Firmware hex was delivered successfully to the fab.