This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Redboot FIS directory block padding
- From: Gary Thomas <gary at chez-thomas dot org>
- To: "Koeller, T." <Thomas dot Koeller at baslerweb dot com>
- Cc: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: 18 Jun 2002 10:47:30 -0600
- Subject: Re: [ECOS] Redboot FIS directory block padding
- References: <850597605E79D21182830008C7A4B9CF07D8896D@COMM1>
On Tue, 2002-06-18 at 10:18, Koeller, T. wrote:
> Hi,
>
> I just posted a patch to ecos-patches@sources.redhat.com that
> removes the padding bytes from RedBoot FIS directory entries.
> Currently, every such block is padded to a size of 256 bytes,
> probably in anticipation of the the FIS directory spanning multiple
> flash blocks. However, the RedBoot code limits the FIS directory
> to just one flash block, so padding does not do any good. Since the
> flash on our platform (Atmel EB40) has tiny blocks of size 256 bytes,
> this means there can only one FIS directory entry, which is pretty
> useless. Even if RedBoot were changed to allow the FIS directory to
> span multiple flash blocks, I would still consider this kind of padding
> unacceptably wasteful. After all, size without padding is just 44 bytes.
There were two reasons for the padding:
1) to allow for in-place compatible expansion of the structure
2) to make it easier for other systems to stay compatible
Maybe 256 bytes is too large (64 might be better), but I'm against
removing the padding altogether.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss