This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re: Endianness of Linux synthetic target
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