How to install new firmware from Linux/OS-X systems

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

Moderator: djandruczyk

Re: How to install new firmware from Linux/OS-X systems

Postby TheVinci » Sun Feb 13, 2011 6:28 pm

a little help please?
I just put together my MS2 V3.0 PCB from DIYAutotune, finally got my serial to usb connector to work right, tried to find the ms2extra firmware files, and upload them. I've tried a few ways now. From the terminal, from the megatunix firmware installer, heck, I even tried running programs through 'wine'.
a few times, after removing the boot jumper, and power cycling, all three leds lit up on my board, but just stayed lit, with no response to moving stimulator pots.
now, after trying this way again, no leds come on at all. And when I try to run megatunix, it just says there is no firmware! Aaarg! What am I doing wrong?
I got my .s19 files from the 'megatune_ms2_extra_release_v2.1.0_installer.exe' from the megasquirt faq.
TheVinci
MS/Extra Newbie
 
Posts: 8
Joined: Sat Feb 12, 2011 11:10 pm

Re: How to install new firmware from Linux/OS-X systems

Postby djandruczyk » Mon Feb 14, 2011 10:56 am

TheVinci wrote:a little help please?
I just put together my MS2 V3.0 PCB from DIYAutotune, finally got my serial to usb connector to work right, tried to find the ms2extra firmware files, and upload them. I've tried a few ways now. From the terminal, from the megatunix firmware installer, heck, I even tried running programs through 'wine'.
a few times, after removing the boot jumper, and power cycling, all three leds lit up on my board, but just stayed lit, with no response to moving stimulator pots.
now, after trying this way again, no leds come on at all. And when I try to run megatunix, it just says there is no firmware! Aaarg! What am I doing wrong?
I got my .s19 files from the 'megatune_ms2_extra_release_v2.1.0_installer.exe' from the megasquirt faq.



