public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] RedBoot: fis create can't find free space
@ 2001-04-26 12:36 Grant Edwards
  2001-04-26 17:24 ` Gary Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2001-04-26 12:36 UTC (permalink / raw)
  To: ecos-discuss

I'm trying to figure out why the flash code in RedBoot can't
create an image:

    RedBoot> load -v -b 0 -r -h 10.0.0.2 socket-1.03.bin
    -
    Raw file loaded 0x00000000-0x0007f958
    RedBoot> fis list                      
    Name              FLASH addr   Mem addr    Length      Entry
    point
    FIS directory     0x053F0000   0x053F0000  0x00010000  0x00000000 
    default           0x051B0000   0x00000000  0x00080000  0x00000384
    RedBoot> fis free                      
      0x050B0000 .. 0x05130000
      0x05230000 .. 0x053F0000
    RedBoot> fis create foo                                          
    Can't locate 524288 bytes free in FLASH
    RedBoot>                              

Firstly, according to "fis list" and "fis free" I've got almost
2M of free space between 0x5230000 and 0x53f0000, but "fis
create" can't find 500K of free space.  Any ideas why?

Secondly, I think I've figured out why there's "unfree" flash
(5030000-50B0000 and 5130000-51B0000))that isn't being used by
an image.

If I do an "fis create" with an existing image name, that will
leak flash, right?  By "leak" I mean it leaves orphaned "used"
areas in flash that don't belong to any image.  Is that a
useful feature?  I'm thinking of changing the "create" code so
that doing a "create" with an existing image name deletes the
old one before creating the new one.  I could just tell my
users never to do an "fis create" with an existing image name,
but we all know how well instructions like that are followed.

-- 
Grant Edwards
grante@visi.com

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

end of thread, other threads:[~2001-04-27  5:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-26 12:36 [ECOS] RedBoot: fis create can't find free space Grant Edwards
2001-04-26 17:24 ` Gary Thomas
2001-04-26 22:26   ` Grant Edwards
2001-04-27  5:40     ` Gary Thomas

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