Hi Prateek,

Try deluge tests instead.
Go to $TOSROOT/apps/tests/deluge/Blink directory.
Uncomment the following line in Makefile :
CFLAGS += -DDELUGE_BASESTATION

Save and exit text editor.
Then try , make telosb

Was it successful?


On 01/05/2012 09:06 ??, Prateek G V wrote:
Hello Everyone,

I'm Prateek. I tried installing tinyos-2.1.1 on Ubuntu 12.04 and I'm facing some issues. Kindly help me rectify it.

Steps followed
1. Added the deb path http://tinyos.stanford.edu/tinyos/dists/ubuntu/ to the sources.list file
2. Did a sudo apt-get install tinyos-2.1.1
3. Installed it successfully.
4. Connected a telosb mote and did motelist. It detected the mote. No issues with this. 5. Went to the following directory /opt/tinyos-2.1.1/tos/lib/tosboot/ and executed "make micaz" - No problem with this. 6. In the same directory I executed the command "make telosb" - This is where I am facing the problem right now.

*This is what the error looks like* - Kindly help me fix it

mkdir -p build/telosb
    compiling TosBootC to a telosb binary
ncc -o build/telosb/main.exe -Os -O -DNESC_BUILD_BINARY -mdisable-hwmul -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22 -DTOSBOOT_START=0x4000 -DTOSBOOT_END=0x4a00 -Imsp430 -Imsp430f1611 -Istm25p -Itelosb -Ilib -I../net/Deluge -DIDENT_APPNAME=\"TosBootC\" -DIDENT_USERNAME=\"prateekgv\" -DIDENT_HOSTNAME=\"ssplablaptop\" -DIDENT_USERHASH=0xab3d9c1bL -DIDENT_TIMESTAMP=0x4fa022fdL -DIDENT_UIDHASH=0x0aefaf8bL TosBootC.nc -lm In file included from /opt/tinyos-2.1.1/tos/chips/msp430/msp430hardware.h:29,
                 from telosb/hardware.h:34,
                 from /opt/tinyos-2.1.1/tos/system/SchedulerBasicP.nc:41:
/usr/bin/../lib/gcc/msp430/4.5.3/../../../../msp430/include/io.h:153:2: warning: #warning "Unknown arch! Please check"
In file included from /opt/tinyos-2.1.1/tos/system/SchedulerBasicP.nc:41,
                 from /opt/tinyos-2.1.1/tos/system/TinySchedulerC.nc:40:
telosb/hardware.h: In function `TOSH_SET_PIN_DIRECTIONS':
telosb/hardware.h:67: `P3SEL' undeclared (first use in this function)
telosb/hardware.h:67: (Each undeclared identifier is reported only once
telosb/hardware.h:67: for each function it appears in.)
telosb/hardware.h:69: `P1DIR' undeclared (first use in this function)
telosb/hardware.h:70: `P1OUT' undeclared (first use in this function)
telosb/hardware.h:72: `P2DIR' undeclared (first use in this function)
telosb/hardware.h:73: `P2OUT' undeclared (first use in this function)
telosb/hardware.h:75: `P3DIR' undeclared (first use in this function)
telosb/hardware.h:76: `P3OUT' undeclared (first use in this function)
telosb/hardware.h:78: `P4DIR' undeclared (first use in this function)
telosb/hardware.h:79: `P4OUT' undeclared (first use in this function)
telosb/hardware.h:81: `P5DIR' undeclared (first use in this function)
telosb/hardware.h:82: `P5OUT' undeclared (first use in this function)
telosb/hardware.h:84: `P6DIR' undeclared (first use in this function)
telosb/hardware.h:85: `P6OUT' undeclared (first use in this function)
In file included from /opt/tinyos-2.1.1/tos/system/TinySchedulerC.nc:41:
In component `McuSleepC':
/opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc: In function `getPowerState': /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:69: `TACCTL0' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:69: `CCIE' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:70: `TACCTL1' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:71: `TACCTL2' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:72: `TACTL' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:72: `TASSEL_3' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:72: `TASSEL_2' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:73: `ME1' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:73: `UTXE0' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:73: `URXE0' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:73: `U0TCTL' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:73: `SSEL1' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:74: `ME2' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:74: `UTXE1' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:74: `URXE1' undeclared (first use in this function) /opt/tinyos-2.1.1/tos/chips/msp430/McuSleepC.nc:74: `U1TCTL' undeclared (first use in this function)
In file included from stm25p/ExtFlashC.nc:43,
                 from TosBootC.nc:42:
