Running MegaTune under Linux (via wine)

Forum for discussing Tuner StudioMS tuning & datalogging software.
Forum rules
Read the manual to see if your question is answered there before posting. If you have questions about MS1/Extra or MS2/Extra or other non-B&G code configuration or tuning, please post them at http://www.msextra.com The full forum rules are here: Forum Rules, be sure to read them all regularly.
User avatar
djandruczyk
MegaSquirt Guru
Posts: 25
Joined: Fri May 07, 2004 5:55 pm
Location: Buffalo, NY, U.S.A.
Contact:

Running MegaTune under Linux (via wine)

Post 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...
efahl
Site Admin
Posts: 232
Joined: Mon Feb 16, 2004 3:15 pm
Location: San Clemente, California, USA
Contact:

Post by efahl »

Thanks, Dave, this is excellent information. I'm making it a sticky.

Eric
cchristopher
MegaSquirt Newbie
Posts: 7
Joined: Wed Jul 21, 2004 12:12 pm
Location: Roseville, MI

Post by cchristopher »

Great! I tried it and it works perfect. O2 bar at the bottom is a funky color but thats cool. Thanks :D
Charles Christopher
1992 Mugtang Notch LX Turbo 2..3
MS-1 V2.2 PCB Running MSNS-Extra 29q2 / TFI
cchristopher
MegaSquirt Newbie
Posts: 7
Joined: Wed Jul 21, 2004 12:12 pm
Location: Roseville, MI

Post by cchristopher »

Would the code downloader work using wine? I think I might ty it.
Charles Christopher
1992 Mugtang Notch LX Turbo 2..3
MS-1 V2.2 PCB Running MSNS-Extra 29q2 / TFI
efahl
Site Admin
Posts: 232
Joined: Mon Feb 16, 2004 3:15 pm
Location: San Clemente, California, USA
Contact:

Post 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
cchristopher
MegaSquirt Newbie
Posts: 7
Joined: Wed Jul 21, 2004 12:12 pm
Location: Roseville, MI

Post 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.
Charles Christopher
1992 Mugtang Notch LX Turbo 2..3
MS-1 V2.2 PCB Running MSNS-Extra 29q2 / TFI
cchristopher
MegaSquirt Newbie
Posts: 7
Joined: Wed Jul 21, 2004 12:12 pm
Location: Roseville, MI

Post 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.
Charles Christopher
1992 Mugtang Notch LX Turbo 2..3
MS-1 V2.2 PCB Running MSNS-Extra 29q2 / TFI
efahl
Site Admin
Posts: 232
Joined: Mon Feb 16, 2004 3:15 pm
Location: San Clemente, California, USA
Contact:

Post 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
cchristopher
MegaSquirt Newbie
Posts: 7
Joined: Wed Jul 21, 2004 12:12 pm
Location: Roseville, MI

Post 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.
Charles Christopher
1992 Mugtang Notch LX Turbo 2..3
MS-1 V2.2 PCB Running MSNS-Extra 29q2 / TFI
kanenas
MegaSquirt Newbie
Posts: 14
Joined: Wed Jun 02, 2004 1:04 am
Location: hawaii

Post by kanenas »

It would't be the old ascii/binary transfer thing, would it?
Post Reply