-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent update from bricking goggle #495
base: main
Are you sure you want to change the base?
Conversation
Moved setting of gpio direction out of export condition to clear potentially conflicting prior states.
Moved setting of gpio direction out of export condition to clear potentially conflicting prior states.
attempted to test, but did not get results i expected. |
-fixed the .bin paths -count 1 VA update before removal of VA.bin -count 2 RX updates before removal of RX.bin -Added notes for normal VA / RX mount points
Needs testing on working goggle. |
Sorry @nerdCopter, |
To help test: Testing update_goggle.sh: Testing write_flashes.sh: Error beeps: |
Flashing PR495 @
Flashing
|
This PR changes both the update_goggle.sh and write_flashes.sh scripts to prevent writing a bin into an /dev/mtd8-10 of unexpected size.
Notes:
-prevents soft bricking of goggle VA or RXs
-needs formal testing on fully working goggles (neither of the RX in my goggle are currently mounting to /dev/mtd8/9)
-beeps a quick double chirp on success finding the expected size of each /dev/mtd*
-beeps two long and a chirp on failure to find the expected size /dev/mtd*
-does not automatically recover the google however commented lines in write_flashes can allow for easy recovery of erroneously flashed VA and RX.
To recover a broken VA or RX place these files on SD card to :
HDZGOGGLE_VA.bin # from Recovery if VA is failing (no video on goggle)
HDZGOGGLE_RX.bin # from Recovery if one or more RX are failing (two or four HDZero signal indicators stuck)
develop.sh # copy of write_flashes.sh and uncomment check_mtd_write for HDZGOGGLE_RX/HDZGOGGLE_VA as needed
Other SD card files that may help while trying to recover:
self_test.txt # empty file to dump diagnostic logging into
DONOTREMOVE.txt # empty file -write_flashes will leave .bin files on SD card. However, after goggle display returns remove the HDZGOGGLE_VA.bin file from SD card. When both HDZero RXs have been verified remove the HDZGOGGLE_RX.bin from SD card.