Author Topic: How to: upgrading firmware on Mac OS X (update/upgrade)  (Read 13221 times)

Offline matt

  • Junior Retrode
  • **
  • Posts: 49
  • Karma: +1/-0
    • gingerbeardman
Hi,

Here is a "How to" guide for updating Retrode Firmware on OS X.

I had to compile dfu-programmer myself, but am supplying a download here to make this easier for others.

Hopefully this is useful for other Mac users.

Cheers,
matt

-- 

Overview:
Please read this first! http://www.retrode.org/documentation/firmware/

Requirements for OS X:
1. libusb library
2. dfu-programmer binary

Downloads:
libusb installer: http://www.ellert.se/twain-sane/ (make sure to select the correct one for your version of OS X)
dfu-programmer: http://dl.dropbox.com/u/3303838/dfu-programmer-mac-os-x.zip (version 0.5.2, compiled by myself)

New easier instructions are in this post: http://forum.retrode.org/index.php/topic,53.msg659.html#msg659

Instructions:
1. Run the libusb installer, confirm success
2. Unzip dfu-programmer to same directory as your firmware.hex
3. Backup your retrode.cfg
4. Put your Retrode in firmware update mode: hold down the upper button (HWB), press and release the lower button (RESET), let go of the upper button (HWB).
5. Check in System Information app, USB section for "Application Specific Device", vendor ID 0x03eb  (Atmel Corporation)
6. Open Terminal and issue the following series of commands...

Terminal:
1. change to path of firmware and dfu-programmer
Code: [Select]
$ cd /firmware/path/
$ ls
Expected results should be similar to:
Quote
Retrode2-v0.17d.hex   dfu-programmer      readme.txt

2. confirm retrode is connected in firmware update mode
Code: [Select]
$ ./dfu-programmer at90usb646 get product-revisionExpected results should be similar to:
Quote
Product Revision: 0x82 (130)

3. erase firmware on retrode
Code: [Select]
$ ./dfu-programmer at90usb646 eraseThis should return to the prompt with no output in a few seconds

4. flash new firmware
Code: [Select]
$ ./dfu-programmer at90usb646 flash firmware.hexExpected results should be similar to:
Quote
Validating...
38642 bytes used (67.39%)

Finishing up:
1. Press the lower button (RESET)
2. The Retrode drive should appear on the Desktop
3. Confirm the new firmware by checking the version number in retrode.cfg
4. Enjoy the new firmware features!
« Last Edit: 16/Jul/2012 01:02:05 PM by matt »

Offline mrjr

  • Baby Retrode
  • *
  • Posts: 1
  • Karma: +0/-0
Re: How to: upgrading firmware on OS X
« Reply #1 on: 19/Mar/2012 04:56:42 PM »
Oh wow. Thank you so much for posting this. Especially the compiled dfu–programmer. I wasn't looking forward to doing that myself. I got my Retrode a few days ago and wanted to try the latest beta firmware. Probably do that tonight.

Offline matt

  • Junior Retrode
  • **
  • Posts: 49
  • Karma: +1/-0
    • gingerbeardman
Re: How to: upgrading firmware on OS X
« Reply #2 on: 19/Mar/2012 05:18:49 PM »
You're welcome

Offline matt

  • Junior Retrode
  • **
  • Posts: 49
  • Karma: +1/-0
    • gingerbeardman
Re: How to: upgrading firmware on OS X
« Reply #3 on: 24/May/2012 02:42:03 PM »
I've just updated http://dl.dropbox.com/u/3303838/dfu-programmer-mac-os-x.zip

It now includes a shell script for easy updating.

Steps for flashing Retrode are now greatly simplified.
libusb installer will still need to be installed.

1. Unzip dfu-programmer-mac-os-x.zip and your new retrode firmware to the same directory.

2. Terminal
Code: [Select]
$ cd /your/unzip/path/here/
$ ./upgrade.sh

3. Follow the prompts...

For those interested, the script contents is at: http://pastebin.com/AjeBVvSN

Thoughts appreciated as to whether I should update the first post with this new, easier method.

Thanks,
matt
« Last Edit: 24/May/2012 02:46:18 PM by matt »

Offline Wally

  • Baby Retrode
  • *
  • Posts: 2
  • Karma: +0/-0
Re: How to: upgrading firmware on Mac OS X
« Reply #4 on: 07/Jul/2012 12:27:33 AM »
Oh I just posted an update lol..

Its easier to install this stuff via homebrew ;)

Offline matt

  • Junior Retrode
  • **
  • Posts: 49
  • Karma: +1/-0
    • gingerbeardman
Re: How to: upgrading firmware on Mac OS X
« Reply #5 on: 07/Jul/2012 11:26:32 AM »
I don't use homebrew, but thanks. Good to see there's an alternative.

Personally I prefer to simply copy an app, rather than install a package manager and then install a package from the command line.
« Last Edit: 07/Jul/2012 06:01:37 PM by matt »