Firmware update utility (test).

Discussions related to MegaDrum Hardware

Re: Firmware update utility (test).

Postby mightygorgon » Tue Dec 29, 2009 4:42 pm

mightygorgon
 
Posts: 6
Joined: Fri Dec 25, 2009 12:56 am
Location: Germany

Re: Firmware update utility (test).

Postby Synthex » Tue Dec 29, 2009 4:49 pm

:roll:
Synthex
 
Posts: 1471
Joined: Fri Oct 12, 2007 6:06 am
Location: France

Re: Firmware update utility (test).

Postby mightygorgon » Tue Dec 29, 2009 4:54 pm

:mrgreen:
mightygorgon
 
Posts: 6
Joined: Fri Dec 25, 2009 12:56 am
Location: Germany

Re: Firmware update utility (test).

Postby rockdude » Tue Dec 29, 2009 7:42 pm

With this utility I don't need Midi-OX installed to make a firmware updated. Correct?
rockdude
 
Posts: 276
Joined: Wed Sep 02, 2009 7:18 am

Re: Firmware update utility (test).

Postby dmitri » Tue Dec 29, 2009 9:45 pm

rockdude wrote:With this utility I don't need Midi-OX installed to make a firmware updated. Correct?

Correct.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Firmware update utility (test).

Postby fuzzysnuggleduck » Fri Jan 01, 2010 12:09 am

I haven't tested the actual functionality yet but I can confirm that the source will compile on OS X with a few changes.

First, remove
Code: Select all
#include <windows.h>
from main.cpp.

Next, add
Code: Select all
#include <CoreServices/CoreServices.h>
in RtMidi.h somewhere at the top.

After that, use the basic example from the RtMidi site to compile yourself a binary on OS X. Something like:

Code: Select all
g++ -Wall -D__MACOSX_CORE__ -o mdfwupdate main.cpp RtMidi.cpp -framework CoreMidi -framework CoreAudio -framework CoreFoundation
and your binary will be called "mdfwupdate".

It's a real pain not having my MegaDrum at home to test these things when I have a few quick moments. Oh well. I'll get around to testing the functionality on OS X at some point. If it works as expected, this will be a huge help for me as MCT on OS X won't perform a firmware update for me. MIDI OX obviously doesn't run on OS X and even SysEx Librarian wouldn't do it!
fuzzysnuggleduck
 
Posts: 130
Joined: Tue Dec 02, 2008 9:16 am

Re: Firmware update utility (test).

Postby fuzzysnuggleduck » Wed Mar 03, 2010 12:40 am

Well, I finally got around to testing this on OS X 10.6.2 and... no go :(

I compiled the update utility, and it ran but it simply wouldn't update the firmware after many, many tries. I however, did find a workaround to updating firmware via OS X, but it's a bit contrived. I'll post it here just because.

You need VirtualBox and a modern Linux distro CD ISO (I used Fedora 12)
Boot the CD into the live system and download the latest firmware onto the VM desktop or wherever in the VM
Connect MegaDrum via the Devices menu in VirtualBox
Open a terminal window and type "amidi -l", you should see your MegaDrum
Setup MegaDrum for firmware update (if you have to turn it on/off you'll have to reconnect the device via the VirtualBox menu)
Once MegaDrum is waiting for the firmware, use the following command: "amidi -p hw:1,0,0 -s megadrum-firmware.sysx" where "hw:1,0,0" is the device you got from "amidi -l" and "megadrum-firmware.sysx" is the MegaDrum firmware file you download.
You're done!

I also tried the latest MCT on this Linux VM... but no go for sending or receiving pad settings I was really hoping it would work :(

Also, amidi was able to receive the configuration sysex sent from MegaDrum but MegaDrum was unable to receive that sysex if I played it back using amidi again.

Still trying to figure out how to no have to use Windows for any of my MegaDrum needs (firmware solved but not config saving/loading...)
fuzzysnuggleduck
 
Posts: 130
Joined: Tue Dec 02, 2008 9:16 am

Re: Firmware update utility (test).

Postby rockdude » Mon Mar 29, 2010 7:15 pm

Hi dmitri,
I'll try updating my firmware tonight. Is bootloader v.4 considered to be an old bootloader? Just want to know if I should omit the "e" or not in the command line. I'm using Synthex 56in 3.1 kit.
rockdude
 
Posts: 276
Joined: Wed Sep 02, 2009 7:18 am

Re: Firmware update utility (test).

Postby dmitri » Mon Mar 29, 2010 7:53 pm

rockdude wrote:Hi dmitri,
I'll try updating my firmware tonight. Is bootloader v.4 considered to be an old bootloader?

No. Besides, no matter which bootloader version it is, if doesn't work with 'e', it will work without it.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Firmware update utility (test).

Postby rockdude » Mon Mar 29, 2010 9:29 pm

It worked like a charm! :) Thank you for this excellent utility!
rockdude
 
Posts: 276
Joined: Wed Sep 02, 2009 7:18 am

PreviousNext

Return to MegaDrum Hardware

Who is online

Users browsing this forum: Google [Bot] and 120 guests