Linux Mint installation

Questions specific to Megatunix - alternate tuning software that runs on unix and windows.
Note that Megatunix is obsolete.

Moderator: djandruczyk

24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Linux Mint installation

Post by 24c »

I have been trying for a while now, to get MegaTunix to run on Linux Mint. I can get 0.9.23 to run, but my ECU firmware isn't seen, so it crashes. This morning I trashed everything, and started with a bare bones Linux Mint. I updated upgraded, and I have the latest versions, but there is a consistent error when I try and build from git.
linuxMint_autogen_error.rtf
I cannot execute the autogen.sh file, even though it has permissions checked in its Properties box.

Any ideas how to proceed?
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Linux Mint installation

Post by 24c »

I think I have answered this myself...I saw the C library stuff and remembered about shutting down, because this rebuilds the library.

I performed a Shutdown again, and this time something is happening, it knows what a "make" is etc :oops:
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Linux Mint installation

Post by 24c »

OK, not quite there yet...
linuxMint_MegaTunix_bug.rtf
and after a restart...
linuxMint_after_restart.rtf
Checked the git was upto date, by doing a "git pull" & response was "already upto date" :?
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Linux Mint installation

Post by djandruczyk »

Please use a git (devel) version...
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Linux Mint installation

Post by 24c »

djandruczyk wrote:Please use a git (devel) version...
I'm on modular_0.4 and I did pull it from git later. :?

Like I said earlier o.9.23 was up and running, but the git version that works on the iMac and MacBook in OSX doesn't in Linux Mint 10
Something like

Code: Select all

mike@mike-Parallels-Virtual-Platform ~/Desktop $ cd
mike@mike-Parallels-Virtual-Platform ~ $ megatunix
megatunix: error while loading shared libraries: libmtxcommon.so.0: cannot open shared object file: No such file or directory
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Linux Mint installation

Post by djandruczyk »

24c wrote:
djandruczyk wrote:Please use a git (devel) version...
I'm on modular_0.4 and I did pull it from git later. :?

After "sudo make install" try running "sudo ldconfig" then retry megatunix.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Linux Mint installation

Post by 24c »

Thanks that got the splash screen up and it went and connected no problems. 8)
Spat this out...

Code: Select all

mike@mike-Parallels-Virtual-Platform ~/git/MegaTunix $ cd
mike@mike-Parallels-Virtual-Platform ~ $ megatunix

(megatunix:5187): XML-CRITICAL **: Char 0x0 out of allowed range


(megatunix:5187): XML-CRITICAL **: AttValue: ' expected


(megatunix:5187): XML-CRITICAL **: attributes construct error


(megatunix:5187): XML-CRITICAL **: Couldn't find end of Start Tag signal line 1981


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag widget line 1965


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag child line 1964


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag widget line 549


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag child line 548


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag widget line 543


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag child line 542


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag widget line 150


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag child line 149


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag widget line 145


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag child line 144


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag widget line 139


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag child line 138


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag widget line 129


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag child line 128


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag widget line 125


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag child line 124


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag widget line 117


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag child line 116


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag widget line 27


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag child line 26


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag widget line 21


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag child line 20


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag widget line 5


(megatunix:5187): XML-CRITICAL **: Premature end of data in tag glade-interface line 4


(megatunix:5187): libglade-WARNING **: widget_depth != 0 (12)

(megatunix:5187): libglade-WARNING **: did not finish in PARSER_FINISH state

(megatunix:5187): GLib-CRITICAL **: g_dataset_id_set_data_full: assertion `destroy_func == NULL' failed

(megatunix:5187): libglade-CRITICAL **: glade_xml_get_widget: assertion `self != NULL' failed

(megatunix:5187): GLib-GObject-CRITICAL **: g_object_set_data_full: assertion `G_IS_OBJECT (object)' failed

(megatunix:5187): GLib-GObject-CRITICAL **: g_object_set_data_full: assertion `G_IS_OBJECT (object)' failed

