This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: upload using xmodem, ymodem



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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]