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

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2260
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #30 on: February 04, 2014, 09:47:33 AM »
It hangs with a USB upgrade message (I'd previously copied the 2 bin files onto it)

Where did you copy them ?
They must be in the "/pfm2/" directory.


No DFU capable USB device found

In what state is your PreenFM ?

Go in DFU mode from the Bootloader.

squirts

  • Team member
  • *
  • Posts: 25
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #31 on: February 04, 2014, 10:10:20 AM »
yup, saved in pfm2

https://www.dropbox.com/s/tu560h2xwv438xo/Screen%20Shot%202014-02-04%20at%2009.06.35.png

here's what i got when adding the firmware in  dfu mode:

alexs-imac-70:build alexrajkovic$ dfu-util -a0 -d 0x0483:0xdf11 -D p2_1B3o.bin -R -s 0x8040000
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
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 = dfuERROR, status = 10
dfuERROR, clearing status
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
DfuSe interface name: "Internal Flash  "
Downloading to address = 0x08040000, size = 373660
...
File downloaded successfully
can't detach
Resetting USB to switch back to runtime mode

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2260
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #32 on: February 04, 2014, 10:41:45 AM »
yup, saved in pfm2
https://www.dropbox.com/s/tu560h2xwv438xo/Screen%20Shot%202014-02-04%20at%2009.06.35.png

Can you read and write preset with this USB drive in the Preen ?
What model is it exactly ?

here's what i got when adding the firmware in  dfu mode:
...
File downloaded successfully
..

So it worked.  :)
« Last Edit: February 04, 2014, 11:02:37 AM by Xavier »

