This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Questions about dual flash


> But if we then run fis init, our output from fis free becomes a bit
> confusing..
> RedBoot> fis free
> ... Read from 0x001e0000-0x001fffff to 0x407e0000:
>   0x00040000 .. 0x001C0000
>   0x001C1000 .. 0x001E0000
>   0x00200000 .. 0x001FFFFF
>   0x00000001 .. 0x20020042
> 
> We have set the Maximum number of free chunks to 40 ((2MB + 8MB
> flash)/256k min image size) Are we thinking totally wrong here??
> 
> One even more strange thing is that if we use telnet, instead of serial,
> we get get this output from the fis free:
> RedBoot> fis free
> ... Read from 0x001e0000-0x001fffff to 0x407e0000:
>   0x00040000 .. 0x001C0000
>   0x001C1000 .. 0x001E0000
>   0x00200000 .. 0x001FFFFF
>   0x3FFF2BA4 .. 0x000031AC

This looks like a bug to me. The code which finds free space is not so
simple and it got even hairier when we added support for multiple
flashes in the v2 branch. Take a look at
/packages/redboot/current/src/flash.c:find_free()

and see if you can find the problem.

    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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]