public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: [ECOS] Re: Writing file to host system's OS filesystem
@ 2004-08-23 17:01 Samie Hassan Ghauri
  0 siblings, 0 replies; 5+ messages in thread
From: Samie Hassan Ghauri @ 2004-08-23 17:01 UTC (permalink / raw)
  To: jnewlin, msalter; +Cc: alexs, andrew, ecos-discuss

Thanks for the help.

Samie


>From: John Newlin <jnewlin@rawbw.com>
>To: Mark Salter <msalter@redhat.com>
>CC: alexs@ecoscentric.com, andrew@lunn.ch, samiehg@hotmail.com,   
>ecos-discuss@sources.redhat.com
>Subject: Re: [ECOS] Re: Writing file to host system's OS filesystem
>Date: Thu, 19 Aug 2004 09:02:31 -0700
>
>Mark Salter wrote:
>
>>>>>>>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.
>>
>>
>
>I'm using the fileio code in the Redboot gdb stub, and its working for me.  
>Was pretty easy to get it working with a newlib app, haven't tried with an 
>ecos app.
>
>-john
>
>>--Mark
>>
>>
>>
>>
>>
>

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Re: Writing file to host system's OS filesystem
  2004-08-19 12:03     ` Mark Salter
@ 2004-08-19 16:02       ` John Newlin
  0 siblings, 0 replies; 5+ messages in thread
From: John Newlin @ 2004-08-19 16:02 UTC (permalink / raw)
  To: Mark Salter; +Cc: alexs, andrew, samiehg, ecos-discuss

Mark Salter wrote:

>>>>>>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.
>  
>

I'm using the fileio code in the Redboot gdb stub, and its working for 
me.  Was pretty easy to get it working with a newlib app, haven't tried 
with an ecos app.

-john

>--Mark
>
>
>
>  
>


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Re: Writing file to host system's OS filesystem
  2004-08-19  1:16   ` Alex Schuilenburg
@ 2004-08-19 12:03     ` Mark Salter
  2004-08-19 16:02       ` John Newlin
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Salter @ 2004-08-19 12:03 UTC (permalink / raw)
  To: alexs; +Cc: andrew, samiehg, ecos-discuss

>>>>> 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.

--Mark



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Re: Writing file to host system's OS filesystem
  2004-08-18 19:20 ` [ECOS] " Andrew Lunn
@ 2004-08-19  1:16   ` Alex Schuilenburg
  2004-08-19 12:03     ` Mark Salter
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Schuilenburg @ 2004-08-19  1:16 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: Samie Hassan Ghauri, ecos-discuss

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?

-- Alex

> 
> What you might find interesting is to make your machine run Linux and
> then use the synth target. Using the system call backdoor you can then
> access the native host OS Kernel, ie Linux, and so access its
> filesystem. You have to be carefull when you do this though. Search
> the email archive, its been discussed before.
> 
>         Andrew
> 



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ECOS] Re: Writing file to host system's OS filesystem
  2004-08-18 17:30 [ECOS] " Samie Hassan Ghauri
@ 2004-08-18 19:20 ` Andrew Lunn
  2004-08-19  1:16   ` Alex Schuilenburg
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2004-08-18 19:20 UTC (permalink / raw)
  To: Samie Hassan Ghauri; +Cc: ecos-discuss

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. 

What you might find interesting is to make your machine run Linux and
then use the synth target. Using the system call backdoor you can then
access the native host OS Kernel, ie Linux, and so access its
filesystem. You have to be carefull when you do this though. Search
the email archive, its been discussed before.

        Andrew

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-08-23 17:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-23 17:01 [ECOS] Re: Writing file to host system's OS filesystem Samie Hassan Ghauri
  -- strict thread matches above, loose matches on Subject: below --
2004-08-18 17:30 [ECOS] " Samie Hassan Ghauri
2004-08-18 19:20 ` [ECOS] " Andrew Lunn
2004-08-19  1:16   ` Alex Schuilenburg
2004-08-19 12:03     ` Mark Salter
2004-08-19 16:02       ` John Newlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).