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

Is there any way to save the modified flash back to the SD card before reflashing? #87

Open
jstockdale opened this issue Dec 8, 2024 · 4 comments
Labels
good first issue Good for newcomers question Further information is requested

Comments

@jstockdale
Copy link

I'm wondering if there's any way to persist the changes that have been made by the device. For instance I lose Meshtastic settings everytime I boot a different firmware.

Happy to help implement if I can be useful! :)

@bmorcelli
Copy link
Owner

You can... I didn't analyse the meshtastic firmware, but it would probably use SPIFFS to save data ..

You can go: CFG>Save SPIFFS

It will save a file in ./bkp/spiffs.bin

Then you can restore it in CFG>Rest SPIFFS> choose the file you have saved and select.

@bmorcelli bmorcelli added good first issue Good for newcomers question Further information is requested labels Dec 9, 2024
@jstockdale
Copy link
Author

Oh my goodness. That worked!! If I restore the flash first, then do Rest SPIFFS with the saved file, my configuration and settings are all restored.

If I put together a PR that lets you set configuration preferences for certain bins, so that you can auto-save and auto-restore the SPIFFS or FAT VFS data, would you be interested in the feature?

Awesome project. Thanks for making it! 👍 🙏 ✨

@bmorcelli
Copy link
Owner

It would, yes! Mashtastic and Bruce users would love this solution, even more if it could be downloaded in realtime within the webUi (some devices doesn't have sdcard)

@jstockdale
Copy link
Author

Sounds great. I will get to this later this month. Cheers! 😊✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants