#==================================
#!/bin/sh
# set up stuff

XFILE=/home/philw/bkimage.bin
PORT=/dev/ttyS0
echo "reset the uCsimm please"
sleep 1

# 9600 and set speed to fast

stty 9600 < $PORT
echo "fast" > $PORT
sleep 1

# send the rx command
stty 115200 < $PORT
echo "rx" > $PORT
sleep 1

# now download the file
/usr/bin/sx -vv $XFILE >$PORT <$PORT
sleep 1

# issue the program command
echo "program" > $PORT

#we just watch it for now we should wait for the B$
echo "Presss CTRL-C when you see the B$ prompt"
cat < $PORT




