eCos is an open source, royalty-free, real-time operating system intended for embedded applications. The highly configurable nature of eCos allows the operating system to be customised to precise application requirements, delivering the best possible run-time performance and an optimised hardware resource footprint. Cobham Gaisler has developed and contributed the LEON2 and LEON3 ports of eCos, which include the following functionality:
For further information concerning eCos, please refer to the eCos home page.
The LEON port is supported in the eCos-cvs branch. The latest version can be downloaded from our software download page.
eCos is built by the BCC cross-compiler.
How to configure and build a system on linux
Untar the eCos distribution at a suitable location, set the ECOS_REPOSITORY environment variable to the path of the ecos/package directory, eg:
The kernel is built in a seprate directory. To create a leon2 configuration, do:
A leon3 configuration should be made with:
A leon3 configuration with TCP/IP network support and GRETH MAC driver should be made with:
You can then use the eCos configtool to graphically select the eCos parameters and built the system:
To enable SMP on LEON3 multi-processor systems, you must enable SMP in both the SPARC HAL and the kernel settings.
Refer to the eCos documentation for details on further use.
How to configure and build a system on win32
Use Mingw's MSys enviroment to build ecos and use ecosconfig-mingw.exe instead of ecosconfig.exe
ecosconfig-mingw new sparc_leon3
The makefile generated by "ecosconfig-ming tree" will transform c:/ to /ecos-c/, therefore add a entry in MSys's /etc/fstab: