John,
When Eric Norum was here he created a script to handle this issue by
setting some timeouts.
"ucSend.sh"
====================================================
#!/bin/sh
TARGET=${COLDFIRE_TARGET_IP_ADDRESS:-xxx.xxx.xxx.xxx}
case "$#" in
1) ;;
*) echo "Usage: $0 executable_image" >&2 ; exit 1 ;;
esac
if [ \! -r "$1" ]
then
echo "$0: $1 does not exist or is not readable" >&2
exit 1
fi
case "$1" in
*/*) cd `dirname "$1"` ; f=`basename "$1"` ;;
*) f="$1" ;;
esac
exec expect -c "set timeout 900" \
-c "spawn tftp" \
-c "expect \">\"" \
-c "send \"rexmt 1\r\"" \
-c "expect \">\"" \
-c "send \"timeout 900\r\"" \
-c "expect \">\"" \
-c "send \"binary\r\"" \
-c "expect \">\"" \
-c "send \"connect ${TARGET}\r\"" \
-c "expect \">\"" \
-c "send \"put $f\r\"" \
-c "expect \">\"" \
================================================
Just set xxx.xxx.xxx.xxx to your Coldfire IP.
Works well for us, may not speed things up, but it does help complete
the transfer.
Nick DiMonte
On 2/15/2011 3:01 PM, John Dobbins wrote:
Hello All,
I have just built EPICS base and an example IOC for an RTEMS-uC5252
target (EPICS R3.14.11, RTEMS 3.9.3), which I can say went swimmingly
well. However tftp problems are sucking all the fun out of it. The
Arcturus uCDimm comes with a TFTP server which I am using with a
255.255.0.0 netmask. File transfer takes forever and usually ends in a
time-out error. We have some evidence that things work much better on
a subnet with a 255.255.255.0 mask. Can anyone shed light on any of this?
Regards,
John Dobbins
Cornell University
- Replies:
- Re: Arcturus uCDimm + TFTP Eric Norum
- References:
- Arcturus uCDimm + TFTP John Dobbins
- Navigate by Date:
- Prev:
Re: Arcturus uCDimm + TFTP Eric Norum
- Next:
Re: Arcturus uCDimm + TFTP Eric Norum
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Arcturus uCDimm + TFTP Eric Norum
- Next:
Re: Arcturus uCDimm + TFTP Eric Norum
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|