Commit graph

9390 commits

Author SHA1 Message Date
barner d4b3436d21 Add new plattform definition for the STK 501 board featuring an
Atmel ATmega128.

Very brief instructions:

- Configure your programmer etc. in Makefile.stk501
- Use 'make upload' to flash your STK501.
- Setup a SLIP connection to your board (on the first serial port)
  and make sure you can ping it.
- Use 'make loadable_prg.ko' to build a demo module.
- gcc -ocodeprop ../../tools/codeprop.c
- ./codeprop <IP of STK> loadable_prg.ko
- Watch the module print "Tick, Tack, Tick, ..." on the second
  serial port.
2006-12-22 17:19:22 +00:00
barner 94eecb64f1 Respect MMEM_CONF_SIZE user option, otherwise default to 4096 byts
for MMEM_SIZE.
2006-12-22 17:14:06 +00:00
barner c4df71bb7e - AVR specific implementation of (linear) symbol table lookup, that uses the
necessary functions to load symbols from flash ROM.
- Implementing binary search is on my TODO list.
2006-12-22 17:12:31 +00:00
barner 54ac97990d - Fix / enhence AVR specific part of the ELF relocator. Some relocation types
are still unsupported and will write warings on the second serial port.

- Fix elfloader_arch_write_rom (), which has to reside in a special bootloader
  section of flash rom. The code is heavly inspired from avr-libc's documentation.

- Prelimiary implementation of elfloader_arch_allocate_rom: Code is
  flashed to fixed address 0x8000. Note that on the AVR, flash rom is adressed
  word (16bit)-wise, not byte wise!

- Preliminary implementation of elfloader_arch_allocate_ram using the mmem
  module. Current code does not free the memory.
2006-12-22 17:10:54 +00:00
barner 5d6abc4cfe Provide dummy implementations for the leds and minileds module in order
to unbreak the build.
2006-12-22 17:05:31 +00:00
barner 9735acb03f - Re-implementation of timing facility using timer0 and the internal clock
source. Using an external clock source (esp. the real-time clock) did not
  work. This  might as well be a local problem (e.g. hardware).
- Provide some dummy implementations in order to fix the build.
2006-12-22 17:04:38 +00:00
barner 6eb200cfc1 Fix build: location of eeprom.h changed. 2006-12-22 17:02:24 +00:00
barner 45cbcde797 - Fix/enhence support for RS232 interface on AVR (ATMega128):
* support for multiple ports: (extended interface with 'port' parameter)
 * new function: rs232_redirect_stdout that allows you to redirect stdout
   to a serial port
- In order to implement support for other MCUs, adopt a copy of
   rs232_atmega128.h
2006-12-22 17:00:45 +00:00
barner 86f37e7c1b AVR specific implementation of contiki multi-threating architecture
(supporting per-thread stacks).
2006-12-22 16:55:53 +00:00
barner 265f45feba - Fix build of contiki-2.x AVR port.
- Generate symbol tables for loadable modules.
2006-12-22 16:54:36 +00:00
bg- 98cea83de5 * Include loader/symbols-def.h and use extern declarations. 2006-12-20 14:41:28 +00:00
bg- d6b06f0661 * Add extern declarations. 2006-12-20 14:36:28 +00:00
bg- e5aef6ad8d * Typo in comment.
* Parse nm input and create namelist.
2006-12-20 13:50:15 +00:00
bg- 8adcee17c3 * Typo in comment.
* Use nm and awk to create namelist.
2006-12-20 13:46:14 +00:00
bg- 3c9fe59106 * Typo in comment.
* More info in printfs.
2006-12-20 13:43:47 +00:00
bg- 29572668ac * Typo in comment. 2006-12-20 13:42:55 +00:00
bg- e3a501a8c1 * Resurrect traditional elfloader interface. 2006-12-20 13:38:33 +00:00
adamdunkels 946e11a0fc Added optional binary search 2006-12-19 09:31:37 +00:00
adamdunkels 419c5f3c17 Symbol is const 2006-12-19 09:30:57 +00:00
adamdunkels bdb317274e Added generation of symbols.[ch], removed cfs-eeprom (should be in platform makefile instead) 2006-12-19 09:22:25 +00:00
adamdunkels 2e8431b3d9 Added generation of symbols.[ch] 2006-12-19 09:21:12 +00:00
adamdunkels b8b47d2cc9 Added cfs-eeprom 2006-12-19 09:19:14 +00:00
adamdunkels 163541eaf5 Added note on burn-nodeid 2006-12-19 09:18:11 +00:00
adamdunkels 36d204b992 Script for generating empty symbols.[ch] 2006-12-19 08:58:21 +00:00
adamdunkels 0cd74875da Updated script for generating symbols.[ch] 2006-12-19 08:57:26 +00:00
fros4943 1e23eb29ba added support for elf32_rel relocation entries (earlier only elf32_rela)
added support for rodata section