In component `HplUsart0C':
msp430/HplUsart0C.nc: In function `HplUsartControl.disableSPI':
msp430/HplUsart0C.nc:41: `ME1' undeclared (first use in this function)
msp430/HplUsart0C.nc:42: `U0CTL' undeclared (first use in this function)
msp430/HplUsart0C.nc:43: `U0TCTL' undeclared (first use in this function)
msp430/HplUsart0C.nc:44: `U0RCTL' undeclared (first use in this function)
msp430/HplUsart0C.nc: In function `HplUsartControl.setModeSPI':
msp430/HplUsart0C.nc:52: `U0CTL' undeclared (first use in this function)
msp430/HplUsart0C.nc:52: `SWRST' undeclared (first use in this function)
msp430/HplUsart0C.nc:52: `CHAR' undeclared (first use in this function)
msp430/HplUsart0C.nc:52: `SYNC' undeclared (first use in this function)
msp430/HplUsart0C.nc:52: `MM' undeclared (first use in this function)
msp430/HplUsart0C.nc:55: `U0TCTL' undeclared (first use in this function)
msp430/HplUsart0C.nc:55: `STC' undeclared (first use in this function)
msp430/HplUsart0C.nc:55: `CKPH' undeclared (first use in this function)
msp430/HplUsart0C.nc:55: `SSEL_SMCLK' undeclared (first use in this function)
msp430/HplUsart0C.nc:58: `U0BR0' undeclared (first use in this function)
msp430/HplUsart0C.nc:59: `U0BR1' undeclared (first use in this function)
msp430/HplUsart0C.nc:62: `ME1' undeclared (first use in this function)
msp430/HplUsart0C.nc:62: `USPIE0' undeclared (first use in this function)
msp430/HplUsart0C.nc:67: `IFG1' undeclared (first use in this function)
msp430/HplUsart0C.nc: In function `HplUsartControl.disableI2C':
msp430/HplUsart0C.nc:77: `U0CTL' undeclared (first use in this function)
msp430/HplUsart0C.nc:77: `I2CEN' undeclared (first use in this function)
msp430/HplUsart0C.nc:78: `I2C' undeclared (first use in this function)
msp430/HplUsart0C.nc:79: `I2CTCTL' undeclared (first use in this function)
msp430/HplUsart0C.nc: In function `HplUsartControl.setModeI2C':
msp430/HplUsart0C.nc:86: `U0CTL' undeclared (first use in this function)
msp430/HplUsart0C.nc:86: `I2C' undeclared (first use in this function)
msp430/HplUsart0C.nc:86: `SYNC' undeclared (first use in this function)
msp430/HplUsart0C.nc:86: `MST' undeclared (first use in this function)
msp430/HplUsart0C.nc:89: `I2CTCTL' undeclared (first use in this function)
msp430/HplUsart0C.nc:89: `I2CSSEL_2' undeclared (first use in this function)
msp430/HplUsart0C.nc:89: `I2CTRX' undeclared (first use in this function)
msp430/HplUsart0C.nc:92: `I2CEN' undeclared (first use in this function)
msp430/HplUsart0C.nc: In function `HplUsartControl.isTxEmpty':
msp430/HplUsart0C.nc:98: `U0TCTL' undeclared (first use in this function)
msp430/HplUsart0C.nc:98: `TXEPT' undeclared (first use in this function)
msp430/HplUsart0C.nc: In function `HplUsartControl.isTxIntrPending':
msp430/HplUsart0C.nc:105: `IFG1' undeclared (first use in this function)
msp430/HplUsart0C.nc:105: `UTXIFG0' undeclared (first use in this function)
msp430/HplUsart0C.nc: In function `HplUsartControl.isRxIntrPending':
msp430/HplUsart0C.nc:113: `IFG1' undeclared (first use in this function)
msp430/HplUsart0C.nc:113: `URXIFG0' undeclared (first use in this function)
msp430/HplUsart0C.nc: In function `HplUsartControl.tx':
msp430/HplUsart0C.nc:121: `U0TXBUF' undeclared (first use in this function)
msp430/HplUsart0C.nc: In function `HplUsartControl.rx':
msp430/HplUsart0C.nc:125: `U0RXBUF' undeclared (first use in this function)
In file included from TosBootC.nc:43:
In component `HardwareC':
msp430/HardwareC.nc: In function `Hardware.init':
msp430/HardwareC.nc:40: `BCSCTL1' undeclared (first use in this function)
msp430/HardwareC.nc:40: `RSEL0' undeclared (first use in this function)
msp430/HardwareC.nc:40: `RSEL1' undeclared (first use in this function)
msp430/HardwareC.nc:40: `RSEL2' undeclared (first use in this function)
msp430/HardwareC.nc:40: `XT2OFF' undeclared (first use in this function)
msp430/HardwareC.nc:41: `DCOCTL' undeclared (first use in this function)
msp430/HardwareC.nc:41: `DCO0' undeclared (first use in this function)
msp430/HardwareC.nc:41: `DCO1' undeclared (first use in this function)
msp430/HardwareC.nc:41: `DCO2' undeclared (first use in this function)
msp430/HardwareC.nc: In function `Hardware.reboot':
msp430/HardwareC.nc:45: `WDTCTL' undeclared (first use in this function)
In file included from TosBootC.nc:44:
In component `InternalFlashC':
msp430/InternalFlashC.nc: In function `InternalFlash.write':
msp430/InternalFlashC.nc:84: `FCTL2' undeclared (first use in this function) msp430/InternalFlashC.nc:84: `FWKEY' undeclared (first use in this function) msp430/InternalFlashC.nc:84: `FSSEL1' undeclared (first use in this function)
msp430/InternalFlashC.nc:84: `FN2' undeclared (first use in this function)
msp430/InternalFlashC.nc:85: `FCTL3' undeclared (first use in this function) msp430/InternalFlashC.nc:86: `FCTL1' undeclared (first use in this function) msp430/InternalFlashC.nc:86: `ERASE' undeclared (first use in this function)
msp430/InternalFlashC.nc:88: `WRT' undeclared (first use in this function)
msp430/InternalFlashC.nc:102: `LOCK' undeclared (first use in this function)
In file included from TosBootC.nc:47:
In component `ProgFlashC':
msp430/ProgFlashC.nc: In function `ProgFlash.write':
msp430/ProgFlashC.nc:52: `FCTL2' undeclared (first use in this function)
msp430/ProgFlashC.nc:52: `FWKEY' undeclared (first use in this function)
msp430/ProgFlashC.nc:52: `FSSEL1' undeclared (first use in this function)
msp430/ProgFlashC.nc:52: `FN2' undeclared (first use in this function)
msp430/ProgFlashC.nc:53: `FCTL3' undeclared (first use in this function)
msp430/ProgFlashC.nc:54: `FCTL1' undeclared (first use in this function)
msp430/ProgFlashC.nc:54: `ERASE' undeclared (first use in this function)
msp430/ProgFlashC.nc:56: `WRT' undeclared (first use in this function)
msp430/ProgFlashC.nc:64: `LOCK' undeclared (first use in this function)
In file included from TosBootC.nc:48:
In component `VoltageC':
msp430/VoltageC.nc: In function `Voltage.okToProgram':
msp430/VoltageC.nc:48: `ADC12CTL0' undeclared (first use in this function)
msp430/VoltageC.nc:48: `ADC12ON' undeclared (first use in this function)
msp430/VoltageC.nc:48: `SHT0_2' undeclared (first use in this function)
msp430/VoltageC.nc:48: `REFON' undeclared (first use in this function)
msp430/VoltageC.nc:50: `ADC12CTL1' undeclared (first use in this function)
msp430/VoltageC.nc:50: `SHP' undeclared (first use in this function)
msp430/VoltageC.nc:52: `ADC12MCTL0' undeclared (first use in this function)
msp430/VoltageC.nc:52: `EOS' undeclared (first use in this function)
msp430/VoltageC.nc:52: `SREF_1' undeclared (first use in this function)
msp430/VoltageC.nc:52: `INCH_11' undeclared (first use in this function)
msp430/VoltageC.nc:57: `ENC' undeclared (first use in this function)
msp430/VoltageC.nc:59: `ADC12SC' undeclared (first use in this function)
msp430/VoltageC.nc:61: `ADC12IFG' undeclared (first use in this function)
msp430/VoltageC.nc:61: `BIT0' undeclared (first use in this function)
msp430/VoltageC.nc:68: `ADC12MEM0' undeclared (first use in this function)
make: *** [exe0] Error 1



_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to