This is something I wrote to the forum before it crashed that I found on google that may be of help.
"I found a few things on the internet and adapted them today to make life easier. Try this shell script.
# !/bin/sh
{
echo "open uClinux"
echo "user root uClinux"
echo "put ./test /bin/test"
echo "bye"
} | ftp -vin
{
echo "open uClinux"
sleep 1
echo "root"
sleep .2
echo "uClinux"
sleep .5
echo "chmod 777 /bin/test"
sleep .5
echo "gdbserver localhost:10000 /bin/test"
sleep 1
} | telnet
# end of file#
"
This is just an alternate way, but if it helps anyone........