PreenFM Forum

PreenFM => PreenFM2 => Topic started by: Varthdader on January 02, 2014, 05:09:10 PM

Title: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Varthdader on January 02, 2014, 05:09:10 PM
Hi!

I read your interactions on flashing the Bootloader, and for a complete noob like me, it is not immediately clear what and how to have everything set up in my Mac.

I have X code, and downloaded Macports too. Installed both.
Guess Macports is not a windowed program, because I see no Macports Icon.

I downloaded latest dfu util, unzipped the .tar file, and now I am stuck as to how to install dfu util with Macports.

Another question is how you know what boot loader version you have in your PreenFM2.

The whole point for me upgrading the boot loader is to be able to manage my USB stick without having to open the case every time in case anyone wonders why a noob would want to mess with a bootloader!
Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: 6581punk on January 02, 2014, 06:19:33 PM
Do it with the Brew mechanism, it was dead easy.

http://brew.sh/index.html

Run the script.

Once it's all done

'brew install dfu-util'

Then run DFU util as per instructions.
Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on January 03, 2014, 12:10:24 PM

Thanks 6581punk.
Yes it seems that installing dfu-util with brews is easier.

Varthdader, you don't need X-code to install a new firmware, and you should not have
And my documentation is not clear for OsX, you don't have to manually download dfu-util.
MacPorts or Brews will do it for you.

I haven't tried brews but from what i read :
The scipt to install is at the bottom of the brew page.
Open a terminal and copy and past :
Code: [Select]
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"Then
Code: [Select]
brew install dfu-util
The you should be able to run and dfu-util command.

Xavier
Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: 6581punk on January 03, 2014, 02:38:52 PM
It does prompt you to install some command line utils which it downloads from Apple. So ensure you accept that and wait for it to finish installing before continuing with the command line script.
Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: Varthdader on January 03, 2014, 03:08:05 PM
Thanks both Xavier and 6581punk for holding my hand through this.

Ok, first tried and I guess succeeded in installing macports.

Then after reading the first reply, went ahead and installed with the brew method.

I now see that I can enter the dfu-util commands in the terminal window.

I have shorted the JP3 and have connected only the usb from the PreenFM2 to my mac.

I only see blocks on the screen (must be the contrast or brightness) but I guess that is normal as per the description.

I don´t see the orange led flashing and the dfu-util does not list the device when I perform the dfu-util -l command. Nor does it perform the boot loader update with the command described in the instructions because it says there is no dfu device.

Any pointers as to where to go from here?
Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on January 03, 2014, 03:23:08 PM
I don´t see the orange led flashing

Normal because you used the JMP3 solution. The PreenFM2 direcly entered DFU mode.

and the dfu-util does not list the device when I perform the dfu-util -l command. Nor does it perform the boot loader update with the command described in the instructions because it says there is no dfu device.
Any pointers as to where to go from here?

Be sure your dfu-util version is at least 0.6.
If dfu-util does not see your device, it can be a problem from your internal PCB->CERB40 cable.

To know if your cable is OK, let me know if you have midi over usb working ? (must be enable in the setup).

Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: 6581punk on January 03, 2014, 04:03:14 PM
I had a bit of trouble with my own USB cable.

For flashing I connected a cable directly to the CERB.
Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: Varthdader on January 03, 2014, 04:09:06 PM
My dfu-util is the latest, 0.7. It was downloaded yesterday.

I enabled and saved the option to USB midi in/out in the PreenFM2´s´menu.

Is there an easy way to test USB midi? Or directly test the cable?

I am not a big usb midi user. Mostly had this usb to DIN midi adapter for my synths. I do have a mac with Garageband if it is any use, and an iPhone with the usb accessory (which works ok with the usb to din adapter).

As an aside, I followed the JP3 way because that is how it is explained in the instructions. If there is another, easyer way, please do explain and I could try. Of course I would like to have a fully functional, usb-midi enabled PreenFM2 so I would like to fix my cable if it is faulty.

I am kinda in the dark when it comes to usb and flashing with the command line, so please be patient with me!
Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: Varthdader on January 03, 2014, 05:35:35 PM
Ok, I just checked my internal usb cable and had soldered a terminal wrong (soldered terminals 2 and 4 instead of 3!)+

Now my Mac sees the dfu PreenFM2.

All I need now is to issue the dfu-util commands to flash the boot loader first and firmware second.

Problem is, the .cmd files in my download are set to popen in windows notepad (from my virtualised Windows install) and I have no clue how to just tell dfu-util to flash from the boot loader file I have.

