Backup. Backup backup..

A fork of eePe. It's aim is to provide one tool that works with ALL firmwares!
Post Reply
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Backup. Backup backup..

Post by Rob Thomson »

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
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!

Romolo
9x Developer
Posts: 1109
Joined: Sat Dec 31, 2011 12:11 am
Country: -
Location: Massa (MS), Tuscany, Italy

Re: Backup. Backup backup..

Post by Romolo »

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.
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Backup. Backup backup..

Post by Rob Thomson »

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
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!
Romolo
9x Developer
Posts: 1109
Joined: Sat Dec 31, 2011 12:11 am
Country: -
Location: Massa (MS), Tuscany, Italy

Re: Backup. Backup backup..

Post by Romolo »

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.
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Backup. Backup backup..

Post by Rob Thomson »

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
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!

bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: Backup. Backup backup..

Post by bertrand35 »

Interesting ideas also here!
Bertrand.
Romolo
9x Developer
Posts: 1109
Joined: Sat Dec 31, 2011 12:11 am
Country: -
Location: Massa (MS), Tuscany, Italy

Re: Backup. Backup backup..

Post by Romolo »

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...
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Backup. Backup backup..

Post by Rob Thomson »

Nice!


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!

Post Reply

Return to “companion9x”