Practice based on previous articles
Operating system Ubuntu 10.04
Tinyos 2.1.1
I. Install the cross-compilation chain
1. Download The XScale-elf-GCC compilation chain and go to the download directory.
# Cd <same_directory_as_downloaded_packages>
2. Installation
# Dpkg -- install-force-XScale-elf-*. Deb
3. Test
# Cd $ tosroot/apps/<your app>
# Make intelmote2
Ii. execute script configuration
1. Download the script
# Wget http://www.cs.columbia.edu /~ Msz/WSN/scripts/imote2-ocd-program.py
2. Modify the execution permission
# Chmod + x imote2-ocd-program.py
3. Modify the default configuration, edit/opt/tinyos-2.1.0/support/make/PXA27X/openocd. Extra
Set the default programmer? = ($ PATH)/imote2-ocd-program.py
Changed to programmer? = ($ Your_path)/imote2-ocd-program.py
4. modify configuration in imote2-ocd-program.py
Change the content in the quotation marks after "openocd_cmd ="
Openocd-F interface/olimex-arm-usb-tiny-h.cfg-F board/crossbow_tech_imote2.cfg
3. Download the program
# Cd $ tosroot/apps/<your app>
# Make intelmote2 install openocd
If the above content is unclear or incorrect, please correct it.