Contiki | 1 Feb 2009 10:10
Picon
Picon

Contiki Website gets Million Visitors

During the weekend, the Contiki website got its millionth visitor since November 2006 - check out the
visitor statistics on the left.

URL: http://www.sics.se/contiki/news/contiki-website-gets-million-visitors.html

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
Adam Dunkels | 1 Feb 2009 11:00
Picon
Picon

Re: Runtime dynamic linking

Not sure if the AVR ELF loader still works - it has been a while since 
we last touched it (back in 2006 or so).

The ELF loader reads an ELF file from a local CFS storage (EEPROM, 
on-chip flash, external flash, RAM, ...), links it and loads it into 
executable memory. The ELF file must be transfered to the target system 
before linking it (this was the purpose of the old codeprop code). We 
currently do not have a working example of how to go about this on the 
Raven boards though.

A (not so) quick way to try to get it running would be:

* Get the telnetd + shell running on the raven (see 
examples/sky-ip/sky-telnet-server.c for an example, but for the Tmote 
Sky platform).
* Enable the wget shell command (add shell_wget_init() in the shell 
initialization code - right where the other shell_*_init()s are).
* Enable the exec shell command (add shell_exec_init() in the shell 
initialization code).
* Try either the cfs-eeprom or enable the cfs-ram to use the RAM as a 
single-file local file system (edit platform/avr-raven/Makefile.raven)
* Compile a hello-world.ce file (make hello-world.ce) and upload it to a 
web server
* Run the system, telnet to the Raven,
* Run "wget http://webservers-ip-address/hello-world.ce" to download the 
file
* Execute the file with "exec hello-world.ce"

Not sure how well wget works with IPv6 addresses though.

(Continue reading)

Johan Van den Brande | 1 Feb 2009 21:19
Gravatar

Contiki tcp client problem

Hi all,

This is my first question on this mmailing list, so...
I'm studying contiki for the moment, and for that I try to get it all
running on my C64. Why not combine fun and work?
I can get the webserver example of contiki to run on VICE on my
macbook. However, I can't get the example example-psock-client.c to
work. The TCP connection is closed right after the first tcpip event.
VICE runs on my macbook and I try to connect to a linux box on the
same network segment. I do see some TCP packets going around using
wireshark, but have looked into them with much detail. They do not
seem to contain data, but look like the negotiation packets for tcp.

Are there other things I need to do? One difference I see is that the
webserver example dumps messages from the config reader to stdout.
This is something what the client example does not. So, is it using
the config by default, without dumping to screen or do i need some
special flags to activate before the network initialization runs?

Maybe it is related, but I can do cputs (the conio functions from
cc65) but not printf. Again, which flags do i need to set or what do i
need to do to get going?

I'll be investigating this further, but any help is welcome ;-)

regards,

--

-- 
"The future is here. It's just not evenly distributed yet." - William Gibson

(Continue reading)

Oliver Schmidt | 2 Feb 2009 01:14
Picon

Re: Contiki tcp client problem

Hi Johan,

> Maybe it is related, but I can do cputs (the conio functions from
> cc65) but not printf. Again, which flags do i need to set or what do i
> need to do to get going?

The cc65 C-library supports only a limited number of in-use file
descriptors. In order to save them for "real" file acces the main()
function in contiki-2.x/platform/c64/contiki-main.c contains these
lines:

  close(STDIN_FILENO);
  close(STDOUT_FILENO);
  #if !UIP_LOGGING && !LOG_CONF_ENABLED
  close(STDERR_FILENO);
  #endif

Just remove that stuff altogether if you're not low on file
descriptors. This will enable printf()...

Best, Oliver

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
Groepaz | 2 Feb 2009 01:20
Picon

Re: Contiki tcp client problem

On Montag 02 Februar 2009, Oliver Schmidt wrote:
> Hi Johan,
>
> > Maybe it is related, but I can do cputs (the conio functions from
> > cc65) but not printf. Again, which flags do i need to set or what do i
> > need to do to get going?
>
> The cc65 C-library supports only a limited number of in-use file
> descriptors. In order to save them for "real" file acces the main()
> function in contiki-2.x/platform/c64/contiki-main.c contains these
> lines:
>
>   close(STDIN_FILENO);
>   close(STDOUT_FILENO);
>   #if !UIP_LOGGING && !LOG_CONF_ENABLED
>   close(STDERR_FILENO);
>   #endif
>
> Just remove that stuff altogether if you're not low on file
> descriptors. This will enable printf()...

or maybe include conio.h and use cprintf instead. (might result in a bit less 
overhead and more free memory)

--

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

In a society in which there is no law, and in theory no compulsion, the only 
(Continue reading)

Bjorn Gronvall | 2 Feb 2009 18:15
Picon
Picon

Re: Runtime dynamic linking

From: Bjorn Gronvall <bg@...>
To: Contiki developer mailing list <contiki-developers@...t>
Cc: Brad.Petrus@..., bg@...
Subject: Re: [Contiki-developers] Runtime dynamic linking
Date: Mon, 2 Feb 2009 17:08:28 +0000
X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.1)
Organization: SICS.SE

On Mon, 26 Jan 2009 17:07:03 -0500
"Petrus Brad (CR/RTC3-NA)" <Brad.Petrus@...> wrote:

Moi,

