Hi!
On Sat, 16 Sep 2006, Chad Metcalf wrote:
> Does anyone have netbsl working for TinyOS 2.x? I tried to modify the
> script and .extra out of 1.x and Boomerang but I seem to be stumped.
> I'm not getting any errors but the programming isn't going through.
>
> I can ping my Tmote Connect. netcat is installed and working. I'm not
> sure where else to look for problems.
Here is a netbsl and a netbsl.extra that worked from me. I took them from
a rather old 1.1.x (something around 1.1.15 I think; I didn't check to see
if they are different from the latest CVS). They need to go into
tinyos-2.x/support/make/msp.
Have a nice day!
Razvan ME
#!/bin/sh
#$Id: netbsl,v 1.1 2005/05/11 07:33:08 cssharp Exp $
# @author Cory Sharp <[EMAIL PROTECTED]>
[ x"$1" = x ] && echo -e "usage: netbsl [host:port] [file|-|.] [args...]\na
filename of . means no file" && exit 0
HOSTPORT="$1"
shift
: ${NETBSL_HOSTPORT_PREFIX:=192.168.1.}
if [ x"${HOSTPORT%:*}" = x"$HOSTPORT" ]
then
POSTFIX=`perl -e '$_=$ARGV[0]; s/(\d+)\.(\d+)/"$1:".($2+10000)/e; print;'
"$HOSTPORT"`
HOSTPORT="$NETBSL_HOSTPORT_PREFIX$POSTFIX"
fi
HOST=${HOSTPORT%:*}
PORT=${HOSTPORT##*:}
FILE="$1"
shift
if [ x"$FILE" = x. ]
then
echo msp430-bsl "$@" | /usr/bin/nc $HOST $PORT
else
(echo msp430-bsl "$@"; cat "$FILE"; echo) | /usr/bin/nc $HOST $PORT
fi
#-*-Makefile-*- vim:syntax=make
#$Id: netbsl.extra,v 1.1 2005/05/11 07:33:08 cssharp Exp $
# NETBSL arguments:
#
# netbsl,<host>:<port>
# install onto the given host:port
#
# netbsl,<host_lsb>.<port_lsb> ... like netbsl,77.2
# install onto NETBSL_HOSTPORT_PREFIX.host_lsb:10000+port_lsb
PROGRAM = netbsl
MSP_NETBSL ?= $(TINYOS_MAKE_PATH)/msp/netbsl
MSP_BSL_FLAGS ?= --telos
program: $(BSL_TARGETS) $(TELOS_PROGRAM_DEPS) FORCE
@echo " installing $(PLATFORM) binary using $(PROGRAM)"
$(MSP_NETBSL) $(NETBSL) $(INSTALL_IHEX) $(MSP_BSL_FLAGS) -r -e -I -p
rm -f $(subst .ihex.,.exe.,$(INSTALL_IHEX)) $(INSTALL_IHEX)
program_no_e: $(BSL_TARGETS) $(TELOS_PROGRAM_DEPS) FORCE
@echo " installing $(PLATFORM) binary using $(PROGRAM) (without mass
erase)"
$(MSP_NETBSL) $(NETBSL) $(INSTALL_IHEX) $(MSP_BSL_FLAGS) -r -I -p
rm -f $(subst .ihex.,.exe.,$(INSTALL_IHEX)) $(INSTALL_IHEX)
program_bl: $(BSL_TARGETS) $(TELOS_PROGRAM_DEPS) FORCE
@echo " installing $(PLATFORM) bootloader using $(PROGRAM)"
$(MSP_NETBSL) $(NETBSL) $(BOOTLOADER) $(MSP_BSL_FLAGS) -r -e -I -p
program_input: ihex
@:
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help