[En-Nut-Discussion] Emulator in linux

Ole Reinhardt ole.reinhardt at kernelconcepts.de
Tue Aug 16 18:53:32 CEST 2005


Hi,

> I'm interested in which state the emulator for ethernut is.
> Is it working with the latest NUT/OS?

The emulator is not realy an emulator but a set of libraries providing
an NutOS enviroment on linux / unix.

>-where to get it,

Simply download the most recent NutOS version.

In CVS HEAD it seems that there currently are several bugs, introduced
with the latest NutOS enhancements. The thread application for example
seems to deadlock... Several other applications does not compile
anymore... (timer example...) 

You can compile the unix emulation enviroment directly from within the
sourcetree without running the configurator.

Simply call

./nutsetup 

in the topmost NutOS directory.

Select 5 (Unix emulation)

Now you'r ready to go. Change to the lib directory and call

make install

This will compile the NutOS libraries and install them in the lib
directory.

You can now change to you application directory and compile it too. (For
example the threads or uart example).

Most of these application won't work as they mostly use the tcp layer,
wich is not supported in the unix emulation.

That's what is supported:

- devUsart0, devUsart1, devUsartAvr0, devUsartAvr1 ...
- devDebug, devDebu0, devDebug1
- timer
- eeprom

If you call your programm you should pass a command line argument as
follows:

./uart -u0 /dev/ttyS0

This will assign devUsart0 (devUsartAvr0, devDebug0) to ttyS0


> -what it currently can

As just mentioned above it will emulate most of the basic OS
functionality and provides uart devices.

You can use it to lean using NutOS and test simple applications without
always flashing them to the target.

It was designed to provide a simple development plattform for the BTNur
bluetooth stack. Therefore only console / serial IO is needed.

Best regards,

Ole Reinhardt


-- 
kernel concepts    Tel: +49-271-771091-14
Dreisbachstr. 24   Fax: +49-271-771091-19
D-57250 Netphen    E+ : +49-177-7420433
--





More information about the En-Nut-Discussion mailing list