This is the mail archive of the ecos-discuss@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]

Re: redboot block size on IQ80310


On Mon, Jun 21, 2004 at 04:14:51PM -0400, tjohnson wrote:
> > > I'm sure there's enough space 
> > > because 'fis free' returns 0x60000 - 0x7C0000, which is 
> > > plenty of room.
> 
>  0x7C0000
> - 0x60000
> ---------
>  0x760000 = 7733248 bytes or 7.375MB
> 
> my root file system file maxes out at around 5 megs (depending on what I
> put in it). But I can't create the file in flash. 
> 
> log:
> ---------------------------------------------
> RedBoot> fis free
>   0x00060000 .. 0x007C0000
> RedBoot> fis list
> Name              FLASH addr  Mem addr    Length      Entry point
> RedBoot           0x00000000  0x00000000  0x00040000  0x00000000
> RedBoot[backup]   0x00040000  0x00040000  0x00040000  0x00000000
> RedBoot config    0x007C0000  0x007C0000  0x00020000  0x00000000
> FIS directory     0x007E0000  0x007E0000  0x00020000  0x00000000
> RedBoot> fis create -b 0xa0200000 -l 0x500000 rootfs.img
> Can't locate 5242880 bytes free in FLASH
> RedBoot>
> ---------------------------------------------

What happens when you tell it where to put the image. ie

create -b 0xa0200000 -l 0x500000 -f 0x00080000 rootfs.img

Humm, Redboot[backup] starts at 0x00040000 and is 0x00040000 in
length. That means it finishes at 0x0007ffff. So why is fis free
showing you 0x00060000 as being the first free address?

Also, having flash start from 0x0 is rather unusual. Normally the MMU
is used to map it somewhere higher in memory so that the interrupt
vectors can be put into RAM at 0x0. Or does your target have the
vectors somewhere else.

        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]