Page 2 of 3

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

Posted: Sun Feb 13, 2011 6:28 pm
by TheVinci
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.

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

Posted: Mon Feb 14, 2011 10:56 am
by djandruczyk
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).
.

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

Posted: Wed Dec 21, 2011 12:29 pm
by mahler
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?

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

Posted: Wed Dec 21, 2011 12:50 pm
by jsmcortina
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

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

Posted: Wed Dec 21, 2011 7:52 pm
by mahler
Thanks James, those work great.

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

Posted: Fri Jan 13, 2012 5:23 pm
by StevenD57
Thanks Dave! These directions using Minicom on my MS1 system worked like a charm. These directions should be in the MSnS-Extra manual somewhere.

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

Posted: Fri Jan 13, 2012 8:41 pm
by djandruczyk
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.

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

Posted: Fri Aug 10, 2012 11:47 am
by bi-andrea
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?

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

Posted: Mon Aug 13, 2012 4:31 am
by jsmcortina
Use the current firmware as the zip includes an interactive Linux firmware loader.

James

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

Posted: Mon Aug 13, 2012 5:16 am
by djandruczyk
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.

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

Posted: Tue Aug 14, 2012 8:41 am
by bi-andrea
reading the guides, there is a bridge to install the boot firewallle, what?

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

Posted: Tue Aug 14, 2012 4:54 pm
by djandruczyk
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.

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

Posted: Sat Aug 18, 2012 7:41 am
by bi-andrea
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

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

Posted: Sun Aug 19, 2012 9:32 am
by djandruczyk
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.

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

Posted: Tue Aug 21, 2012 3:24 am
by bi-andrea
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:

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

Posted: Tue Aug 21, 2012 4:45 am
by djandruczyk
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.

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

Posted: Tue Aug 21, 2012 6:29 am
by bi-andrea
how?
but if I saw that there were ...
in short, all over again :shock:

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

Posted: Tue Aug 21, 2012 10:19 am
by bi-andrea
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?

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

Posted: Tue Aug 21, 2012 10:38 am
by djandruczyk
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).

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

Posted: Tue Aug 21, 2012 12:10 pm
by jsmcortina
What is locked about the MS3 bootloader?

James