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: Restoring boot on eb55


I don't know about using the JTAG interface that you have linked to, but I managed to make much the same mistake as you did and erased the boot flash on our EB55 - easily done :-)  Here's how we recovered from it - I hope you can adapt the settings to your interface.

We have a JTAG WIGGLER that we used for resurrecting our board.  The steps required are:

1	initialise the clock and memory interface using the wiggler

This is part of a script that we used with the software for our wiggler - it's simply "set address 0xffff4020 to value 0x002f0002, etc"

word 0xffff4020 = 0x002f0002
word 0xffff4020 = 0x002f4002
word 0xffff4020 = 0x032f4102
word 0xffff4020 = 0x032f8102
word 0xffe00000 = 0x01002529
word 0xffe00004 = 0x02002121
word 0xffe00024 = 0x00000006
word 0xffe00020 = 0x00000001

2	use the wiggler to download the redboot_RAM.elf file to the RAM area of the board

We used the image that is in ecos\images\arm\at91eb55 in the CVS tree - our wiggler software supports elf files.

3	start redboot_RAM.  You should now have a working redboot prompt in a Hyperterminal window, if you have a serial cable connected (with the usual serial parameters)
4	use redboot_RAM to download the redboot_ROM image (from the same location in the CVS tree) to the boot area of flash.  You really do want to overwrite your boot location this time :-)

Obviously, if you try to reboot before you finish step 4, you will have to start from scratch, as the RAM contents will be lost.

I hope that these are OK - my recollection is a bit hazy.

Alan Bowman


-----Original Message-----
From: Irvin Probst [mailto:probstir@ensieta.fr]
Sent: 15 March 2004 18:08
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Restoring boot on eb55


Hi, after a typo in redboot I deleted the begining of the flash on an
ATMEL EB55 board (yes I know, redboot asks me if I'm sure that I want to
write, but hey I WAS sure :) ). 
Anyway now I'm looking for a way to restore it. I tried to start redboot
directly from ram using the JTAG downloader and interface that can be
found at http://www.ascensit.com/developers/atmel_eb55/main.php3 but of
course redboot does not start anymore as the whole boot stuff does not
occur. Please notice that this way to start redboot used to work, so if
someone can point me a way to make it work again it would be great.
After a day of googling I found this thread
http://sources.redhat.com/ml/ecos-discuss/2003-08/msg00567.html but it
was not very helpful in my case.
So, do you have any idea of how to restore the boot stuff ?
Thanks a lot.

-- 
Irvin Probst
ENSIETA
Tel: 02.98.34.88.39



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

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