Author Topic: [Fixed] Flashing the Bootloader in a Mac with Mavericks  (Read 47725 times)

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2259
    • View Profile
Re: Flashing the Bootloader in a Mac with Mavericks
« Reply #15 on: January 03, 2014, 06:33:18 PM »

Oh yeah !!!!!  ;D




Mesmerised

  • Team member
  • *
  • Posts: 12
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #16 on: January 03, 2014, 06:50:50 PM »
Hmmm... Tried the brew method. Obviously you have to have Xcode installed for it to work, though.
Will try that. (I'm on 10.6.8 hop that works)

Mesmerised

  • Team member
  • *
  • Posts: 12
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #17 on: January 03, 2014, 11:45:46 PM »
Yep - success! Worked for me too. After installing Xcode 3.2.6 and fiddling with the commands it finally worked. Thanks! :-)

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2259
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #18 on: January 04, 2014, 10:49:15 AM »
Yep - success! Worked for me too. After installing Xcode 3.2.6 and fiddling with the commands it finally worked. Thanks! :-)

Great..  :)
Thanks for the feedback... I have no idea why xcode is required.
Do you remember the result of "dfu-util -l" before installing xcode ?

Mesmerised

  • Team member
  • *
  • Posts: 12
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #19 on: January 04, 2014, 01:31:05 PM »
Quote
Do you remember the result of "dfu-util -l" before installing xcode ?
Yes: command not found - the installation of dfu-util failed before xcode.

elektrosamplist

  • Team member
  • *
  • Posts: 2
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #20 on: January 06, 2014, 04:07:40 PM »
@Xavier: XCode is needed (or at least the command line tools on 10.7 and up) because brew actually compile dfu-util and libusb.
No tools, no gcc, no compilation ;)

For my own synth, I am writing a script that won't need xcode or command line tools but will provide pre-compiled dfu-util and libusb.
Script is working on my 10.8 machine. Well, the script should work for all Intel Macs, but my precompiled dfu-util won't. It doesn't work on 10.6.
I think it will work on 10.7 and 10.9 but I do not have a computer with those OS to test it.

If some are willing to test the precompiled dfu-util, draw me a line, I will send files (basic Terminal skills required for this test tho).

EDIT: No Terminal skills required for the test. If you know how to double click a file you have enough skills ;)
« Last Edit: January 06, 2014, 04:14:55 PM by elektrosamplist »

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2259
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #21 on: January 07, 2014, 11:47:00 AM »

Thanks Samuel for jumping in and for the information  ;)

elektrosamplist

  • Team member
  • *
  • Posts: 2
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #22 on: January 08, 2014, 11:04:51 AM »
I think I have something working for OSX 10.6.8 up to 10.9  :)

squirts

  • Team member
  • *
  • Posts: 25
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #23 on: February 03, 2014, 11:34:54 PM »
Hi Xavier new owner of a preenfm2 with bootloader 1.02... and still failing despite reading the above instructions. I've cd into the build folder in my downloads, installed xcode previously, but i'm getting this:

alexs-imac-70:build alexrajkovic$ dfu-util -a0 -d 0x0483:0xdf11 -D p2_boot_1.10.bin -R -s 0x8000000
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x0483 product = 0xdf11
No DFU capable USB device found
 
I should add that I've shortcutted jmp3 before powering up the preen, and have the blank screen as expected

merci d'avance,
alex
« Last Edit: February 03, 2014, 11:41:50 PM by squirts »

squirts

  • Team member
  • *
  • Posts: 25
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #24 on: February 03, 2014, 11:50:22 PM »
ok, so I worked out which one my device is, but still no dice:

alexs-imac-70:build alexrajkovic$ dfu-util -l
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Found Runtime: [05ac:828b] devnum=0, cfg=1, intf=3, alt=0, name="UNDEFINED"
alexs-imac-70:build alexrajkovic$ dfu-util -a0 -d 05ac:828b -D p2_boot_1.10.bin -R -s 0×8000000
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x05ac product = 0x828b
Opening DFU capable USB device... ID 05ac:828b
Deducing device DFU version from functional descriptor length
Run-time device DFU version 0100
Claiming USB DFU Runtime Interface...
Cannot claim interface 3
alexs-imac-70:build alexrajkovic$

Any ideas?

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2259
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #25 on: February 04, 2014, 12:18:39 AM »

Hi Alex,

The PreenFM DFU device is identified by "0x0483:0xdf11".
Do not try to upload a firmware to something different... I see "05ac:828b" in the second post.

Have you tried to plug a mini USB cable directly to the CERB40 board from you computer ?
(in adition the PreenFM needs to be powered by your usual cable USB or DC-in).


squirts

  • Team member
  • *
  • Posts: 25
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #26 on: February 04, 2014, 05:43:56 AM »
Thanks Xavier,
probably better if I aim for the right hole...

So now I get:

alexs-imac-70:build alexrajkovic$ dfu-util -a0 -d 0×0483:0xdf11 -D p2_boot_1.10.bin -R -s 0×8000000
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x0000 product = 0xdf11
Opening DFU capable USB device... ID 0483:df11
Run-time device DFU version 011a
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash  /0x08000000/04*016Kg,01*064Kg,07*128Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
No valid DFU suffix signature
Warning: File has no DFU suffix
Error: Invalid dfuse address: 0×8000000

6581punk

  • Team Member
  • ***
  • Posts: 110
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #27 on: February 04, 2014, 08:36:43 AM »
If you cut and paste the command line instruction from the WWW then the 0x part is mangled. It has somehow replaced the X with something similar looking.

Spot the difference:

0×8000000 - Wrong
0x8000000 - Right

Correct the X character.

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2259
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #28 on: February 04, 2014, 09:07:25 AM »
If you cut and paste the command line instruction from the WWW then the 0x part is mangled. It has somehow replaced the X with something similar looking.

Spot the difference:

0×8000000 - Wrong
0x8000000 - Right

Correct the X character.

Good catch 6581punk.

I didn't try under mac OS but, from your terminal, you should be able to do something like :
. ./install_bootloader.cmd
. ./install_firmware_overclocked.cmd

"." executes the file your specify by your current shell.


FYI if it works with a mini USB cable plug between you computer and the CERB40, and doesn't work with the Type B USB from your preen, it means your small cable (PCB->CERB40) has a problem.

Xavier

squirts

  • Team member
  • *
  • Posts: 25
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #29 on: February 04, 2014, 09:18:20 AM »
you're right, that cleared it! thanks :)

It now shows boot loader v1.10 when reboot with the jumper off, but if i try to flash the new firmware from the USB stick by pressing Op, it hangs with a USB upgrade message (I'd previously copied the 2 bin files onto it)

alternatively, if I continue with Xavier's suggestions, I get this:

alexs-imac-70:build alexrajkovic$ . ./install_firmware_overclocked.cmd
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x0483 product = 0xdf11
No DFU capable USB device found