Seems to me... Every time your firmware is flashed or your epprom updated... We should auto backup the previous version. Just dump it to a folder with a date stamp.
This would guarantee you could roll back in the event of an accidental trashing of the eprom?
For example... Flashing your radio on a major release change that then formats your eprom!
Sent from my iPhone using Tapatalk
Backup. Backup backup..
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Backup. Backup backup..
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
-
- 9x Developer
- Posts: 1109
- Joined: Sat Dec 31, 2011 12:11 am
- Country: -
- Location: Massa (MS), Tuscany, Italy
Re: Backup. Backup backup..
When we write a firmware we use a eeprom version related to the firmware we are writing so we can rollback automagically,
but maybe there is still a point missing and we are trying to understand how to do it better.
The problem is the following: you have downloaded latest companion and you want to write to the radio but during write companion always uses by default latest firmware version.
This will end up in a wrong eeprom format on radio.
Then we have two possible alternatives,
1) read the flash on radio to understand firmware type and release and write in the proper format, but it will be time consuming as flash reading is not so fast
2) give the user a combobox to choose eeprom format, maybe proposing fw version numbers supporting it.
The second one maybe is the fastest one, must may lead to user mistakes, the first is safer but longer.
I'm open to suggestions and comments.
Romolo
PS about backups: after a firmware write (with backup and restore checked) you can always find a file called backup.bin in your OS temporary directory.
but maybe there is still a point missing and we are trying to understand how to do it better.
The problem is the following: you have downloaded latest companion and you want to write to the radio but during write companion always uses by default latest firmware version.
This will end up in a wrong eeprom format on radio.
Then we have two possible alternatives,
1) read the flash on radio to understand firmware type and release and write in the proper format, but it will be time consuming as flash reading is not so fast
2) give the user a combobox to choose eeprom format, maybe proposing fw version numbers supporting it.
The second one maybe is the fastest one, must may lead to user mistakes, the first is safer but longer.
I'm open to suggestions and comments.
Romolo
PS about backups: after a firmware write (with backup and restore checked) you can always find a file called backup.bin in your OS temporary directory.
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Backup. Backup backup..
I think a slower method is safer.
Also... Do a backup.datestamp.bin. As this will give you a better chance of restore if things go bad!
Sent from my iPhone using Tapatalk
Also... Do a backup.datestamp.bin. As this will give you a better chance of restore if things go bad!
Sent from my iPhone using Tapatalk
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
-
- 9x Developer
- Posts: 1109
- Joined: Sat Dec 31, 2011 12:11 am
- Country: -
- Location: Massa (MS), Tuscany, Italy
Re: Backup. Backup backup..
Choosing the same name was by design, to do not infest temporary dir with files that everybody forget to delete.
But obviously this design can be changed.
But obviously this design can be changed.
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Backup. Backup backup..
How about... A backup folder....
So... /backups/file name.date.bin
The auto delete older than 1 month. (but make that a config option)
Sent from my iPhone using Tapatalk
So... /backups/file name.date.bin
The auto delete older than 1 month. (but make that a config option)
Sent from my iPhone using Tapatalk
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: Backup. Backup backup..
Interesting ideas also here!
Bertrand.
Bertrand.
-
- 9x Developer
- Posts: 1109
- Joined: Sat Dec 31, 2011 12:11 am
- Country: -
- Location: Massa (MS), Tuscany, Italy
Re: Backup. Backup backup..
Implemented in SVN, you will be able to automatically do a backup before any write operation to the radio.
Two parameters have been added in preferences...
Two parameters have been added in preferences...
- Rob Thomson
- Site Admin
- Posts: 4543
- Joined: Tue Dec 27, 2011 11:34 am
- Country: United Kingdom
- Location: Albury, Guildford
- Contact:
Backup. Backup backup..
Nice!
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!