Downloading current firmware binary file from Duet?
-
And on a related note: I have a 2nd Duet ... how do I make one Duet like the other? I thought I could just put all the files on one SD card on the other. But if one SD card is missing the firmware, then that will obviously not work.
-
Hi,
To the best of my knowledge the Duet does NOT run the firmware from the SD card.
To upgrade firmware you upload it to the SD card but then you have to issue a M997 command to do the actual update.
After that I think you can delete the .bin files from the SD card.
Frederick
-
I always upload via DWC, and I always assumed the uploaded files get put onto the SD card via DWC. Isn't it supposed to?
-
@jml said in Downloading current firmware binary file from Duet?:
I always upload via DWC, and I always assumed the uploaded files get put onto the SD card via DWC. Isn't it supposed to?
Yes the do. But my understanding is the placement of the files on the SD card is just the first step and you have to use the M997 to finishing installing the files where they actually reside.
As I recall after an upload it asks if you want to continue with the updating.
Frederick
-
@jml said in Downloading current firmware binary file from Duet?:
I always upload via DWC, and I always assumed the uploaded files get put onto the SD card via DWC. Isn't it supposed to?
No. The firmware gets written to non-volatile memory on the Duet board, not the SD card. So you can download the firmware to any location - the download folder on your PC, or the SD card or anywhere you want. Then you upload it from that location to the Duet.
-
Ok that makes sense. So in theory, the firmware (and the other bin files) don't actually need to be on the SD card ever at any point if everything is done through DWC.
And it seems like since that is the case, there is no way for me to just clone whatever is on one Duet and transfer it to my other Duet?
-
@jml said in Downloading current firmware binary file from Duet?:
Ok that makes sense. So in theory, the firmware (and the other bin files) don't actually need to be on the SD card ever at any point if everything is done through DWC.
And it seems like since that is the case, there is no way for me to just clone whatever is on one Duet and transfer it to my other Duet?
Well when you upload bin files via the DWC they are placed on the SD card so they can then be written to the non-volatile memory on the Duet board itself.
Once the are written to the board I have been deleting them from the SD card. So far that has not caused any problems.
Frederick
-
As others have said, when you upload firmware via DWC the .bin file is written to /sys on the SD card. Whether it remains there or not depends on which version of the IAP file you have in /sys (it's the iap4e.bin file for a Duet WiFi or Duet Ethernet). Older versions of IAP delete the binary after installing it. Newer versions leave it there.
-
@dc42 Ok, that clears up my confusion. I must have an older IAP version. Thanks! Will it mess things up if I keep this old IAP version?
-
Versions of iap4e.bin that pre-date the Duet Ethernet also assume that the filename of the main firmware binary is called DuetWiFiFirmware.bin. So uploading Duet2CombinedFirmware.bin won't work with them. Later IAP versions use the name of the binary file passed to them by the main firmware.