Error:
/opt/tinyos-2.1.2/apps/Blink$ make telosb
mkdir -p build/telosb
mkdir: cannot create directory `build’: Permission denied
make: *** [builddir] Error 1
Or
mkdir -p build/telosb
/bin/sh: 1: cannot create build/telosb/ident_flags.txt: Permission denied
make: *** [ident_cache] Error 2
Solution:
Use root user, enter the command: su
If you don’t know the password of root user, change it:
/opt/tinyos-2.1.2/apps/Blink$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Like this:
Like Loading...
Hi,
I am new to TinyOS and implementing the tutorials. I am on Deluge T2 at the moment.
When I run the command
./burn serial@/dev/ttyUSB0:115200 telosb
I get the following error
xubuntos@xubuntos-tinyos:/opt/tinyos-2.x/apps/tests/deluge/Blink$ ./burn serial@/dev/ttyUSB0:115200 telosb
rm -rf build
rm: cannot remove `build/telosb/ident_flags.txt’: Permission denied
rm: cannot remove `build/telosb/StorageVolumes.h’: Permission denied
make: *** [clean] Error 1
============================ Compile and load Blink ============================
mkdir -p build/telosb
/bin/sh: cannot create build/telosb/ident_flags.txt: Permission denied
make: *** [ident_cache] Error 2
+——————————————————-+
| |
| At this point the first led (red) should be blinking. |
| |
| Press ENTER to continue… |
| |
+——————————————————-+
============================= Compile a new Blink ==============================
mkdir -p build/telosb
/bin/sh: cannot create build/telosb/ident_flags.txt: Permission denied
make: *** [ident_cache] Error 2
=============================== Upload the image ===============================
ERROR: Unable to initialize serial port connection to serial@/dev/ttyUSB0:115200
+—————————————————————-+
| |
| In the next step the following things will take place: |
| – the mote will be rebooted |
| – all the leds will blink for some time as the |
| reprogramming by tosboot takes place. |
| – a fading of the leds will indicate the exiting from tosboot. |
| – the mote should start blinking the 3rd led (blue/yellow). |
| |
| Press ENTER to continue… |
| |
+—————————————————————-+
Then I get root permission by su and get the following error
root@xubuntos-tinyos:/opt/tinyos-2.x/apps/tests/deluge/Blink# ./burn serial@/dev/ttyUSB0:115200 telosb
rm -rf build
rm -rf _TOSSIMmodule.so TOSSIM.pyc TOSSIM.py
============================ Compile and load Blink ============================
mkdir -p build/telosb
tos-storage-stm25p /opt/tinyos-2.x/tos/platforms/telosb build/telosb/StorageVolumes.h || rm -f build/telosb/StorageVolumes.h
compiling BlinkAppC to a telosb binary
ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -Ibuild/telosb -DDELUGE_BASESTATION -DDELUGE_BASESTATION -DDELUGE -I/opt/tinyos-2.x/tos/lib/net -I/opt/tinyos-2.x/tos/lib/net/Deluge -I/opt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager -I/opt/tinyos-2.x/tos/lib/net/Deluge/extra -I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/msp430 -I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/telos -I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/telosb -Wl,–section-start=.text=0x4a00,–defsym=_reset_vector__=0×4000 -DIDENT_PROGRAM_NAME=\”BlinkAppC\” -DIDENT_USER_ID=\”root\” -DIDENT_HOSTNAME=\”xubuntos-tinyos\” -DIDENT_USER_HASH=0x79e6532eL -DIDENT_UNIX_TIME=0x511bcd9bL -DIDENT_UID_HASH=0x53048be2L BlinkAppC.nc -lm
Couldn’t execute msp430-gcc
make: *** [exe0] Error 2
+——————————————————-+
| |
| At this point the first led (red) should be blinking. |
| |
| Press ENTER to continue… |
| |
+——————————————————-+
============================= Compile a new Blink ==============================
mkdir -p build/telosb
compiling BlinkAppC to a telosb binary
ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -Ibuild/telosb -DBLINK_REVERSE -DDELUGE_BASESTATION -DDELUGE_BASESTATION -DDELUGE -I/opt/tinyos-2.x/tos/lib/net -I/opt/tinyos-2.x/tos/lib/net/Deluge -I/opt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager -I/opt/tinyos-2.x/tos/lib/net/Deluge/extra -I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/msp430 -I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/telos -I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/telosb -Wl,–section-start=.text=0x4a00,–defsym=_reset_vector__=0×4000 -DIDENT_PROGRAM_NAME=\”BlinkAppC\” -DIDENT_USER_ID=\”root\” -DIDENT_HOSTNAME=\”xubuntos-tinyos\” -DIDENT_USER_HASH=0x79e6532eL -DIDENT_UNIX_TIME=0x511bcd9fL -DIDENT_UID_HASH=0x56d91199L BlinkAppC.nc -lm
Couldn’t execute msp430-gcc
make: *** [exe0] Error 2
=============================== Upload the image ===============================
ERROR: Unable to initialize serial port connection to serial@/dev/ttyUSB0:115200
+—————————————————————-+
| |
| In the next step the following things will take place: |
| – the mote will be rebooted |
| – all the leds will blink for some time as the |
| reprogramming by tosboot takes place. |
| – a fading of the leds will indicate the exiting from tosboot. |
| – the mote should start blinking the 3rd led (blue/yellow). |
| |
| Press ENTER to continue… |
| |
+—————————————————————-+
I previously able to run this without errors but don’t know what’s wrong now.
Your help will be much appreciated on the error Couldn’t execute msp430-gcc error. msp430-gss exe is present in its folder.
regards,
Tayyeb
10mscsemtayyeb@seecs.edu.pk
Your problem is the port parameter not correct. Try to run:
xubuntos@xubuntos-tinyos:/opt/tinyos-2.1.0/apps/tests/deluge/Blink$ ./burn /dev/ttyUSB0 telosb