(x86 compability)
2006-12-18 15:35:16 +00:00
fros4943 98f8d160b3 removed symbols.h (now symbols-def.h)
symbols.h should be autogenerated at compile time
2006-12-18 15:28:49 +00:00
fros4943 1e254866d5 updated reference to symbols.h 2006-12-18 15:27:18 +00:00
fros4943 2978147e22 scripts for auto-generating symbols.[c,h]
may for example be called from a platform makefile
2006-12-18 15:25:01 +00:00
fros4943 71940f287f new symbols definition header.
should be included from autogenerated symbols.h
2006-12-18 15:23:04 +00:00
fros4943 93714fc39f updated reference to "elfloader-tmp" 2006-12-18 15:17:47 +00:00
fros4943 060225a97a added parameter to relocate method
+ renamed write_text() to write_rom()
+ added parameter to write_rom()
2006-12-18 14:54:04 +00:00
fros4943 ea0e2c0f7d moved elfloader-tmp.h -> elfloader.h 2006-12-18 14:45:49 +00:00
fros4943 6d93716fba removed old -tmp header 2006-12-18 14:39:55 +00:00
adamdunkels 5ab475498a Removed old elfloader.h and replaced with the current code (previously in elfloader-tmp.h) 2006-12-18 12:11:15 +00:00
adamdunkels 70170b65b6 Removed old elfloader.c and replaced with the current code (previously in elfloader-tmp.c) 2006-12-18 11:55:42 +00:00
adamdunkels 5d3baef0d2 Removed old elfloader.c and replaced with the current code (previously in elfloader-tmp.c) 2006-12-18 11:45:47 +00:00
fros4943 867ceea09b minor change 2006-12-15 12:03:32 +00:00
fros4943 cd2bab0589 added method for retrieving variable addresses 2006-12-15 11:47:40 +00:00
fros4943 76bb1dbd5f added support for gui standard plugin 2006-12-13 11:57:04 +00:00
fros4943 67048e9ea0 bug fix:
label may still be null when simulation updating
2006-12-13 11:55:06 +00:00
fros4943 8e0150d44b bug fix:
appending leading '0' when number < 0x10
2006-12-11 16:37:11 +00:00
fros4943 bd2b6a9a53 bug fix:
&uip_buf[UIP_LLH_LEN]
may not always be equal to
 uip_buf
2006-12-11 15:19:34 +00:00
fros4943 30be98a575 bug fix:
radio logger generated null pointer exception
2006-12-11 12:20:06 +00:00
fros4943 381ab927df minor fix: plugin's z orders restored at load config 2006-12-07 15:14:19 +00:00
fros4943 37bbf515f2 *cleaned up some code
*updated signal strengths to those stated in cooja core interface
2006-12-07 14:28:54 +00:00
fros4943 d59ef75617 added simple filtering support 2006-12-07 14:26:48 +00:00
fros4943 b863ef4c92 added disturber mote:
mote that periodically transmits packet that interferes with surrounding radio traffic
2006-12-07 14:24:44 +00:00
fros4943 03b3ac9143 checking that background image was actually loaded 2006-12-06 15:20:18 +00:00
bg- d8e0b4eb26 * New rule for making .ko:s. 2006-12-05 16:19:43 +00:00