Hi Bracha,

thanks for trying to help.   More comments below about what you did...


On Thu, Jul 12, 2012 at 11:19 AM, Bracha Hod <[email protected]> wrote:

> Hi,
>
> I got similar errors after upgrading the toolchain.
>

Do you remember exactly what error you got?


> I solved the problems by full installation of gcc 4.6.3 from gnu site and
> nesc-1.3.3 from source forge.
> Once you install them (e.g. in /opt path), you need to change ncc and
> bash_tinyos to point on the correct path.
>
> Here are the steps that I did to upgrade the toolchain:
>
> 1.       Update tinyos-main from tinyos svn : svn checkout
> http://tinyos-main.googlecode.com/svn/trunk tinyos-main
>
2.       Msp430-64 installation: follow the guidelines in
> http://tinyprod.net/repos/debian/ to remove old software and then the
> installation in http://tinyprod.net/repos/debian/README_46.html
>
> 3.       Download nesc-1.3.3 from sourceforge and install it according to
> the guidelines (README/INSTALL files)
>

I am in the process of upgrading the instructions to make them clearer.

the msp430-46 area just deals with the msp430 toolchain.   nesc is more
generic and doesn't live there.   You can get the currently released
(1.3.3) version from the squeeze repository.   You would do something like
the following:

sudo echo "deb http://tinyprod.net/repos/debian msp430-46 main" >>
tinyprod-debian.list
sudo echo "deb http://tinyprod.net/repos/debian squeeze main" >>
tinyprod-debian.list
sudo apt-get update
sudo apt-get install msp430-46 nesc tinyos-tools

I think that should do it.


> 4.       Download gcc-4.6 version from gnu site, follow carefully the
> installation guidelines in: http://gcc.gnu.org/wiki/InstallingGCC .
> Please note that the installation is long and not trivial.
>

The above will download, build, and install the native host version of
gcc-4.6 and unless I'm mistaken has nothing to do with the problem that
Franz is dealing with or with the problem that Bracha saw.   The msp430-gcc
toolchain is a crosscompiler and while it runs on the native host it builds
images for the mote's cpu.   The above builds a native compiler which isn't
used at all in the process of building a mote image.  If I'm wrong please
correct me.


>  5.       Change  ~/.bash_tinyos file to point on the correct path of GCC
> and G++ (e.g /opt/gcc-4.6/bin/gcc)
>

I beleive the above line is what changed your PATH variable and is what
actually fixed what I believe your problem was (but I don't have specifics
about your problem, other than "I got similar errors").

6.       Change /usr/local/bin/ncc to point on the correct path of "nescc"
> (e.g. /opt/nesc/bin/nescc)
>

The recommended action instead of changing /usr/local/bin is to put
/opt/nesc/bin in your PATH variable prior to /usr/local/bin.

Another mechanism is to use stow and put locally added tools in to
/opt/stow/nescc (for example) and then use stow to install them into
/opt/bin etc.   That avoids having lots of things like /opt/nesc
/opt/<other tool>   ....


> 7.       Enter to a new shell, so configuration will be updated. Go to
> tinyos-main/tools. Follow the configuration instructions
> (bootstrap/configure/make).
>

For the above to take, one would also need to do "make install", but I
beleive this will build (haven't checked in a while) the equivilent of
tinyos-tools.   tinyos-tools is provided as part of the squeeze repository
above.


> 8.       Check your environment: go to $TOSROOT/apps/Blink. Try to
> compile the program by "make telosb". If it works – then your environment
> is working well.
>
> 9.       Try to compile your code. You may find some errors in AM.h –
> change the enum of broadcast address to typedef. Then compilation should
> pass.
>

Not sure where the above is coming from.    Please if you run into it, send
me the particulars so I can fix it in the tinyprod tree.

If anyone wants to take a look (its not released yet, I'm waiting for
T2.1.2 to release to make the cut), the current working version is at:


https://github.com/tp-freeforall/prod, the default branch is msp430-int
which includes a modifications to the msp430 core which includes support
for many more msp430 processors including the msp430f5438a.

The branch svn/current points essentially at the tip of the svn/tinyos-main
development tree.   It gets moved manually.



> Hope that it will help you.
>
> Regards,
> Bracha Hod.
> SensoGo Ltd.
>
>
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users

Reply via email to