[En-Nut-Discussion] porting the NutOS to AVR32
Harald Kipp
harald.kipp at egnite.de
Tue Apr 24 14:50:54 CEST 2007
Rami,
Some time ago I created a simple document, which describes a few steps
for porting Nut/OS to the Gameboy Advance.
http://www.ethernut.de/en/portarm/gbaxport2.html
Almost all platform dependent parts are located in nut/arch, where I'd
create a new subdirectory avr32, which should contain the source
directories dev, init and os. The latter is the one to be looked at
first, as this contains the high level initialization as well as context
switching. Most probably you'd need a directory ldscript. This is not
required for the AVR 8-bit, because avr-libc handles this very well, but
the arm port needed this. Btw. it is a good idea to use nut/arch/arm as
a reference and compare it with nut/arch/avr so you get a better idea
about what will be required.
Sometimes a tricky part is the runtime library. Nut/OS provides its own
malloc and stdio, but makes use of an external library's stdlib or
string functions. Sometimes the external library doesn't allow this
because of cross referencing. In the worst case you may use nut/c
instead of an external library, which provides all basic functions
(except integer division).
Further it is required to enhance the Configurator scripts. Some
background information is available at
http://www.ethernut.de/en/documents/ntn-5_config.html
Note, that it is not required to learn Lua. The configuration files are
quite simple to understand.
Which target board do you intend to use? I own an STK1000. Due to lack
of time I didn't do anything with it except switching it on and off.
Though I'd be happy to use it for assisting your efforts.
Harald
WEHBI Rami schrieb:
> Hello!
>
> I want to use Nutos on the AVR32 target, which actually not supported.
> I need some design documents of nutos or hints to port it. More precisely, I need the list of all the files to be modified.
>
> Thanks for the help,
>
> Regards,
> Rami
>
>
More information about the En-Nut-Discussion
mailing list