First:. jumper the bootloader jumper ON THE CPU CARD, not the one on the mainboard( thats for MS1 cpu's only). power cycle the megasquirt, start mtxloader and select "bootstrap.s19" from the files you have, click load. It should succeed. If so, REMOVE the boot jumper and power cycle the ecu, now select the main firmware .s19 file, and click load. This should take longer and finish successfully, close mtxloader, and power cycle your ECU. the new firmware is loaded.

NOTE: if you loaded a very recent firmware ( anything newer than ms2-extra 2.1.0d), you MUST be using a developmental version of megatunix pulled from git (modular_0.4 branch).
.
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
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1201
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: How to install new firmware from Linux/OS-X systems

Postby mahler » Wed Dec 21, 2011 12:29 pm

I tried to upgrade a MS2extra using these instructions but I have been unable to get them to work.
I can't get the '!!' command to respond with a 'boot>' prompt.
The 'Q' and 'S' commands work and produce output if the baud rate is
set to 115200.

I imagine it could be some problem with character translation in Hyperterminal
but I haven't found a fix yet.
Any ideas?
Jeremiah Mahler
Msqdev (author) - Megasquirt development (tuning) system
http://github.com/jmahler/msqdev
User avatar
mahler
Helpful MS/Extra'er
 
Posts: 43
Joined: Tue May 19, 2009 10:05 pm
Location: Chico, CA

Re: How to install new firmware from Linux/OS-X systems

Postby jsmcortina » Wed Dec 21, 2011 12:50 pm

mahler wrote:I tried to upgrade a MS2extra using these instructions but I have been unable to get them to work.
I can't get the '!!' command to respond with a 'boot>' prompt.

That's because those are for MS1.

A Linux loader is included with recent firmwares. It requires to be run from the commandline

For intitial loading of the bootstrap with the jumper I use
./ms2dl_linux32bit -c /dev/ttyUSB0 -f bootstrap.s19
then remove jumper and powercycle
then:
./ms2dl_linux -c /dev/ttyUSB0 -j -f ms2_extra.s19

James
I can supply, repair or upgrade Megasquirts in UK.

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 27984
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: How to install new firmware from Linux/OS-X systems

Postby mahler » Wed Dec 21, 2011 7:52 pm

Thanks James, those work great.
Jeremiah Mahler
Msqdev (author) - Megasquirt development (tuning) system
http://github.com/jmahler/msqdev
User avatar
mahler
Helpful MS/Extra'er
 
Posts: 43
Joined: Tue May 19, 2009 10:05 pm
Location: Chico, CA

Re: How to install new firmware from Linux/OS-X systems

Postby StevenD57 » Fri Jan 13, 2012 5:23 pm

Thanks Dave! These directions using Minicom on my MS1 system worked like a charm. These directions should be in the MSnS-Extra manual somewhere.
Jaguar E-Types, modified Merkur XR4Ti, Jensen-Healey
Linux = no virii or spyware, EVER
User avatar
StevenD57
Helpful MS/Extra'er
 
Posts: 103
Joined: Fri Oct 14, 2005 1:14 pm
Location: Phoenix, AZ

Re: How to install new firmware from Linux/OS-X systems

Postby djandruczyk » Fri Jan 13, 2012 8:41 pm

StevenD57 wrote:Thanks Dave! These directions using Minicom on my MS1 system worked like a charm. These directions should be in the MSnS-Extra manual somewhere.



MegaTunix comes with a pair of loader tools (CLI and graphical) for MS1 and MS-2 firmwares. It would be advisable to use the development code on linux right now as that is the latest and least trouble free.
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
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1201
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: How to install new firmware from Linux/OS-X systems

Postby bi-andrea » Fri Aug 10, 2012 11:47 am

use gentoo, I mounted the module for a usb / serial, Firewire ms2extra_3.1.1_release downloaded the ...
typing ./ms2dl_linux32bit-c = / dev/ttyS0-f = ms2_extra.s19
get
Could not open serial port: = / dev/ttyS0 ... exiting
I have a MS2 V.3.
doing research I saw megatunix with Ubuntu, it is, does it work?
bi-andrea
MS/Extra Newbie
 
Posts: 23
Joined: Tue Nov 15, 2011 3:14 pm

Re: How to install new firmware from Linux/OS-X systems

Postby jsmcortina » Mon Aug 13, 2012 4:31 am

Use the current firmware as the zip includes an interactive Linux firmware loader.

James
I can supply, repair or upgrade Megasquirts in UK.

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 27984
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: How to install new firmware from Linux/OS-X systems

Postby djandruczyk » Mon Aug 13, 2012 5:16 am

bi-andrea wrote:use gentoo, I mounted the module for a usb / serial, Firewire ms2extra_3.1.1_release downloaded the ...
typing ./ms2dl_linux32bit-c = / dev/ttyS0-f = ms2_extra.s19
get
Could not open serial port: = / dev/ttyS0 ... exiting
I have a MS2 V.3.
doing research I saw megatunix with Ubuntu, it is, does it work?


If you have megatunix built and installed (see the installing megatunix on ubuntu thread) you can run "msloader ms2 /dev/ttyS0 /path/to/your/s19/file" This assumes you are using a hardware serial port (built into your motherboard/computer, and it's serial port 1 (COMM1 under windows) Alterntively you can use mtxloader if you want a graphical application, no CLI options needed for this one, its all pick and choose in the UI. If you are using a USB to serial adapter, the port name is USUALLY /dev/ttyUSB0.
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
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1201
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: How to install new firmware from Linux/OS-X systems

Postby bi-andrea » Tue Aug 14, 2012 8:41 am

reading the guides, there is a bridge to install the boot firewallle, what?
bi-andrea
MS/Extra Newbie
 
Posts: 23
Joined: Tue Nov 15, 2011 3:14 pm

Re: How to install new firmware from Linux/OS-X systems

Postby djandruczyk » Tue Aug 14, 2012 4:54 pm

bi-andrea wrote:reading the guides, there is a bridge to install the boot firewallle, what?


Not sure I understand your language, but if you're referring to the boot jumper on the board, that may be required depending on what firmware is on the device, typically, if I want to make sure the device is completely wiped, I would first power off the MS, jumper the boot jumper on the MS2 cpu card, power up the MS, load "bootstrap.s19", make sure it loads with no error, power off MS, remove jumper, power on and then load the main firmware file. The boot jumper is needed if the device has corrupted the firmware (or was only partially loaded due to a serial dropout or other issue)., once the MS2-Extra firmware is in place the jumper is not usually needed any longer.
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
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1201
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: How to install new firmware from Linux/OS-X systems

Postby bi-andrea » Sat Aug 18, 2012 7:41 am

MegaTunix Firmware Loader I created this post
Code: Select all
Port successfully opened
Firmware file successfully opened
Attempting Wakeup...
error reading errorCode
error reading statusCode
error reading prompt
Error code 0x00
Prompt was expected to be ">" but returned as "Attempting Wakeup...
error reading errorCode
error reading statusCode
error reading prompt
Error code 0x00
Prompt was expected to be ">" but returned as "Attempting Wakeup...
error reading errorCode
error reading statusCode
error reading prompt
Error code 0x00
Prompt was expected to be ">" but returned as "Attempting Wakeup...
error reading errorCode
error reading statusCode
error reading prompt
Error code 0x00
Prompt was expected to be ">" but returned as "Attempting Wakeup...
error reading errorCode
error reading statusCode
error reading prompt
Error code 0x00
Prompt was expected to be ">" but returned as "Attempting Wakeup...
error reading errorCode
error reading statusCode
error reading prompt
Error code 0x00
Prompt was expected to be ">" but returned as "Could not wake up processor, try jumpering
the boot jumper and power cycling the ECU...

As I see jumpers BOOTLOADER ENTRY 1-2 near the ECU, an ECU in jamper backs off and jamper CTS-RTS.
On what jamper I have to work or follow a sequence to enter the firmware
bi-andrea
MS/Extra Newbie
 
Posts: 23
Joined: Tue Nov 15, 2011 3:14 pm

Re: How to install new firmware from Linux/OS-X systems

Postby djandruczyk » Sun Aug 19, 2012 9:32 am

bi-andrea wrote:MegaTunix Firmware Loader I created this post
Code: Select all
Port successfully opened
Firmware file successfully opened
Attempting Wakeup...
error reading errorCode
error reading statusCode
error reading prompt
Error code 0x00
Prompt was expected to be ">" but returned as "Attempting Wakeup...
error reading errorCode
error reading statusCode
error reading prompt
Error code 0x00
Prompt was expected to be ">" but returned as "Attempting Wakeup...
error reading errorCode
error reading statusCode
error reading prompt
Error code 0x00
Prompt was expected to be ">" but returned as "Attempting Wakeup...
error reading errorCode
error reading statusCode
error reading prompt
Error code 0x00
Prompt was expected to be ">" but returned as "Attempting Wakeup...
error reading errorCode
error reading statusCode
error reading prompt
Error code 0x00
Prompt was expected to be ">" but returned as "Attempting Wakeup...
error reading errorCode
error reading statusCode
error reading prompt
Error code 0x00
Prompt was expected to be ">" but returned as "Could not wake up processor, try jumpering
the boot jumper and power cycling the ECU...

As I see jumpers BOOTLOADER ENTRY 1-2 near the ECU, an ECU in jamper backs off and jamper CTS-RTS.
On what jamper I have to work or follow a sequence to enter the firmware



When you jumper the pins on the MS2 card, you need to POWER CYCLE the ecu (turn off, then turn on), THEN attempt to load the firmware, if it doesn't work on the first try, try again.
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
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1201
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: How to install new firmware from Linux/OS-X systems

Postby bi-andrea » Tue Aug 21, 2012 3:24 am

I did it with minicom to load the firmware 3.2.1_release configure it according to your first post.
How Jamper I used the "bootloader entry" and get Jamper the ECU., :yeah!:
Now it is Megatunix that TunerStudio do not see the firmware, why? :shock:
bi-andrea
MS/Extra Newbie
 
Posts: 23
Joined: Tue Nov 15, 2011 3:14 pm

Re: How to install new firmware from Linux/OS-X systems

Postby djandruczyk » Tue Aug 21, 2012 4:45 am

bi-andrea wrote:I did it with minicom to load the firmware 3.2.1_release configure it according to your first post.
How Jamper I used the "bootloader entry" and get Jamper the ECU., :yeah!:
Now it is Megatunix that TunerStudio do not see the firmware, why? :shock:


You cannot load ms2 firmware with minicom, you need to use msloader or mtxloader.
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
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1201
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: How to install new firmware from Linux/OS-X systems

Postby bi-andrea » Tue Aug 21, 2012 6:29 am

how?
but if I saw that there were ...
in short, all over again :shock:
bi-andrea
MS/Extra Newbie
 
Posts: 23
Joined: Tue Nov 15, 2011 3:14 pm

Re: How to install new firmware from Linux/OS-X systems

Postby bi-andrea » Tue Aug 21, 2012 10:19 am

I also tried setting minicom to mtxloader, minicom fails to load, while Megatunix and TunerStudio do not see the firmware.
I have a suspicion, but I put the 3.2.1_release both tuning tools do not see a vaolre so high.
If I use the version of the firmware ms2extra_2.1.0e_release_20100822
for a sequence of a 4-cylinder, the same can?
bi-andrea
MS/Extra Newbie
 
Posts: 23
Joined: Tue Nov 15, 2011 3:14 pm

Re: How to install new firmware from Linux/OS-X systems

Postby djandruczyk » Tue Aug 21, 2012 10:38 am

bi-andrea wrote:I also tried setting minicom to mtxloader, minicom fails to load, while Megatunix and TunerStudio do not see the firmware.
I have a suspicion, but I put the 3.2.1_release both tuning tools do not see a vaolre so high.
If I use the version of the firmware ms2extra_2.1.0e_release_20100822
for a sequence of a 4-cylinder, the same can?



I don't understand what you're saying...

Really simple method:
jumper the boot jumper on ms2 daughter card
power up ms2
on host computer run "msloader ms2 /dev/ttyUSB0 /path/to/bootstrap.s19"
wait untill it completes successfully
remove boot jumper on ms2 daughter card
power cycle ms2
on host computer run "msloader ms2 /dev/ttyUSB0 /path/to/firmware.s19"
wait until it completes successfully

NOTE: if your serial port is not /dev/ttyUSB0 replace the string in the above commands with the right port, make sure your user account has permissions to read and write to that port, or use "sudo" in front of the above commands. Adjust the paths to the s19 files as appropriate for your system.

minicom is ONLY and I REPEAT ONLY for MS1 devices, and even that has been supplanted by msloader or it's gui cousin mtxloader, which can handle both MS1 and MS2 (not MS3 due to what seems to be a locked bootloader).
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
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1201
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: How to install new firmware from Linux/OS-X systems

Postby jsmcortina » Tue Aug 21, 2012 12:10 pm

What is locked about the MS3 bootloader?

James
I can supply, repair or upgrade Megasquirts in UK.

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 27984
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

PreviousNext

Return to Megatunix

Who is online

Users browsing this forum: No registered users and 0 guests