[ECOS] Getting and compiling ECOS or is there an archive?

Linux HA linuxha@comcast.net
Thu Mar 24 19:52:00 GMT 2005

Gary Thomas wrote:
> On Sun, 2005-03-20 at 19:16 -0500, Linux HA wrote:

> How did you configure & build RedBoot?  What sources are you using?

Redboot from Nov 19 2003 (see below) is currently on the AT91.

Here is what I did:

cd /opt/ecos
wget --passive-ftp ftp://ecos.sourceware.org/pub/ecos/ecos-install.tcl
sh ecos-install.tcl #(dl'd from redhat & put in /opt/ecos
cvs -d :pserver:anoncvs@ecos.sourceware.org:/cvs/ecos login
cvs -z3 -d :pserver:anoncvs@ecos.sourceware.org:/cvs/ecos co -P ecos
mv ecos ecos-cvs
export ECOS_REPOSITORY=/opt/ecos/ecos-cvs/packages
export ARCH_DIR=arm
export TARGET=eb40a
export PLATFORM_DIR=at91/eb40a
export REDBOOT_CFG=redboot_RAM
export VERSION=current
mkdir /tmp/${REDBOOT_CFG}
cd /tmp/${REDBOOT_CFG}
ecosconfig new ${TARGET} redboot
ecosconfig import 
ecosconfig tree
arm-elf-gdb install/bin/redboot.elf # loaded successfully
xminicom & # nice RedBoot> prompt

At this time I moved the flash jumper so I can burn the new
RedBoot image. The RAM image works for the most part. The
%{FREEMEMLO} doesn't work. I've done the 'l -b 0x20200 -m
y' (0x100 over the lowest available RAM). When I attempt to
burn the flash I get an error.

>>Sorry for all the troubles but I think the wall is starting
>>to soften up. ;-)
> This [error] doesn't really keep you from doing other things.
> Continue to try the examples (which do not require you to use this
> macro) and see if you can get something going.

RedBoot> ver

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 23:15:10, Nov 19 2003

Platform: Atmel AT91/EB40A (ARM7TDMI)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x00040000, [0x0000a968-0x0003f000] available
FLASH: 0x01000000 - 0x01200000, 32 blocks of 0x00010000 bytes each.

RedBoot> l -b %{FREEMEMLO} -m y 

Address offset = 0xff00ac00
Entry point: 0x0000ac40, address range: 0x0000ac00-0x00019d38
xyzModem - CRC mode, 1451(SOH)/0(STX)/0(CAN) packets, 3 retries
RedBoot> fi wr -f 0x01100000 -b %{FREEMEMLO} -l 0x10000
* CAUTION * about to program FLASH
             at 0x01100000..0x0110ffff from 0x0000ac00 - continue (y/n)? y
... Erase from 0x01100000-0x01110000: .
... Program from 0x0000ac00-0x0001ac00 at 0x01100000:
Can't program region at 0x01100000: Data verify failed after operation

Hmm this is bad! Not only that but now I can't get to Angel.
Looks like I screwed up. I've purchased a jtag interface so I'll
take it easy until then. Any idea where I can get angel for the

Linux Home Automation                 Neil Cherry
http://home.comcast.net/~ncherry/     (Text only)
http://hcs.sourceforge.net/           (HCS II & HCS_C)
http://linuxha.blogspot.com/          My HA Blog

Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list