[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/MassProduction
autobuild.sh, NONE, 1.1 nextid.sh, NONE, 1.1 README.txt, 1.1, 1.2
David Henry
david_henry at users.sourceforge.net
Mon Jan 14 04:32:12 PST 2008
Update of /cvsroot/tinyos/tinyos-1.x/contrib/MassProduction
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv32105/contrib/MassProduction
Modified Files:
README.txt
Added Files:
autobuild.sh nextid.sh
Log Message:
Initial version made for Boomerang and burning via JTAG/msp430-downloader
--- NEW FILE: autobuild.sh ---
// $Id: autobuild.sh,v 1.1 2008/01/14 12:32:06 david_henry Exp $
/*
* Copyright (c) 2008 Zickel Engineering
* All rights reserved.
*
* This file is distributed under the terms in the attached ZICKEL-LICENSE
* file. If you do not find these files, copies can be found at
* http://www.zickel.net/ZICKEL-LICENSE.txt and by emailing info at zickel.net.
*/
/**
* @author David Henry, Zickel Engineering <info at zickel.net>
*/
#!/usr/bin/bash
#autoincrementing of nodeid
source $HOME/nextid.sh
echo "Building nodeid $NEXTID channel number $CC2420_DEF_CHANNEL"
/opt/tinyos-1.x/tools/make/msp/set-mote-id --objcopy msp430-objcopy --objdump msp430-objdump --target ihex build/tmoteinvent/main.ihex build/tmoteinvent/main.ihex.out-$NEXTID TOS_LOCAL_ADDRESS=$NEXTID CC2420_CHANNEL=$CC2420_DEF_CHANNEL
echo "Burning main.ihex.out-$NEXTID"
# truncate EOF from TOSboot
sed '/^:00000001FF$/ d' /opt/tinyos-1.x/tos/lib/Deluge/TOSboot/build/telosb/main.ihex > both.ihex
# add delugebasic
cat build/tmoteinvent/main.ihex.out-$NEXTID >> both.ihex
msp430-downloader both.ihex
echo "#!/usr/bin/bash" > $HOME/nextid.sh
echo "export NEXTID=$[$NEXTID+1]" >> $HOME/nextid.sh
#
--- NEW FILE: nextid.sh ---
#!/usr/bin/bash
export NEXTID=87
Index: README.txt
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/MassProduction/README.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** README.txt 14 Jan 2008 12:19:21 -0000 1.1
--- README.txt 14 Jan 2008 12:32:06 -0000 1.2
***************
*** 20,21 ****
--- 20,39 ----
set-mote-id is used to change the value of any symbol in the .data section of
a loadable file, such as main.exe.
+
+ Environment
+ ===========
+ This method was developed in the Moteiv Boomerang tool kit. As burning was
+ done via JTAG and msp430-downloader, there is an intermediate process to
+ concatenate the TOSBoot binary to the application binary. If you are burning
+ via USB this is taken care of automatically.
+
+ Methodology
+ ===========
+ A unique ID is generated from the nextid.sh script, which is itself regenerated
+ by the autobuild.sh script.
+ autobuild.sh generates a new ihex file from the generic main.exe file. It has
+ a new value of TOS_LOCAL_ADDRESS and, optionally, CC2420_CHANNEL. This line
+ can be modified to alter any symbol in the loadable file.
+ The new ihex file is burned to the mote.
+ After completion of burning, the value of NEXTID is incremented as a new copy
+ of nextid.sh generated.
More information about the Tinyos-contrib-commits
mailing list