From: Grant Edwards <grante@visi.com>
To: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Redboot: [xyz]modem via TCP?
Date: Wed, 18 Apr 2001 11:02:00 -0000 [thread overview]
Message-ID: <20010418130326.A20958@visi.com> (raw)
In-Reply-To: <20010208163254.A3275@visi.com>
> > With Redboot, can you do [xyz]modem download via TCP instead of
> > serial port?
>
> I slapped together a Python program that uses "sx" to download
> an S record file via TCP using xmodem protocol. Small files
> (less than 2K or so) work fine, but when I get up to about 2K,
> RedBoot crashes. I can load thelarge files fine via TFTP and
> xmodem/serial.
I've been messing around with this intermittently for a few
days and haven't made any progress. I had to disable the
telnet command character processing in net_io.c so that x-modem
packets are allowed through "raw". After that I can download
some files, but not others. With DEBUG enabled in xyzModem.c,
I get errors because things (e.g. the ram_start variable) is
being overwritten by data from x-modem packets. With DEBUG
disabled, I get different error behavior. There must be a
buffer overflow somewhere, but I havn't been able to find it.
I've noticed that if the s-record code decides to give up, the
x-modem link isn't shut down gracefully and the other end keeps
sending retries that are interpreted by RedBoot as commands.
That's not very easy to fix since the s-record routines only
have a "getc()" routine to call and no way to shut down the
transfer when an error is detected.
Since x-modem won't work due to telnet command processing
anyway, I think I'm going to try a third "direct" mode where
the s-record file is accepted directly rather than being
encapsulated in x-modem packets.
--
Grant Edwards
grante@visi.com
prev parent reply other threads:[~2001-04-18 11:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-06 11:37 Grant Edwards
2001-02-08 14:29 ` Grant Edwards
2001-02-09 5:29 ` Gary Thomas
2001-02-09 7:24 ` Grant Edwards
2001-02-09 10:36 ` Grant Edwards
2001-04-18 11:02 ` Grant Edwards [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010418130326.A20958@visi.com \
--to=grante@visi.com \
--cc=ecos-discuss@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).