LogoEditor Kernel Flash Problems

Posted by: Derek

LogoEditor Kernel Flash Problems - 05/11/2001 12:31

Hi Tony,

Can't seem to flash a new kernal with LogoEditor at the moment. Am running 2.0b3 with Mikes dodgy volume knob fix v3 (it's the knob that is dodgy, not Mikes fix ). I keep getting the following output from LogoEditor:

found empeg unit: entering program mode
manufacturer=0089, product=88c1
waiting for prompt
starting erase [Failed to get echo-back on erase command.

Error: erasepage(10000) got code 1

Press the Enter key to continue.
Posted by: tfabris

Re: LogoEditor Kernel Flash Problems - 05/11/2001 13:38

And you're able to apply upgrade files from the same computer with the same serial port? But not kernels?

There's been one other user experiencing problems with upload.exe, and changing the timing of some stuff seemed to fix it. Can't remember who it was, though.

Question: if you downgrade to 1.03 does it start working again? (shouldn't make a difference, come to think of it, but you never know).
Posted by: bonzi

Re: LogoEditor Kernel Flash Problems - 05/11/2001 13:38

I had the same problem with both kernel and logos (but not upgrade). At Tony's advice I tried fiddling with download.c, adding debug messages etc, and - guess what - one of those versions (made slower by echoing characters read from serial, and with a alrge - unused - static buffer for those characters) works every time! I am baffled, because I am quite sure I didn't change anything save for that dump, which should, if anything, make things worse...

I am attaching a zip with both source and exe. The exe might or might not work on your machine, since I compiled it under CygWin using gcc, and I don't know whether it uses its own dlls (I don't have MS tools installed at home), but that's what the source is for . Usage is
download_dbg zImage 10000
or
download_dbg logo.bin a000
Comm port is hardcoded to com2.

Let us know whether it works.
Posted by: Derek

Re: LogoEditor Kernel Flash Problems - 05/11/2001 13:43

Sorry, forgot to mention that upgrade does work. Have to go home now, so won't be able to try anything again 'til tomorrow :-(

ciao
Posted by: Alan

Re: LogoEditor Kernel Flash Problems - 06/11/2001 16:38

I am seeing the same response trying to flash the kernel on my MK1. It always hoses the existing kernel requiring 2.03 to be re installed. I will try it on another PC after while.
Posted by: Alan

Re: LogoEditor Kernel Flash Problems - 07/11/2001 07:24

The kernel flash worked fine on another PC.

Alan
Posted by: Dearing

Re: LogoEditor Kernel Flash Problems - 07/11/2001 07:59

Yes, I have the same problem trying to upload kernels to my Mk1 from Win98. The wierd thing is that upgrades AND LOGOS upload fine, just kernel images fail every time from that machine. Uploading from my work laptop (NT) goes great every time. Go figure...
Posted by: tfabris

Re: LogoEditor Kernel Flash Problems - 07/11/2001 08:58

Can you do me a favor?

Can you narrow down exactly where the timing needs to be slowed down (perhaps down to one line of added code) so that I can incorporate this into my next logo editor release?

I can't do it myself because I can't reproduce the bug on my computer.
Posted by: bonzi

Re: LogoEditor Kernel Flash Problems - 07/11/2001 09:31

I'll try.
Posted by: Derek

Re: LogoEditor Kernel Flash Problems - 08/11/2001 11:44

Finally got a chance to try out your debug version of download.c. It worked! You do need cygwin, but I had it on my system anyway so that wasn't a problem . I was going to give you are more full report (got some kind of ".. error 16" message just after the finding the empeg bar and before Hugos bootstrap comments) but Win2k did the old BSOD thing on me (who the heck said Win2k was more stable than NT?!!). Thanks anyway. Hopefully this will give you and Tony something to work with.
Posted by: frog51

Re: LogoEditor Kernel Flash Problems - 18/12/2001 09:39

I had a lot of issues with the download for com1 - one upload in 10 would actually work. All other tries would crash out at the same initial point. I altered every conceivable setting for ports on my PC and was convinced I was just missing something obvious until I used the com2 executable and all worked fine (obviously I swapped the serial cable across from com1 before anyone points out potential D'oh!:)
All of a sudden I could upload logos and new, fun kernels (mlords v78 is doing fine right now.)
Posted by: tfabris

Re: LogoEditor Kernel Flash Problems - 18/12/2001 09:54

I'm still wondering where in the code I can insert some kind of a timing fix. I've got no idea what's wrong since it works on all of my PC's.
Posted by: schofiel

Re: LogoEditor Kernel Flash Problems - 19/12/2001 12:55

Have you got a modem or serial device on COM3?
Posted by: tfabris

Re: LogoEditor Kernel Flash Problems - 19/12/2001 13:25

Have you got a modem or serial device on COM3?

Agreed that these problems sound like an IRQ conflict. However, I thought we had already ruled that out...