Skip to content
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

Compiling garadget firmware in 2025 #18

Open
Fohdeesha opened this issue Jan 7, 2025 · 1 comment
Open

Compiling garadget firmware in 2025 #18

Fohdeesha opened this issue Jan 7, 2025 · 1 comment

Comments

@Fohdeesha
Copy link

Fohdeesha commented Jan 7, 2025

I had a hell of a time figuring this out to deploy a couple garadget units with this open source firmware repo in 2024/2025 as a lot of the defaults of the particle cli / build parameters did not work with the older P1 unit the garadget is based off of. I documented the process for myself once I figured it out and figured it's worth sharing for anyone else out there. Let me know if you'd like this submitted as a PR with nice formatting, just let me know what repo/areas to add it to.

First you need to install particle cli tools: https://docs.particle.io/reference/developer-tools/cli/

Then download or clone the garadget firmware github repo, so you have a "firmware" folder somewhere containing the files of the repo.
open a cmd window in the directory holding the "firmware" folder, not inside the firmware folder
or cd to it if on linux
run the following to compile the firmware:

particle compile p1 firmware --saveTo garadget.bin -v --target 2.3.1

Now flash it:

# make sure the device is detected
particle usb list
# you should see something similar to the following:
<no name> [540048000551353532343835] (P1)

If you see your device, put it into DFU mode to start flashing:

particle usb dfu

(if the dfu command isn't getting it into dfu mode, do it manually by holding M button, click R, continue to hold M button until LED changes to blinking yellow)

Now flash everything:

particle flash --local [email protected]+lto.bin
particle usb dfu

particle flash --usb [email protected]

particle flash --usb [email protected]

particle flash --usb garadget.bin
particle usb reset

Now you can configure the unit with your WiFi and MQTT settings by following these steps:

Put your unit into listening mode: press and hold “M” button for about 3 seconds until LED starts
blinking dark blue.
Connect any WiFi enabled device to PHOTON-XXXX access point
Open http://192.168.0.1/ in the browser and (re-)configure WiFi connection and MQTT settings
Submit to save. The device will reconnect to your WiFi network.
This process can be repeated anytime if necessary. Internet connection is not required

@yeti7
Copy link
Contributor

yeti7 commented Jan 7, 2025

Thank you for publishing the current firmware build tutorial.
At this time I don't have availability to deal with PRs. My suggestion would be to publish a fork and organize it the way you see fit. Feel free to also reference your work in the community forum.

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

No branches or pull requests

2 participants