squirts

  • Team member
  • *
  • Posts: 25
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #33 on: February 04, 2014, 11:26:39 AM »
It's a samsung, but not sure which model as i'm in the office now.
But I could read presets with firmware 0.9 no problem (hadn't yet tried writing any as only got it yesterday).

Concerning the dfu mode write, no issue with the below?

No valid DFU suffix signature
Warning: File has no DFU suffix

squirts

  • Team member
  • *
  • Posts: 25
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #34 on: February 04, 2014, 12:03:54 PM »
Is it maybe worth erasing the USB and starting from scratch?

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2260
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #35 on: February 04, 2014, 01:40:57 PM »

Concerning the dfu mode write, no issue with the below?

No valid DFU suffix signature
Warning: File has no DFU suffix

No problem... it's a gentle warning.
I should write that somewhere.


But I could read presets with firmware 0.9 no problem (hadn't yet tried writing any as only got it yesterday).
...
Is it maybe worth erasing the USB and starting from scratch?

If it worked with 0.9 it will work with the 1.x series.
I don't know why the bootloader cannot read it.

squirts

  • Team member
  • *
  • Posts: 25
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #36 on: February 05, 2014, 01:38:15 PM »
really weird, ionly get intermittent access in DFU mode so i've unplugged all USB from my mac, so that the only thing left is the miniUSB (also used a new cable in case it was at fault) to CERB and run dfu-util and get this...

(null):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"

which should be 0483:df11, no?

it's a PITA as I now can't even roll back 1.02 boot loader which worked fine. is there a hard reset i can do to start from scratch?

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2260
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #37 on: February 05, 2014, 02:38:35 PM »
which should be 0483:df11, no?

it's a PITA as I now can't even roll back 1.02 boot loader which worked fine. is there a hard reset i can do to start from scratch?

I have no idea what you current version is (bootloader and firmware) and why you still use DFU.
But :

Yes it should be "0483:df11"... If you don't have it, what you see is another device.
"05ac" is the USB ID of apple. Any USB apple mouse you could unplug ?

DFU mode is independent from the bootloader... The bootloader just jumps to internal code of the microcontroller the actually takes care of DFU upload.
So it works exactly the same on ALL firmware.


With BootLoader 1.10, you don't need DFU.

Bootloader 1.10 : Press "Engine" to see the USB stick from your computer.
On your computer : Copy your bin to the  "/pfm2" directory of the device.
Reboot into PreenFM bootloader : Press "Op" to flash from the USB stick.


squirts

  • Team member
  • *
  • Posts: 25
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #38 on: February 05, 2014, 07:00:23 PM »
Sorry Xavier, I should've been clearer. Currently showing 1.10 bootloader, but no firmware. I get blank screen when i power up.

It doesn't behave like 1.10 bootloader though:   If I press Eng, the USB stick doesn't show on my computer.

I'd already copied the files onto the stick directly, but when I press OP, it doesn't flash from the stick
Flashing by MIDI doesn't work either... Which is why i was still trying by DFU

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2260
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #39 on: February 05, 2014, 07:15:06 PM »
Sorry Xavier, I should've been clearer. Currently showing 1.10 bootloader, but no firmware. I get blank screen when i power up.

It doesn't behave like 1.10 bootloader though:   If I press Eng, the USB stick doesn't show on my computer.

I'd already copied the files onto the stick directly, but when I press OP, it doesn't flash from the stick
Flashing by MIDI doesn't work either... Which is why i was still trying by DFU

OK I see.
You didn't leave JMP3 on ?

Blank screen means you don't have a bootloader installed.
If you have a bootloader and no firmware, you see something like "PreenFM Bootloader OK but no firmware" on the LCD.

So you don't have any choice... DFU.
As you succesfully had it working in one of your previous messages (February 04, 2014, 10:10:20 AM), you just have to make it work on more time ;-)
And flash the bootloader.



squirts

  • Team member
  • *
  • Posts: 25
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #40 on: February 05, 2014, 07:24:20 PM »
No, JMP3 is definitely off, but I suspect the issue may have been with an incomplete or corrupted bootloader install.  Will try doing DFU from my work PC, might be less painful.

Thank for the help by the way, Xavier, it's much appreciated :-)

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2260
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #41 on: February 05, 2014, 11:21:56 PM »
As you don't have anymore the bootloader, the only way to enter DFU mode is put JMP3 on, and to switch on the PreenFM.

Follow 2 and 4 of this page:
http://ixox.fr/preenfm2/built-it/burn-firmware/

Xavier

squirts

  • Team member
  • *
  • Posts: 25
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #42 on: February 05, 2014, 11:56:33 PM »
I run the cmds for install bootloader then overclocked firmware, but on removing jumper, reconnecting CERB and powering it back up, i still get the blank screen. I also still get the bootloader 1.10 prompt if i power up & press Op

so even on pc, it seems there's issue with getting the bootloader onto the preen, please see the line "aborting previous incomplete transfer"

or maybe that's normal, but the symptoms on the preen are still the same as before...


C:\Users\user\Desktop\build>dfu-util -a0 -d 0x0483:0xdf11 -D p2_boot_1.10.bin -R
 -s 0x8000000
dfu-util 0.6

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

Filter on vendor = 0x0483 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  /0
x08000000/04*016Kg,01*064Kg,07*128Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuDNLOAD-IDLE, status = 0
aborting previous incomplete transfer
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
DfuSe interface name: "Internal Flash  "
Downloading to address = 0x08000000, size = 94920
.............................................

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2260
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #43 on: February 06, 2014, 09:47:28 AM »

I'm trying to understand the state of your preenFM.
1. If you power up while a key is pressed, you can enter the bootloader.
2. If you power up without pressing a key, you have blank screen.

What i don't get if it's the bootloader works.
Can you enter each of the sub menu ?


squirts

  • Team member
  • *
  • Posts: 25
    • View Profile
Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
« Reply #44 on: February 06, 2014, 10:15:33 AM »
1. & 2. Correct

Sub menu, if I press the following buttons, screen reads as follows

Eng: Bootloade v1.10 (USB drive not visible on PC)
OP1: USB Upgrade (but nothing further happens)
OP2: Sysex Upgrade, Erase firmware (it formats if I press erase, seems to accept the sysex message, but on reboot - no change, still blank screen)
MTX: !STM32F4 USB DFU!