> I would like to get a simple demo running on the Atmel Raven boards in
> which I replace a running service/component with a downloaded component.
> Looking through the version 2.2.2 sources, I found the codeprop and
> program_handler example applications, although it doesn't look like
> these perform what I had in mind.  Can anyone point me to some example
> code - like that used in the "Run-Time Dynamic Linking for Reprogramming
> Wireless Sensor Networks" ACM papers?  Also, is there anywhere
> documentation of the process to follow in getting something like this
> working? Finally, is the processor-specific support for dynamic linking
> available for the Raven boards?  

The RUNES project implemented a framework for multi-module
loading/unloading. The framework used an open-ended approach and
consisted of two pieces, CLE (Contiki Link Editor) and CMOD (Contiki
MODules). If I remember correctly there was also an example program
elfloader_compat.c that illustrated how CLE can be used independently
from CMOD. The code was verified to work on both the AVR and the
(Continue reading)

Petrus Brad (CR/RTC3-NA | 2 Feb 2009 18:41

Re: Runtime dynamic linking

Hi Adam,

Thanks for providing the information on testing of the dynamic linking.
I will start playing around with this today!

Thanks,
Brad

-----Original Message-----
From: Adam Dunkels [mailto:adam@...] 
Sent: Sunday, February 01, 2009 5:01 AM
To: Contiki developer mailing list
Subject: Re: [Contiki-developers] Runtime dynamic linking

Not sure if the AVR ELF loader still works - it has been a while since 
we last touched it (back in 2006 or so).

The ELF loader reads an ELF file from a local CFS storage (EEPROM, 
on-chip flash, external flash, RAM, ...), links it and loads it into 
executable memory. The ELF file must be transfered to the target system 
before linking it (this was the purpose of the old codeprop code). We 
currently do not have a working example of how to go about this on the 
Raven boards though.

A (not so) quick way to try to get it running would be:

* Get the telnetd + shell running on the raven (see 
examples/sky-ip/sky-telnet-server.c for an example, but for the Tmote 
Sky platform).
* Enable the wget shell command (add shell_wget_init() in the shell 
(Continue reading)

Petrus Brad (CR/RTC3-NA | 2 Feb 2009 19:01

Re: Runtime dynamic linking

Hi Bjorn,

Thanks for the information and the Runes paper!  I will check if the files you mentioned are still in the
source tree.  

Thanks,
Brad

-----Original Message-----
From: Bjorn Gronvall [mailto:bg@...] 
Sent: Monday, February 02, 2009 12:08 PM
To: Contiki developer mailing list
Cc: Petrus Brad (CR/RTC3-NA); bg@...
Subject: Re: [Contiki-developers] Runtime dynamic linking

On Mon, 26 Jan 2009 17:07:03 -0500
"Petrus Brad (CR/RTC3-NA)" <Brad.Petrus@...> wrote:

Moi,

> I would like to get a simple demo running on the Atmel Raven boards in
> which I replace a running service/component with a downloaded component.
> Looking through the version 2.2.2 sources, I found the codeprop and
> program_handler example applications, although it doesn't look like
> these perform what I had in mind.  Can anyone point me to some example
> code - like that used in the "Run-Time Dynamic Linking for Reprogramming
> Wireless Sensor Networks" ACM papers?  Also, is there anywhere
> documentation of the process to follow in getting something like this
> working? Finally, is the processor-specific support for dynamic linking
> available for the Raven boards?
(Continue reading)

Waqaas Munawar | 2 Feb 2009 19:09
Picon
Picon
Favicon

Re: Runtime dynamic linking

Can CLE + CMOD also load Compact ELF files (CELF: from dunkels'06) ?
Is the tool for this conversion ( ELF to CELF ) present in contiki's 
source tree.
Thanks in advance.,
Waqaas

Petrus Brad (CR/RTC3-NA) wrote:
> Hi Bjorn,
>
> Thanks for the information and the Runes paper!  I will check if the files you mentioned are still in the
source tree.  
>
> Thanks,
> Brad
>
>
> -----Original Message-----
> From: Bjorn Gronvall [mailto:bg@...] 
> Sent: Monday, February 02, 2009 12:08 PM
> To: Contiki developer mailing list
> Cc: Petrus Brad (CR/RTC3-NA); bg@...
> Subject: Re: [Contiki-developers] Runtime dynamic linking
>
> On Mon, 26 Jan 2009 17:07:03 -0500
> "Petrus Brad (CR/RTC3-NA)" <Brad.Petrus@...> wrote:
>
> Moi,
>
>   
>> I would like to get a simple demo running on the Atmel Raven boards in
(Continue reading)

Bence Pasztor | 2 Feb 2009 19:31
Picon
Picon
Favicon

Re: Runtime dynamic linking

Hi,
I was just looking over this elfloader. I'm using a rather old version 
of contiki (2.x), and elfloader-compat works fine.
However, we tried to get it to work on the current version, and there 
seemed to be some issues with the symbols. It links fine, without any 
errors, sees the process, but does not start it. We checked autostart, 
and it sees null instead of the process.
I have a feeling something is wrong with the way we created the symbols 
using an older mknmlist, but gave up at that point... any advice is 
appreciated;)
bye, Bence

Waqaas Munawar wrote:
> Can CLE + CMOD also load Compact ELF files (CELF: from dunkels'06) ?
> Is the tool for this conversion ( ELF to CELF ) present in contiki's 
> source tree.
> Thanks in advance.,
> Waqaas
>
> Petrus Brad (CR/RTC3-NA) wrote:
>   
>> Hi Bjorn,
>>
>> Thanks for the information and the Runes paper!  I will check if the files you mentioned are still in the
source tree.  
>>
>> Thanks,
>> Brad
>>
>>
(Continue reading)


Gmane