public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS]  Endianness of Linux synthetic target
@ 2009-03-27 10:28 Tarmo Kuuse
  2009-03-27 12:45 ` Andrew Lunn
  0 siblings, 1 reply; 5+ messages in thread
From: Tarmo Kuuse @ 2009-03-27 10:28 UTC (permalink / raw)
  To: ecos-discuss

Hi!

When building and running Linux synthetic target on a PC, does eCos use 
little endian like the host (x86)?

--
Kind regards,
Tarmo Kuuse


-- 
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]  Endianness of Linux synthetic target
  2009-03-27 10:28 [ECOS] Endianness of Linux synthetic target Tarmo Kuuse
@ 2009-03-27 12:45 ` Andrew Lunn
  2009-03-27 13:28   ` [ECOS] " Tarmo Kuuse
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2009-03-27 12:45 UTC (permalink / raw)
  To: Tarmo Kuuse; +Cc: ecos-discuss

On Fri, Mar 27, 2009 at 12:12:56PM +0200, Tarmo Kuuse wrote:
> Hi!
>
> When building and running Linux synthetic target on a PC, does eCos use  
> little endian like the host (x86)?

Yes.

        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: Endianness of Linux synthetic target
  2009-03-27 12:45 ` Andrew Lunn
@ 2009-03-27 13:28   ` Tarmo Kuuse
  2009-03-27 13:28     ` Andrew Lunn
  0 siblings, 1 reply; 5+ messages in thread
From: Tarmo Kuuse @ 2009-03-27 13:28 UTC (permalink / raw)
  To: ecos-discuss

Andrew Lunn wrote:
> On Fri, Mar 27, 2009 at 12:12:56PM +0200, Tarmo Kuuse wrote:
>> When building and running Linux synthetic target on a PC, does eCos use  
>> little endian like the host (x86)?
> 
> Yes.

OK.

Today I learned something unexpected. When creating a jffs2 image for 
synthetic flash, I MUST pad the image with 0xFF-s to full length. 
Otherwise mount simply freezes.

--
Kind regards,
Tarmo Kuuse


-- 
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: Endianness of Linux synthetic target
  2009-03-27 13:28   ` [ECOS] " Tarmo Kuuse
@ 2009-03-27 13:28     ` Andrew Lunn
  2009-03-30  2:11       ` Tarmo Kuuse
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2009-03-27 13:28 UTC (permalink / raw)
  To: Tarmo Kuuse; +Cc: ecos-discuss

On Fri, Mar 27, 2009 at 02:37:24PM +0200, Tarmo Kuuse wrote:
> Andrew Lunn wrote:
>> On Fri, Mar 27, 2009 at 12:12:56PM +0200, Tarmo Kuuse wrote:
>>> When building and running Linux synthetic target on a PC, does eCos 
>>> use  little endian like the host (x86)?
>>
>> Yes.
>
> OK.
>
> Today I learned something unexpected. When creating a jffs2 image for  
> synthetic flash, I MUST pad the image with 0xFF-s to full length.  
> Otherwise mount simply freezes.

This probably has to do with the mmap() of the file. If the file is
smaller than the flash it is supposed to be emulating, i guess a read
off the end of the file is blocking....

    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: Endianness of Linux synthetic target
  2009-03-27 13:28     ` Andrew Lunn
@ 2009-03-30  2:11       ` Tarmo Kuuse
  0 siblings, 0 replies; 5+ messages in thread
From: Tarmo Kuuse @ 2009-03-30  2:11 UTC (permalink / raw)
  To: ecos-discuss

Andrew Lunn wrote:
> On Fri, Mar 27, 2009 at 02:37:24PM +0200, Tarmo Kuuse wrote:
[snip]
>> Today I learned something unexpected. When creating a jffs2 image for  
>> synthetic flash, I MUST pad the image with 0xFF-s to full length.  
>> Otherwise mount simply freezes.
> 
> This probably has to do with the mmap() of the file. If the file is
> smaller than the flash it is supposed to be emulating, i guess a read
> off the end of the file is blocking....

Actually jffs2 finds zeros after it passes the end of file (repeats 
message "Dirty bitmask at 0xsomething").

It continues reading zeros until the end of page (I think) and then 
croaks soon after.

Ubuntu 8.04 LTS.

--
Kind regards,
Tarmo Kuuse


-- 
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:[~2009-03-27 13:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-27 10:28 [ECOS] Endianness of Linux synthetic target Tarmo Kuuse
2009-03-27 12:45 ` Andrew Lunn
2009-03-27 13:28   ` [ECOS] " Tarmo Kuuse
2009-03-27 13:28     ` Andrew Lunn
2009-03-30  2:11       ` Tarmo Kuuse

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