How to upgrade the firmware with GNU/Linux OS ?
 
Notifications
Clear all

How to upgrade the firmware with GNU/Linux OS ?  

  RSS
ghislain.f
(@ghislain-f)
New Member
How to upgrade the firmware with GNU/Linux OS ?

Hello,

I would like to upgrade the firmware (3.0.9 to 3.0.10) but i don't find information on how to this on http://www.prusa3d.com/drivers/

On http://shop.prusa3d.com/forum/original-prusa-i3-mk2-f23/firmware-3-0-10-just-released--t3343.html they are talking about this :

The octoprint way : seems easy to use, but you have to install it on a SD card.

The avrdude way :

In the post they are talking about this :
$ avrdude -c stk500v2 -b 115200 -p atmega2560 -v -P /dev/ttyACM0 -D -U 1_75mm_MK2-RAMBo13a-E3Dv6full.hex

The arduino IDE way :
cf. http://shop.prusa3d.com/forum/software-f13/options-to-update-firmware-as-a-hex-file-with-avrd-t433.html

I will try to investigate the avrdude way, that seems very quick.

Can someone confirm these steps please ?

1. Install avrdude :
For debian 8, the 6.1-2 version is available in the depots, just install it (sudo apt-get install avrdude)
2. Download on http://www.prusa3d.com/drivers/ the last firmware (ie : prusa3d_fw_X_X_XX.zip)
3. Personalize the above command :
$ avrdude -c stk500v2 -b 115200 -p atmega2560 -v -P /dev/ttyACM0 -D -U 1_75mm_MK2-RAMBo13a-E3Dv6full.hex
- For 1_75mm_MK2-RAMBo13a-E3Dv6full.hex, you to change to the latest .hex that you will found in fw_X_X_XX.zip.
3. Plug the USB cable from your computer to the Prusa i3 MK2, and turn on your printer.
4. Go in the folder where you have downloaded fw_X_X_XX.zip where there is the .hex files, and run as super user (root) the previous command that you have personalized.

5. If you've got an error message telling you that /dev/ttyACM0 is not available : avrdude: ser_open(): can't open device "/dev/ttyACM0": No such file or directory

5.1 Install arduino (sudo apt-get install arduino)
5.2 Launch it
5.3 Arduino will ask you to add the user to a group, clic Add, enter your password.
5.4 Close arduino, and restart your computer, and enter the command line of avrdude
5.5 Now you certainly will not have this problem of /dev/ttyACM0. If yes, launch arduino and check in Tools > Port série [need to translate] what is the correct number of your device (ie : could be /dev/ttyACM1)

6. If you've got this message error : avrdude: stk500v2_ReceiveMessage(): timeout
6.1 This could be because of the cable that you use is to long (2 meter included with Prusa i3). Use one shorter (ie 40cm) to don't have this problem.

[edit : I have edited the post and now it's working, I could update my firmware.]

Publié : 02/03/2017 2:22 pm
ghislain.f
(@ghislain-f)
New Member
Topic starter answered:
Re: How to upgrade the firmware with GNU/Linux OS ?

Update : there is also a lot of information on the comments of http://manual.prusa3d.com/Guide/Upgrading+firmware/66

Publié : 02/03/2017 2:31 pm
david.b14
(@david-b14)
Honorable Member
Re: How to upgrade the firmware with GNU/Linux OS ?

Don't forget about using the OctoPrint GUI method: http://shop.prusa3d.com/forum/original-prusa-i3-mk2-f23/octoprint-firmware-upgrades-t3460.html

Publié : 02/03/2017 6:46 pm
jangrewe
(@jangrewe)
Active Member
Re: How to upgrade the firmware with GNU/Linux OS ?

a) OctoPrint is the best thing since sliced bread (maybe even better)
b) the firmware update plugin for OctoPrint works flawless

Publié : 11/03/2017 10:15 pm
waino
(@waino)
Eminent Member
Re: How to upgrade the firmware with GNU/Linux OS ?

Can someone verify if the MK3 needs any changes for the firmware update using avrdude on linux ?

Octoprint might be nice, but not everybody has it setup and I feel it is strange that there are no updated/confirmed procedures for the linux platform & I3 MK3. If the MK2 avrdude command line parameters are correct for the MK3, it's just fine to mention that as well.

Publié : 20/01/2018 12:37 pm
waino
(@waino)
Eminent Member
Re: How to upgrade the firmware with GNU/Linux OS ?

Just completed a firmware downgrade using Octoprint and the avrdude command lines was the following on MK3:

/usr/bin/avrdude -v -p m2560 -c wiring -P /dev/ttyACM0 -U flash:w:/tmp/tmpFCixY0:i -D

The firmware downgrade was successfull. The used setup was Pi 3 connected via USB cable.

Publié : 27/01/2018 5:48 pm
frederic.g2
(@frederic-g2)
New Member
Re: How to upgrade the firmware with GNU/Linux OS ?

I can confirm that the above line works perfectly.

However, I strongly advise that you should backup the previous firmware with the following procedure :
#backup current firmware to before_upgrade.hex
avrdude -v -p m2560 -c wiring -P /dev/ttyACM0 -U flash:r:before_upgrade.hex:i -D
#flash new firmware
avrdude -v -p m2560 -c wiring -P /dev/ttyACM0 -U flash:w:prusa3d_fw_3_1_2.hex:i -D

This way, with the first command you can check that there is no error : if there is some, you'd better fix them before upgrading!
And in case anything goes wrong in the flash process, you can just restore the previous firmware (in my case, the stock firmware).

The above mentioned command where run on a Raspberry PI 1 running lots of other things without a glitch (a wifi dongle, an RFXComm and a MySensor module), so there is apparently no strong constraints on the power delivered by the USB port. Next step : dismount the electronic module and plug my RPi zero in it! 🙂

Publié : 04/03/2018 11:04 am
Partager :