[ECOS] Re: Writing file to host system's OS filesystem

Mark Salter msalter@redhat.com
Thu Aug 19 12:03:00 GMT 2004

>>>>> Alex Schuilenburg writes:

> Andrew Lunn wrote:
>> On Wed, Aug 18, 2004 at 05:29:53PM +0000, Samie Hassan Ghauri wrote:
>>> Thanks for your advise on how to access a file by including a romfs image 
>>> in my code.
>>> I was just wondering could you suggest any idea on how can I write any file 
>>> to my host OS (i.e Win XP)?
>> Its not realy your host OS. Its just another OS that can run on the
>> same machine at some other time. You don't run eCos on top of M$ XP
>> unlike the synthetic target which does run as a process on Linux.
>> There is currently no way to do what you want. 

> Actually there is.

> There was a project to produce semi-hosted libraries (e.g. fileio 
> operations were performed on the host rather than the embedded target) 
> which included changes+extentions to gdb, as well as target run-time 
> libraries.  This was obviously not specific to eCos, nor was any work 
> done in eCos to support these gdb extensions, but if these extensions 
> were completed and released as part of gdb, I suspect an ecos 
> semi-hosted library would be feasible.

> However, I don't know if this project was ever finished or released 
> publically.  Maybe one of the project members would care to comment?

The project was finished and the code to support it is in gdb,
RedBoot (CYGPKG_HAL_GDB_FILEIO), and newlib. It should be fairly
easy to add the support to the eCos libc. It uses the GDB remote
protocol to transport the fileio operations between the target
board and a host.


Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list