From the instructions, it just says to "run install_bootloader.cmd from the firmware zip file", well I do not know how to do that...
Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on January 03, 2014, 05:45:00 PM
Good... One step furhter ;-)

When your PreenFM is visible in DFU mode with 'dfu-util -l'
You just have to copy and past the content of the cmd iles in your terminal.

Or copy the following :
Code: [Select]
dfu-util -a0 -d 0x0483:0xdf11 -D p2_boot_1.10.bin -R -s 0x8000000for the bootloader...

And :
Code: [Select]
dfu-util -a0 -d 0x0483:0xdf11 -D p2_09no.bin -R -s 0x8040000for the firmware.

Xavier
Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: Varthdader on January 03, 2014, 05:54:30 PM
Thanks for all the patience!

Where should I have the respective .bin files? Because I tried this and the terminal says it can´t find the files.
Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on January 03, 2014, 05:59:03 PM
The link to the last firmware is at the top right of this page.
Direct download to the last firmware :
https://dl.dropboxusercontent.com/u/41654198/preenfm2/firmwares/pfm2_0.9n.zip
Unzip the file.

In the terminal, move to the directory where you extracted the files (using cd command).
Run the dfu-util commands from this directory.

Xavier


Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: Varthdader on January 03, 2014, 06:14:29 PM
Ok, now this feels embarrassing, but I have close to zero terminal skills...

I managed to move to the appropriate directory, and flashed both boot loader and over clocked firmware!

My PreenFM2 now boots into the new firmware!

But, if I plug the usb cable to my Mac, I should be seeing the usb stick appear as removable media right?

I see no such thing, am I missing something?

Thanks!
Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on January 03, 2014, 06:22:42 PM

Congrats it's done  ;)

To enter bootloader, you must press one of the button while powering on the PreenFM.
Release the button when you see "BootLoader v1.10" on the LCD.
You have then several  choices :

1. Press "Eng"  and your USB stick will appear on your computer after a couple of second.
You can then copy the future firmware on the USB stick that way (copy them in the '/pfm2/' firmware).

2. Press 'Op' and you can select one of the firmware from the USB stick to flash.

So you won't have never agin to fight with dfu-util :-)


Xavier
Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: Varthdader on January 03, 2014, 06:29:28 PM
Super!

All is wonderful now!

I can see the usb stick in my Mac and also the beautiful orange led on the pcb finally lighted telling me I soldered it properly! :D

Thank you Xavier and also 6581punk for all the help!
Title: Re: Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on January 03, 2014, 06:33:18 PM

Oh yeah !!!!!  ;D



Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Mesmerised 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)
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Mesmerised 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! :-)
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier 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 ?
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Mesmerised 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.
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: elektrosamplist 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 ;)
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on January 07, 2014, 11:47:00 AM

Thanks Samuel for jumping in and for the information  ;)
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: elektrosamplist on January 08, 2014, 11:04:51 AM
I think I have something working for OSX 10.6.8 up to 10.9  :)
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts 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
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts 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?
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier 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).

Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts 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
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: 6581punk 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.
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier 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
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts 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
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier 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.
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts 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
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier 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.  :)
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts 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
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts on February 04, 2014, 12:03:54 PM
Is it maybe worth erasing the USB and starting from scratch?
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier 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.
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts 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?
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier 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.

Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts 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
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier 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.


Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts 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 :-)
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier 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
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts 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
.............................................
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier 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 ?

Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts 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!

Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on February 06, 2014, 10:32:49 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!

Maybe you were right when you suggested to reformat your USB drive.
All this problems can be because of a USB stick the PreenFM cannot read.

If reformating don't do anything, please try another USB drive.

If that does not fix anything, we'll try something else.





Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts on February 06, 2014, 11:58:10 AM
ok I've formatted the USB, but the same happens. For what it's worth, the USB behaves normally on both my mac and PC. The good news is that I've now managed to get boot loader 1.02 back on and have also got firmware 0.9 back on... So I have a working preenFM again (woohoo).

So, maybe I can start again using PC for DFU to get 1.10 back on? Or can I skip DFU entirely?
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts on February 06, 2014, 12:18:36 PM
OK, so i re-flash bootloader 1.10, and now it keeps firmware 0.9... but when I try to upgrade firmware via USB to 1B3o, no joy. Same with sysex upgrade.

 :-\
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on February 06, 2014, 12:58:20 PM

Aouch.... you're hard to follow.

1.02 / 0.9 : everything works ? even flashing a new firmware from bootloader using USB stick... *.bin must be in /pfm2.

> "OK, so i re-flash bootloader 1.10, and now it keeps firmware 0.9..."
I don't get it.
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts on February 06, 2014, 01:13:30 PM
OK sorry for the confusion

after i managed to get 1.02/09 working, I upgraded boot loader to 1.10 via DFU.

This worked, & for the 1st time I had functional preen with 1.10 & FW 09.

But that's where progress stopped, I still cannot see USB on PC when I press Eng.
And I can't upgrade FW to 1B3 either by USB (just hangs with "USB UPGRADE" message) or Sysex (receives sysex, asks me to reboot, blank screen again)


Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on February 06, 2014, 01:42:48 PM

Coud you tell me if you can upgrade FW by USB drive (switch on + Op) with 1.02 bootloader ? That would be helpfull.


Then i would suggest you to erase your browser cache and download again 1.B3.

Then flash both bootloader AND firmware via DFU.
What happens ?
. bootloader work ?
. fiwmare boots ?

Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts on February 06, 2014, 02:06:23 PM
Yep... with 1.02 BL, upgrade by USB works fine.

To make sure i'm not misunderstanding, you would like me to add FW 1B3 manually to the USB, reinsert USB, then upgrade by powering up & pressing Op
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on February 06, 2014, 02:11:30 PM
Yep... with 1.02 BL, upgrade by USB works fine.
To make sure i'm not misunderstanding, you would like me to add FW 1B3 manually to the USB, reinsert USB, then upgrade by powering up & pressing Op

Yes i'd like to know if the problem (accessing the USB stick) you have with bootloader 1.10 did not exist in 1.02.





Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts on February 06, 2014, 02:26:41 PM
So i switched back to 1.02 BL, and on my USB are 2 FW 0.9io & 1B3o.

If I USB install 1B3 & reboot, I get blue screen.
If I install 0.9i, all good.
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on February 06, 2014, 02:36:38 PM

Great... Thanks for all this tests  ;)

Now 2 possibilities left :
1 - You got a corrupted 1.B3 bin....
2 - I changed something in the USB stack that your Usb Drive does not like.


To be sure it's not 1, can you download it again (after haveing cleared you browser cache) ?

Have you  tried the last 0.9p firmware ?
https://dl.dropboxusercontent.com/u/41654198/preenfm2/firmwares/pfm2_0.9p.zip

I'd like to know the last firmware that works for you.

Thanks
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts on February 06, 2014, 03:13:40 PM
1. emptied cache, dloaded again, no joy
2. tried the following:0.9po, 0.9oo, 0.9no, 0.9io

only version "i" will load
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on February 06, 2014, 03:18:15 PM

Thanks again for all these tests.

Seems to be my fault  ;)
I'll investigate that.
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts on February 06, 2014, 03:25:13 PM
Cool, no worries. Let me know when you need me to test again

By the way, is there a recommended USB stick I should try? Might be a quicker solution. I just want to get your new FW, the new features look great :)
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on February 06, 2014, 03:28:27 PM
Cool, no worries. Let me know when you need me to test again
By the way, is there a recommended USB stick I should try? Might be a quicker solution. I just want to get your new FW, the new features look great :)

Sandisk cruzer blade (4Gb) is cheap, small, fast (for the PreenFM) and works fine.
http://www.amazon.fr/gp/product/B002U213Y8



Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts on February 06, 2014, 03:37:26 PM
ok, just ordered one, will report back when it arrives :)
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on February 06, 2014, 03:45:30 PM

OK let me know.
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts on February 09, 2014, 12:24:06 PM
It was the USB stick! Received the Sandisk Cruzer yesterday & upgraded to 1B4 this morning with no troubles at all... Thanks for the troubleshoot help :)
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts on February 09, 2014, 01:27:45 PM
One thing though, pressing eng still = no access to USB on the mac
Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: Xavier on February 09, 2014, 03:48:08 PM
Thanks for the feedback.

USB Stick compatibility is not the strongest point of the PreenFM2.  :(

I have a 2009 Mac Mini with OSX 10.8.5 and i can see the USB drive.
Slow though and lots of Read/Write IO, but it shows up.

What OSX version do you have ?

Title: Re: [Fixed] Flashing the Bootloader in a Mac with Mavericks
Post by: squirts on February 09, 2014, 07:29:09 PM
I'm on 2013 i7 iMac running 10.9.1