Page 1 of 2

Running MegaTune under Linux (via wine)

Posted: Thu Jan 19, 2006 10:09 pm
by djandruczyk
Just in case there are some users here who don't happen to run windows. I have some info on how to run megatune on linux using wine. This is primarily for users in which megatunix either doesn't work (for whatever reason) or doesn't yet support their firmware, as it's the only tuning SW for linux and OS-X users.

Things you need:

wine (I used 0.9.5, as thats the most current release) running on gentoo linux. though your distribution shouldn't matter. Older versions of wine make work as well, but your mileage may vary.

winetools http://www.von-thadden.de/Joachim/WineTools/

Once wine is installed it's recommend that if you had a previous wine installation that you either back it up or erase it, by removing ~/.wine (rm -rf ~/.wine ) and then running winetool via "wt" from a terminal. It will prompt you and potentially warn you about whatever, justclick through.

You need to use winetools (wt) to install a handful of core windows stuff so that megatune and any other windows apps you want to run will work.

Within winetool, select the top choice, "Base Setup", and install The Truetype font Arial, DCOM98, Micrsoft foundation classes 4.x and IE 6.0 (even if you don't plan on using it) as many other future apps have a dependancy on IE.
After those are done choose: "Basic Windows System Software" and install Windows Installer, Visual C++ runtime, MDAC 2.8 and Jet 4.0 SP8, MSXML 4.0 sp2 and common controls 5.0
Finally, go back to the main menu and select the Microsoft Truetype Fonts and install all of them in turn.

Once done, exit from winetool and download the megatune setup exe file and from a terminal run "wine mt225bXXX_setup.exe" replace XXX with the version you downloaded. It should install nicely and even create a desktop icon. (I get three icons, one of which was bogus so I just delete that) Note in each case of installing megatune, wine crashed at the end (bug) but it's harmless. From there it runs and "just works" NOTE: this requires your linux box to have a regular serial port so far. I haven't tried to get it to work via my usb-serial adapter yet...

NOTE: if it fails to create an icon (it might if you have a different desktop setup than I) you can run the megatune EXE directly running

Code: Select all

wine ~/.wine/c/Program Files/MegaSquirt/MegaTune/MegaTune2.25b{version}/megatune.exe

Enjoy...

Posted: Fri Jan 20, 2006 8:45 am
by efahl
Thanks, Dave, this is excellent information. I'm making it a sticky.

Eric

Posted: Fri Jan 20, 2006 10:40 am
by cchristopher
Great! I tried it and it works perfect. O2 bar at the bottom is a funky color but thats cool. Thanks :D

Posted: Fri Jan 20, 2006 10:41 am
by cchristopher
Would the code downloader work using wine? I think I might ty it.

Posted: Fri Jan 20, 2006 11:38 am
by efahl
cchristopher wrote:Would the code downloader work using wine? I think I might ty it.
Yes, it uses exactly the same comm routinies and uses much less of MFC than MT, so if Dave can get MT running, the downloader should be even easier to make work.

Eric

Posted: Fri Jan 20, 2006 12:35 pm
by cchristopher
Thats great now I can use my native OS, instead of dealing with windows. I am going to try it out tonight. Will post back any results.

Posted: Mon Jan 23, 2006 3:05 pm
by cchristopher
the downloader does not work. It gets to about 800 lines then says its complete which garbles the currently installed code. I used wcmd and entered the command line options manually since the batch file did not work. After the code is garbled I cannot use the download -b option anymore and have to upload the code as if it was fresh bg3.0.

Posted: Mon Jan 23, 2006 4:44 pm
by efahl
cchristopher wrote:After the code is garbled I cannot use the download -b option anymore and have to upload the code as if it was fresh bg3.0.
It's probably already in the bootloader mode, so "download" without the -b option should work.

Eric

Posted: Mon Jan 23, 2006 4:54 pm
by cchristopher
efahl wrote:
cchristopher wrote:After the code is garbled I cannot use the download -b option anymore and have to upload the code as if it was fresh bg3.0.
It's probably already in the bootloader mode, so "download" without the -b option should work.

Eric
Nope. Did that already. It goes through the motions just fine but at the end it say expected "complete" but received "?????". It does about 800 lines. It is surely doing something as the code no longer functions after the upload.

Posted: Fri Feb 10, 2006 12:24 pm
by kanenas
It would't be the old ascii/binary transfer thing, would it?