Skip to content

Conversation

@DavHau
Copy link
Contributor

@DavHau DavHau commented Mar 24, 2025

This script uses ssh to copy a custom HDZGOGGLE binary to the goggles and replace the running process with it.

This allows for rapid testing of changes, as one doesn't have to put the file on a sdcard each time.

example usage:

Usage: ./utilities/ssh-deploy.sh <host> <HDZGOGGLE_binary>

It stops the running HDZGOGGLE process, uploads the new binary to /tmp and launches it.

The goggle fs remains unmodified and after a reboot everything is back to normal.

This script uses ssh to copy a custom HDZGOGGLE binary to the goggles and replace the running process with it.

This allows for rapid testing of changes, as one doesn't have to put the file on a sdcard each time.

example usage:
```
Usage: ./utilities/ssh-deploy.sh <host> <HDZGOGGLE_binary>
```

It stops the running HDZGOGGLE process, uploads the new binary to /tmp and launches it.

The goggle fs remains unmodified and after a reboot everything is back to normal.
@SumolX
Copy link
Contributor

SumolX commented Apr 4, 2025

don't forget that you can utilize /root/.ssh/authorized_keys so you don't need to type in your password each time.

@RaceMiata
Copy link

Great util!

I run into an issue with WiFi connection becoming stale so I can't ssh into it (including running the sh script again).

I have a fix in page_wifi.c:page_wifi_post_bootup_action() to force
page_wifi_bootup_pending

flag to be false if
page_wifi_get_real_address()

returns non-null.
That is, if there's already WiFi connection, then force the flag to false to force restarting WiFi app.

I also change /dev/null to /tmp/HDZGOGGLE.log in case I want log for HDZGOGGLE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants