[ECOS] Redboot EB40a problems with flash programming

Øyvind Harboe oyvind.harboe@zylin.com
Thu May 22 13:42:00 GMT 2003


I've compiled a Redboot ROM image from the CVS sources
(fresh today). Redboot comes up as expected, passes a 
smoketest, but I seem to be unable to program the
flash using Redboot commands.


Any help would be greatly appreciated!



Here is what I did and what I saw:

- I have installed ecos using the instructions here:
http://sources.redhat.com/ecos/getstart.html

- I downloaded the latest from CVS and pointed ECOS_REPOSITORY
to the right spot

mkdir ecoscvs
cd ecoscvs
cvs -z3 -d :pserver:anoncvs@sources.redhat.com:/cvs/ecos co -P ecos 
export ECOS_REOPSITORY=/home/xxx/ecoscvs/ecos/packages


- Then I built Redboot

ecosconfig new eb40a
ecosconfig import
$ECOS_REPOSITORY/hal/eb40a/current/misc/redboot_ROM.ecm
ecosconfig tree
make

- In my early efforts to get Redboot installed, I accidentally wiped
Angel. We now have a Wiggler and a flash programming software that
we used to write the elf image into flash. (One of the hardware guys
I work with helped me there, so I don't have any details.)

- Redboot now runs fine(BTW, shouldn't the copyright be for 2003 
as well?):

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

- However, when I try to erase flash, things start to go wrong. My
*guess* is that Redboot crashed after it wrote 
"... Erase from 0x01010000-0x01020000: " to the serial port(I had
expected to see it return to the prompt).

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>

- Just for kicks, I tried to write a bit to flash(there is nothing
in particular in RAM, just testing), and I got:

RedBoot> fis write -f 0x1010000 -l 0x10000 -b 0x10000
* CAUTION * about to program FLASH
            at 0x01010000..0x0101ffff from 0x00010000 - continue (y/n)?
y
... 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>


Ø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



More information about the Ecos-discuss mailing list