News:

Welcome to the Retrode Community Forums

Main Menu

How to: upgrading firmware on Mac OS X (update/upgrade)

Started by matt, 29/Feb/2012 02:17:45 PM

Previous topic - Next topic

matt

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
$ cd /firmware/path/
$ ls

Expected results should be similar to:
QuoteRetrode2-v0.17d.hex   dfu-programmer      readme.txt

2. confirm retrode is connected in firmware update mode
$ ./dfu-programmer at90usb646 get product-revision
Expected results should be similar to:
QuoteProduct Revision: 0x82 (130)

3. erase firmware on retrode
$ ./dfu-programmer at90usb646 erase
This should return to the prompt with no output in a few seconds

4. flash new firmware
$ ./dfu-programmer at90usb646 flash firmware.hex
Expected results should be similar to:
QuoteValidating...
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!

mrjr

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.

matt


matt

#3
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
$ 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

Wally

Oh I just posted an update lol..

Its easier to install this stuff via homebrew ;)

matt

#5
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.