eCos FAQ : Porting eCos and RedBoot to a new target system : How would I go about porting eCos to a new processor?
A sensible first step for this, as for any other non-trivial project involving eCos, would be to find out whether or not anybody else is already working on something similar. One way of doing this is to post a message to the ecos-discuss@sources.redhat.com mailing list. We aim to keep track of every ongoing eCos project that we know about, to avoid duplication of effort. The next step is to make sure that you have a toolchain that is suitable for your target hardware. This means the compilers gcc and g++, the assembler gas, the linker, and the various binutils such as ar. It will also be necessary to have some way of actually running an executable on the target hardware, an operation which is inherently hardware dependent. On many targets this will already be possible via the debugger gdb, but on other targets it may be necessary to get gdb to work with the board first or to use some other technique. It should be noted that eCos uses a number of relatively new extensions to the GNU too