(megatunix:5187): libglade-CRITICAL **: glade_get_widget_name: assertion `widget != NULL' failed

Then I got a lock up, as in this line keeps scrolling in Terminal.
MegaTunix_locks up.png
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Linux Mint installation

Post by 24c »

OK Dave, now I don't see any tabs for Tables VE or Ignition, I do initially, but after the LH column redraws, they are no longer there, but they were before :?
Some more stuff,

Code: Select all

mike@mike-Parallels-Virtual-Platform ~/Desktop $ cd
mike@mike-Parallels-Virtual-Platform ~ $ megatunix

(megatunix:2854): XML-CRITICAL **: Char 0x0 out of allowed range


(megatunix:2854): XML-CRITICAL **: Couldn't find end of Start Tag prope line 396


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag packing line 393


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 388


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 385


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 384


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 81


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 80


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 45


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 44


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 41


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 40


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 37


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 36


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 32


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 31


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 28


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 27


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 22


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 21


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 18


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 17


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 13


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 12


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 9


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 8


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 5


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag glade-interface line 2


(megatunix:2854): libglade-WARNING **: widget_depth != 0 (12)

(megatunix:2854): libglade-WARNING **: did not finish in PARSER_FINISH state

(megatunix:2854): GLib-CRITICAL **: g_dataset_id_set_data_full: assertion `destroy_func == NULL' failed

(megatunix:2854): libglade-CRITICAL **: glade_xml_get_widget: assertion `self != NULL' failed

(megatunix:2854): GLib-GObject-CRITICAL **: g_object_set_data_full: assertion `G_IS_OBJECT (object)' failed

(megatunix:2854): GLib-GObject-CRITICAL **: g_object_set_data_full: assertion `G_IS_OBJECT (object)' failed

(megatunix:2854): libglade-CRITICAL **: glade_get_widget_name: assertion `widget != NULL' failed

This is before I Exit MegaTunix, and when I do and try and save the log etc, I get a lock out (megatunix:2854 etc etc.. and I have to kill Terminal to stop.
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Linux Mint installation

Post by djandruczyk »

24c wrote:OK Dave, now I don't see any tabs for Tables VE or Ignition, I do initially, but after the LH column redraws, they are no longer there, but they were before :?
Some more stuff,

Code: Select all

mike@mike-Parallels-Virtual-Platform ~/Desktop $ cd
mike@mike-Parallels-Virtual-Platform ~ $ megatunix

(megatunix:2854): XML-CRITICAL **: Char 0x0 out of allowed range


(megatunix:2854): XML-CRITICAL **: Couldn't find end of Start Tag prope line 396


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag packing line 393


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 388


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 385


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 384


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 81


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 80


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 45


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 44


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 41


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 40


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 37


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 36


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 32


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 31


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 28


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 27


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 22


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 21


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 18


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 17


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 13


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 12


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 9


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag child line 8


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag widget line 5


(megatunix:2854): XML-CRITICAL **: Premature end of data in tag glade-interface line 2


(megatunix:2854): libglade-WARNING **: widget_depth != 0 (12)

(megatunix:2854): libglade-WARNING **: did not finish in PARSER_FINISH state

(megatunix:2854): GLib-CRITICAL **: g_dataset_id_set_data_full: assertion `destroy_func == NULL' failed

(megatunix:2854): libglade-CRITICAL **: glade_xml_get_widget: assertion `self != NULL' failed

(megatunix:2854): GLib-GObject-CRITICAL **: g_object_set_data_full: assertion `G_IS_OBJECT (object)' failed

(megatunix:2854): GLib-GObject-CRITICAL **: g_object_set_data_full: assertion `G_IS_OBJECT (object)' failed

(megatunix:2854): libglade-CRITICAL **: glade_get_widget_name: assertion `widget != NULL' failed

This is before I Exit MegaTunix, and when I do and try and save the log etc, I get a lock out (megatunix:2854 etc etc.. and I have to kill Terminal to stop.

This sounds a lot like a missing/broken glade engine, though i donno how it would have compiled. The debug build run under gdb with --g-fatal-warnings option however should make it abort on the offending line of code. I'm not familiar with mint, as to test on every linux variant would be impossible. hence why I go for the "big one" ubuntu.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Linux Mint installation

Post by djandruczyk »

OK, I had some time today so I DL'd Mint 10 and installed it under virtualbox on my mac. I proceeded to follow the "installing megatunix under ubuntu thread", installed the pre-reqs for the post ubuntu 9.10 section, checkout a working copy of MegaTunix from the git repo, and compiled/installed it, It ran fine, however some of my ECU backups were no longer matched with the interrogation profiles, so I got those all straightened out, bumped the API version and installed and committed the changes. I tested EVERY possible one in offline mode (with the exception of the FreeEMS and PIS ones which are in alpha/beta state). In every case they all loaded, tabs rendered properly, nothing errored out and all ecu backups for the specific firmwares loaded properly with the exception of the 3.0.3y one which I failed to properly save an ECU backup from that. That'll have to wait until mid feb for me to fix until i have access to MS hardware again to load that firmware and extract a ecu backup image from it.

So as far as I can tell it shoul be working pretty well. Please pull the latest changes (modular_0.4 branch) and MAKE SURE to run "sudo rm -rf /usr/local/share/MegaTunix" prior to the usual configure ; make ; sudo make install ; sudo ldconfig 4 step. the "rm" is required to clean out the files that I renamed so you don't see dups and get API warnings due to mismatched files. (the ones I just fixed and committed, many were renamed to be more intuitive)
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Linux Mint installation

Post by 24c »

djandruczyk wrote:....So as far as I can tell it should be working pretty well. Please pull the latest changes (modular_0.4 branch) and MAKE SURE to run "sudo rm -rf /usr/local/share/MegaTunix" prior to the usual configure ; make ; sudo make install ; sudo ldconfig 4 step. the "rm" is required to clean out the files that I renamed so you don't see dups and get API warnings due to mismatched files. (the ones I just fixed and committed, many were renamed to be more intuitive)
OK, thanks for all so far. I now see the Spark Tables etc again, but BTW I always do a "rm". The major area for me that is counter intuitive is trying to go "online" from an offline mode, because sometimes the ECU just connects other times it doesn't. I have tried "Locate Port" which does detect the ports but, then it doesn't connect. If I exit MegaTunix, and restart it might connect, it might not. It might be useful to have a test function that can initiate a port connection, or test that it is valid.

I am using MSExtra 3.1 firmware, and FWIW, I can connect usingTunerStudio (0.999.9h) on all platforms (OSX, XP & Linux Mint) using the same ECU, but MegaTunix in OSX or Linux Mint is not working as well as before. :?
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Linux Mint installation

Post by djandruczyk »

24c wrote:
djandruczyk wrote:....So as far as I can tell it should be working pretty well. Please pull the latest changes (modular_0.4 branch) and MAKE SURE to run "sudo rm -rf /usr/local/share/MegaTunix" prior to the usual configure ; make ; sudo make install ; sudo ldconfig 4 step. the "rm" is required to clean out the files that I renamed so you don't see dups and get API warnings due to mismatched files. (the ones I just fixed and committed, many were renamed to be more intuitive)
OK, thanks for all so far. I now see the Spark Tables etc again, but BTW I always do a "rm". The major area for me that is counter intuitive is trying to go "online" from an offline mode, because sometimes the ECU just connects other times it doesn't. I have tried "Locate Port" which does detect the ports but, then it doesn't connect. If I exit MegaTunix, and restart it might connect, it might not. It might be useful to have a test function that can initiate a port connection, or test that it is valid.

I am using MSExtra 3.1 firmware, and FWIW, I can connect usingTunerStudio (0.999.9h) on all platforms (OSX, XP & Linux Mint) using the same ECU, but MegaTunix in OSX or Linux Mint is not working as well as before. :?

OK, thats part of hte confusion, megatunix does NOT YET allow going from offline to online. I envisioned offline mode for manipulating a previously saved ECU backup when NOT CONNECTED to a device, i.e. when travelling, on a plane, in your basement, etc, with the intended behavior of: Open mtx, select offline, pick the ecu firmware that applies to what you want to do, restore your previously saved backup (or a stock one), modify whatever intended settings, then save that settings, close mtx. then at some time later when at the physical ecu, connect it, startup mtx, pick the appropriate family and let it detect and run, then restore the previously saved backup if so desired.

Once you've done the "locate port" business and it found it at least once, megatunix remembers that port and you should never need to do that again. If you're not able to connect afterwards, it may be a device driver bug with the usb-serial adapter's driver for OS-X, or possibly a bug withing mtx, howevver I cannot duplicate it easily if at all, though I haven't yet found any of the symptoms you have on my end, but maybe my driver/adapter combination is different from yours. I've found that OS-X usb->serial drivers are not even close to the stability of the linux versions. (open vs closed source? who knows)

What device name is used when it DOES work? cu.xxxxx or tty.xxxxx ?
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Linux Mint installation

Post by 24c »

djandruczyk wrote: I've found that OS-X usb->serial drivers are not even close to the stability of the linux versions. (open vs closed source? who knows)

What device name is used when it DOES work? cu.xxxxx or tty.xxxxx ?
OK, just to help others I am trying to do a fresh install, and follow your instructions... there is a typo in the one of the code examples, should be MegaTunix not Megatunix in the segmentation post for the modular_0.4 instructions, because "no such directory" pops up.

Code: Select all

cd ~/
mkdir git
cd git
git clone git://github.com/djandruczyk/MegaTunix.git
cd Megatunix
typo is on last line, and should read

Code: Select all

cd ~/
mkdir git
cd git
git clone git://github.com/djandruczyk/MegaTunix.git
cd MegaTunix

Today I deleted my Linux Mint VM and created a new one, did a clean install, and then set about installing the git version of MegaTunix, on the modular_0.4 branch. Everything is bang up to date, and I am still having problems connecting. As soon as I ask MegaTunix to "Find My ECU" the serial connection drops the DTR & RTS connections sometimes, but it does not see the ECU. So I ask to "Locate Port" and it sees the two ports, and the Serial Status Message is ... Attempting to open port /dev/ttyUSB0. After a while nothing happens, and when I close or Exit, I eventually get a"MegaTunix 0.9.24-modular_0.4, Choose an ECU family? s not responding error message, and I have to "Force Quit".

If I go "Offline, the the program opens OK, the dashboard loads etc. and so I do a "Locate Port". It detects the ports, so I Exit because nothing is happening. I don't get a save configuration etc option, so when I reopen it still doesn't see the ports. :?
The device name that is seen is ttyUSB0 & Serial, the last one is a driver issue with the PL2303.

Is there anything I should try, I will load a Linux compatible driver and see if this is a game changer
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Linux Mint installation

Post by djandruczyk »

24c wrote:
djandruczyk wrote: I've found that OS-X usb->serial drivers are not even close to the stability of the linux versions. (open vs closed source? who knows)

What device name is used when it DOES work? cu.xxxxx or tty.xxxxx ?
OK, just to help others I am trying to do a fresh install, and follow your instructions... there is a typo in the one of the code examples, should be MegaTunix not Megatunix in the segmentation post for the modular_0.4 instructions, because "no such directory" pops up.

Code: Select all

cd ~/
mkdir git
cd git
git clone git://github.com/djandruczyk/MegaTunix.git
cd Megatunix
typo is on last line, and should read

Code: Select all

cd ~/
mkdir git
cd git
git clone git://github.com/djandruczyk/MegaTunix.git
cd MegaTunix

Today I deleted my Linux Mint VM and created a new one, did a clean install, and then set about installing the git version of MegaTunix, on the modular_0.4 branch. Everything is bang up to date, and I am still having problems connecting. As soon as I ask MegaTunix to "Find My ECU" the serial connection drops the DTR & RTS connections sometimes, but it does not see the ECU. So I ask to "Locate Port" and it sees the two ports, and the Serial Status Message is ... Attempting to open port /dev/ttyUSB0. After a while nothing happens, and when I close or Exit, I eventually get a"MegaTunix 0.9.24-modular_0.4, Choose an ECU family? s not responding error message, and I have to "Force Quit".

If I go "Offline, the the program opens OK, the dashboard loads etc. and so I do a "Locate Port". It detects the ports, so I Exit because nothing is happening. I don't get a save configuration etc option, so when I reopen it still doesn't see the ports. :?
The device name that is seen is ttyUSB0 & Serial, the last one is a driver issue with the PL2303.

Is there anything I should try, I will load a Linux compatible driver and see if this is a game changer
OK, first off, the Megsquirt uses NO FLOW control lines (DSR,DTR,RTS,CTS), Someone posted a doc to me stating tha on macOS-X that the serial interfce drivers come with two devices, /dev/tty.xxxx and /dev/cu.xxxxx. And that in SOME instances the "cu.xxxx" port ALWAYS tries to use flow control lines, and thus will cause an open() call to block indefinitely until the flow control lines are in the state it wants to see. The tty.xxxx ports don't have that issue. so try this:. open ~/.MegaTunix/config, and remove all instances of the "cu.xxxxx" port in the override_port and potential_ports lines in the [Serial] section. save the file and retry megatunix. I'll have to see if i can either prevent mtx from using a cu device on os-x or rejigger the open semantics to work as expected, since OS-X seems to be the odd one out.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Linux Mint installation

Post by 24c »

That's OK, anyway I stuck at it. Tried a couple of Ubuntu threads on PL2303X etc, and still got nowhere, except I knew I was looking for ttyUSB0.

In the end, I thought I'd put TunerStudio 0.999.9h on Linux Mint again, and try and get comms. At first I couldn't, but using MiniTerm, I was able to query "Q" & "S" and get the responses back. After registering it and checking the USB Serial was working in Linux, I decided to try MegaTunix again.

Starting in "Offline" mode after it didn't detect the serial port, I loaded the firmware etc and everything loaded OK. then I went to the comms tab and did a locate port, and it detected the two ttyUSB0 & serial, so I clicked the "autoscan" checkboxand I exited MegaTunix. Then I reopened but hit the "Find My ECU" button, and this time everything worked OK, the dashboard loaded and the serial leds were flashing on my diagnostic connector. 8)

I saved the ECU backups without hassle, and exited MegaTunix. I reopened again and all is fine now.

I can see my saved files in the MTX Snapshots folder so it appears to be OK.

I am at a loss to wonder why it wouldn't see my ttyUSB0 port at first, but I am glad it works. i will try it on the bike tomorrow and see if I have similar problems to StevensD57.
LinuxMint.png
PS One thing I have noticed, when I reconnect the pages haven't updated this time, so my VETables & Spark tables are all zeroed, until I click Get Data from ECU, whereas I didn't notice this before. Is this because I haven't loaded a snapshot?
Screen shot 2011-02-11 at 21.10.42.png
PPS Tried a few permutations, and I notice the original behaviour. If I exit or close and not save any MTX or other files, then next time I reopen MegaTunix, the VETable & Spark tables are read correctly without requesting get data from ECU. I_think_this is a code error/bug, as it doesn't make sense or follow expected behaviour.
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Linux Mint installation

Post by 24c »

Just pulled the latest git, and everything seems to be working OK, except when MegaTunix first opens, and you click on a table, it is as the post above, that's full of zeros until you Get data from ECU.

Not an issue, but I'll check first that this isn't a Parallels VM & Mac OSX shared USB Serial driver foible.

EDIT Just tried the Locate Port function under the Communications tab, and it detected a "serial" port which I checked...load of tosh, just kept on cycling with errors, so I unplugged and plugged the USB cable, and the /dev/ttyUSB0 port was seen, so I saved this config/snapshot and now ... so far three times, at least the tables have loaded properly & not full of zeros :) :?

UPDATE. If you don't save the files, I get zeros next time I run MegaTunix. I must be doing something wrong, not understanding this very well.
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Linux Mint installation

Post by djandruczyk »

24c wrote:Just pulled the latest git, and everything seems to be working OK, except when MegaTunix first opens, and you click on a table, it is as the post above, that's full of zeros until you Get data from ECU.

Not an issue, but I'll check first that this isn't a Parallels VM & Mac OSX shared USB Serial driver foible.

EDIT Just tried the Locate Port function under the Communications tab, and it detected a "serial" port which I checked...load of tosh, just kept on cycling with errors, so I unplugged and plugged the USB cable, and the /dev/ttyUSB0 port was seen, so I saved this config/snapshot and now ... so far three times, at least the tables have loaded properly & not full of zeros :) :?

UPDATE. If you don't save the files, I get zeros next time I run MegaTunix. I must be doing something wrong, not understanding this very well.

I'm not getting the zeros, so I'm not sure of the issue as of yet.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Linux Mint installation

Post by 24c »

djandruczyk wrote: I'm not getting the zeros, so I'm not sure of the issue as of yet.
OK, this is what happens for me, Linux Mint has been running all night and MegaTunix has been exited hours ago.

The MS unit is powered up (Microsquirt running MSExtra 3.1.0), and still connected to Linux Mint via tty/USB0, with the RX & TX pins illuminated. If I run MegaTunix, and click Find my ECU, there is some serial activity and after the pages are updated, I check the VE Tables (16x.... The tables display their values are are all filled correctly.

If I Exit MegaTunix and don't save the ECU or log, the next time I open MegaTunix, the tables are full of zeros. So you Exit again, don't save anything, and the next time you open MegaTunix and repeat the steps above they are displaying. If I repeat again, they don't, repeat again, they do...it appears to be alternating, in the nine times I have just done this. There is no perceived difference in updating activity or the time taken to open and be ready.
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Linux Mint installation

Post by djandruczyk »

24c wrote:
djandruczyk wrote: I'm not getting the zeros, so I'm not sure of the issue as of yet.
OK, this is what happens for me, Linux Mint has been running all night and MegaTunix has been exited hours ago.

The MS unit is powered up (Microsquirt running MSExtra 3.1.0), and still connected to Linux Mint via tty/USB0, with the RX & TX pins illuminated. If I run MegaTunix, and click Find my ECU, there is some serial activity and after the pages are updated, I check the VE Tables (16x.... The tables display their values are are all filled correctly.

If I Exit MegaTunix and don't save the ECU or log, the next time I open MegaTunix, the tables are full of zeros. So you Exit again, don't save anything, and the next time you open MegaTunix and repeat the steps above they are displaying. If I repeat again, they don't, repeat again, they do...it appears to be alternating, in the nine times I have just done this. There is no perceived difference in updating activity or the time taken to open and be ready.

Try comparing runs where the ecu has been power cycled between tests, and again when the usb seral device has been unplugged and replugged..
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
24c
Master MS/Extra'er
Posts: 847
Joined: Tue Jan 20, 2009 10:21 am
Location: Lancashire UK
Contact:

Re: Linux Mint installation

Post by 24c »

djandruczyk wrote: Try comparing runs where the ecu has been power cycled between tests, and again when the usb seral device has been unplugged and replugged..
OK just opening Megatunix, eight times, & not saving anything I get, N=zeros, Y =OK load ...NYNYYNYN
Opening Megatunix, and at the Find my ECU splash screen unplugging & plugging the USB I get ... YYYYNYNY
Power cycling doesn't change the port state on the diagnostic RS232 connector, so I got ... NYNY

When MegaTunix exits, port stays in RXD & TXD are active mode. If you unplug/plug USB connector the Serial is reset, so that's RXD, TXD, DTR & RTS ports are active, and when you click Find my ECU the RXD & TXD become active as expected.

It's almost like the Updating Controls Page 1-5 is not reading correctly, and I did notice an instantaneous flash of a splash screen that looked like a "No Entry" or red sign, but it happened so fast, I couldn't see it properly.

Maybe I should run this under gdb :idea: but even if it doesn't load correctly initially, I can always Get data from ECU.

PS I think this is due to the serial port not resetting when you Exit MegaTunix, as I just tried using OSX on the iMac and I got ...YYYYYYYY
Yamaha GTS1000 v2 MicroSquirt, B&G 2.891
Yamaha GTS1000 v3 beta MicroSquirt, B&G3.760
Yamaha GTS1000 MSExtra 3.1, Dual VR Board
Yamaha YZF1000 MSExtra 3.1
Post Reply