Prevent update from bricking goggle#495
Prevent update from bricking goggle#495ligenxxxx merged 7 commits intohd-zero:mainfrom pitts-mo:main
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
|
|
|
No conflicts require rebase and none of the recent commits appear directly related to analog (PR #493?). Regardless, I have sync/merged recent commits from master my branch. |
same as i did locally. i suppose i will retest when i am able. i may also test a rebase. will not be soon. |
|
edit : 2025-Mar-30: Flew HD , same commit/build -- no issues. |
|
as additional test, i put March release's _VA and _RX files onto SD and booted my running AFAICT, this is ready for merge @pitts-mo , @ligenxxxx |
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.