Author Topic: flashing firmware from a mac?  (Read 2035 times)

Ryan

  • Team member
  • *
  • Posts: 26
    • View Profile
flashing firmware from a mac?
« on: February 04, 2012, 05:46:23 PM »
So I finally got the board put together and it looks great! My solder skills are also a bit crap though haha.
Since I sourced most of my own parts I don't have the pre-flashed maple mini. Has anyone tried getting the firmware on the board from a mac yet? I see on the leaf labs site that I can DL the IDE, but I'm not sure that's what I need really.

I have access to a PC at the school I work at, but that means I have to wait until Wednesday to flash it. :)

Cheers!

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 1286
    • View Profile
Re: flashing firmware from a mac?
« Reply #1 on: February 04, 2012, 08:26:28 PM »
You only need to have dfu-util installed.
Look inside the PreenFM*.cmd file what is the exact calling syntax...

I've never done it with a mac though.  ;)

Let me know...

xavier

Ryan

  • Team member
  • *
  • Posts: 26
    • View Profile
Re: flashing firmware from a mac?
« Reply #2 on: February 04, 2012, 09:48:48 PM »
ah ok sweet. that's exactly what I needed.

Here's the link for any future mac users. http://www.handheld-linux.com/wiki.php?page=Openmoko%20Flasher

Even has a nice GUI ;)

I'll post my results in the morning. Time to make a baby go to sleep :D

Ryan

  • Team member
  • *
  • Posts: 26
    • View Profile
Re: flashing firmware from a mac?
« Reply #3 on: February 07, 2012, 09:35:43 PM »
Ok so turns out that was a red herring. I did find a way to install dfu-util, but doing so required X-Code to be installed (which in turn requires a $100 apple dev license). LAME. So I just set up a windows virtual machine on VMWare and that did the trick. :p Suck it Steve. In the end I did get it flashed and everything looks great! I say looks, because the dood at the electronics shop missed the din5 and audio jack on the BOM last week.  8) Gotta go pick those up tomorrow.

Next stop is setting up a linux machine so I can play around with building and modifying the code base. :) I'd love to contribute to the project somehow, although I expect most of the programming to be way out of my league haha. Maybe with some enclosure enhancements though. :D

If anyone gets the firmware flash from OSX figured out I'd love to hear about it here.
« Last Edit: February 07, 2012, 09:37:40 PM by Ryan »

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 1286
    • View Profile
Re: flashing firmware from a mac?
« Reply #4 on: February 09, 2012, 11:12:35 AM »

Installing Linux will also allow you to upload your firmware easily...  ;)

Let me know when you set up you dev environment....

Xavier

6581punk

  • Team Member
  • ***
  • Posts: 110
    • View Profile
Re: flashing firmware from a mac?
« Reply #5 on: June 03, 2012, 06:21:24 PM »
XCode is free. Just download it from App Store.

That OpenMoko flasher works. You just call it's dfu-util from the command line. eg:

>OpenMoko\ Flasher.app/Contents/MacOS/dfu-util -a1 -d 0x1EAF:0x0003 -D PreenFM_R3_v1.71.bin -R

Works for me.

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 1286
    • View Profile
Re: flashing firmware from a mac?
« Reply #6 on: June 03, 2012, 10:52:32 PM »

Thanks... good to know, i received emails asking if it was possible to update the firmware from a mac.
No i can answer yes and point to this thread.  :D

Xavier

6581punk

  • Team Member
  • ***
  • Posts: 110
    • View Profile
Re: flashing firmware from a mac?
« Reply #7 on: June 04, 2012, 02:09:22 PM »
Syntax isn't 100% correct, being a Unix style OS you have to point to the location of the app.

So if it is in the current directory you use this:

./OpenMoko\ Flasher.app/Contents/MacOS/dfu-util -a1 -d 0x1EAF:0x0003 -D PreenFM_R3_v1.71.bin -R


Or if you have the app in the applications folder:

/Applications/OpenMoko\ Flasher.app/Contents/MacOS/dfu-util -a1 -d 0x1EAF:0x0003 -D PreenFM_R3_v1.71.bin -R