dwarf2bd Make Error


When compiling any of the sample applications (or indeed any application at all) for the IMote2 platform, Make will fail on a missing binary dwarfbd. However, this binary doesnt appear to be required for proper generation of platform binaries, as we already have the output file (*.out) in the build directory.

Because this binary doesnt appear to be needed for the IMote2 platform (but parhaps is needed for the pxa27x platform)1 and is just stopping the makefile from completing successfully, I edited the pxa27x make rules file (possibly breaking them, but Im unable to test this due to not having the right platform to test on) thus;

File:  tools/make/pxa27x/pxa27x.rules

AS = xscale-elf-as
ASFLAGS = -mcpu=iwmmxt -mfpu=softfpa
OBJCOPY = xscale-elf-objcopy
OBJDUMP = xscale-elf-objdump
SET_ID = $(TINYOS_MAKE_PATH)/msp/set-mote-id
XDB_SYMBOL_EXTRACT = dwarf2bd
NCC = ncc
LIBS = -lm

Simply replace the dwarf2bd line with the following;

XDB_SYMBOL_EXTRACT = echo [not needed for IMote2] dwarf2bd

So that the make rules file appears so;

AS = xscale-elf-as
ASFLAGS = -mcpu=iwmmxt -mfpu=softfpa
OBJCOPY = xscale-elf-objcopy
OBJDUMP = xscale-elf-objdump
SET_ID = $(TINYOS_MAKE_PATH)/msp/set-mote-id
XDB_SYMBOL_EXTRACT = echo [not needed for IMote2] dwarf2bd
NCC = ncc
LIBS = -lm

Update…

1:- The dwarf2bd binary seems to have been included in the original Intel pack, but has since been removed (apart from commercial versions) and seems only to serve as an interface to their programming kit, so isn’t really nessicary. Just flash your iMote2 with the “main.exe” from the build/imote2/ directory after editing the makefile as described here (or however you want to do it).

This Post Has Been Viewed 186 Times