This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: upload using xmodem, ymodem
- To: Christoph Csebits <Christoph dot Csebits at frequentis dot com>
- Subject: RE: [ECOS] upload using xmodem, ymodem
- From: Gary Thomas <gthomas at cambridge dot redhat dot com>
- Date: Tue, 12 Jun 2001 10:41:08 -0600 (MDT)
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat, Inc.
On 12-Jun-2001 Christoph Csebits wrote:
> hi
>
> i have redboot working on my MPC860T based
> board in RAM. The host is linux.
> I am using eCos CVS version from today.
>
> Loading a file with gdb is working.
>
> I tried many failing possibilities
> to load a .srec file with minicom and sx.
> (XMODEM and YMODEM)
> There is no working eth till now.
>
> Can anybody show me the right way
> for uploading an executable via serial
> line.
I use this script for 'minicom' on Linux. It sends a binary file
to RedBoot. If you want to send .srec file, just leave out the
"-b" and "-r" options. In 'minicom' the script is activated via ^A-G
-------------------------- script -----------------------------------
getrb:
send " \c"
expect {
"Boot>" goto gotit
" " goto tryenter
timeout 1 goto getrb
}
tryenter:
send ""
expect {
"Boot>" goto gotit
timeout 1 goto getrb
}
gotit:
send "lo -b 0x20000 -r -m xm"
! sx /tmp/seb.RAM