This is the mail archive of the ecos-patches@sources.redhat.com 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]

fis free fix


I reserved the first 3 sectors of my flash (perhaps overzealously) for
RedBoot using CYGBLD_REDBOOT_MIN_IMAGE_SIZE.  I ran into a problem, however,
when installing RedBoot on brand new boards.  Since my version of RedBoot is
currently less than two sectors, I end up writing 0xffffffff to that third
sector.  Commands such as "fis create" and "fis free" see this as empty
space.  This is annoying to me since, someday my RedBoot will exceed two
sectors and I will overwrite some program or data that I stored starting at
the third sector.

I'm not too sure I've described this as succinctly as I could, but perhaps
you get the idea.  Anyway, attached (perhaps) is a small modification to fix
this.

--wpd

Attachment: redboot.txt
Description: Text document


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