This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Redboot EB40a problems with flash programming
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: "'Laurent GONZALEZ'" <laurent dot gonzalez at silicomp dot fr>
- Cc: <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 22 May 2003 16:41:34 +0200
- Subject: RE: [ECOS] Redboot EB40a problems with flash programming
>hello,
>
>just some guesses ...
>
>what about boot sectors in ATMEL's flash (AFAIK, from 0x0 to 0x20000) ?
>Is the flash driver able to handle them ?
I don't know enough to comment, but it seems like you are onto
something.
---------------
RedBoot> fis erase -f 0x1020000 -l 0x10000
... Erase from 0x01020000-0x01030000: .
RedBoot> fis erase -f 0x1010000 -l 0x10000
... Erase from 0x01010000-0x01020000: +
RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 12:51:51, May 22 2003
Platform: Atmel AT91/EB40A (ARM7TDMI)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
RAM: 0x00000000-0x00040000, 0x0000a748-0x0003f000 available
FLASH: 0x01010000 - 0x01200000, 31 blocks of 0x00010000 bytes each.
RedBoot>
-----------------
But when I try to program, things still don't work:
------------------
RedBoot> fis write -f 0x1020000 -b 0x10000 -l 0x10000
* CAUTION * about to program FLASH
at 0x01020000..0x0102ffff from 0x00010000 - continue (y/n)?
y
... Erase from 0x01020000-0x01030000: .
... Program from 0x00010000-0x00020000 at 0x01020000:
-------------------
or:
-------------------
RedBoot> fis write -f 0x1020000 -b 0x10000 -l 0x10000
* CAUTION * about to program FLASH
at 0x01020000..0x0102ffff from 0x00010000 - continue (y/n)?
y
... Erase from 0x01020000-0x01030000: .
... Program from 0x00010000-0x00020000 at 0x01020000:
-------------------
>What about the size of redboot ? If it is bigger than 64K it may
>refuse whatever you want to do at 0x1010000, otherwise it will
>disappear. (some kind of internal protection)
I believe the output below shows that redboot only uses
0x1000000-0x100ffff.
I checked with arm-elf-size and it is <64k:
text data bss dec hex filename
58539 0 24988 83527 14647 install/bin/redboot.elf
RedBoot> version
RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 12:51:51, May 22 2003
Platform: Atmel AT91/EB40A (ARM7TDMI)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
RAM: 0x00000000-0x00040000, 0x0000a748-0x0003f000 available
FLASH: 0x01010000 - 0x01200000, 31 blocks of 0x00010000 bytes each.
RedBoot>
Øyvind
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss