On 4/27/10 11:52 PM, "Jon Povey" <[email protected]> wrote:

> Gary Carlson wrote:
>> I wanted to see if anyone has any experience trying to upload the
>> AT91Bootstrap code into NAND flash for any of the AT91SAM9XXX parts
>> (i.e. AT91SAM9260, AT91SAM9G20, etc.) using OpenOCD?
> ...
>> At this point, I
>> would be happy if someone has marched down this path before and can
>> chime in with some advice. I have spent several days trying to attack
>> this problem without much success.  At least on the surface it does
>> not seem like this should be that difficult.
> 
> Not on this platform, but I have done things with NAND on another platform.
> 
> Maybe suggesting the obvious, but do you have any other way to program the
> NAND flash on this board, or a reference board (EVM?) with a known good flash
> image?

Yes, unfortunately the Atmel Windows-based ISP works fine, but they don't
provide source code for that!  :)

> If you do, get that booting then read the flash back with OpenOCD and compare
> with what you managed to do, get so you can recreate it.
> 
> Also double-check boot config pin settings and all that other good hardware
> stuff.
>

I am reasonably sure that is correct.  As I stated earlier I can erase,
write, and verify the image with OpenOCD, but unfortunately the first stage
boostrapper "RomBOOT" doesn't like it.  I am starting to wonder if it is
balking because of what is stored in the OOB areas, but I can't get OpenOCD
to read back images burned by their ISP (yet).  I also tried writing the
same image with U-Boot to see if that made any difference and the first
stage bootstrapper doesn't like it either.
 
> Other than that, you can try debugging the bootloader that's trying to access
> the NAND flash (using OpenOCD + gdb). Good luck with that.

And there lies one of the problems I am suffering.  The Atmel RomBOOT is
masked programmed by the factory and Atmel doesn't appear to provide source
code for that either.  That is an issue for sure.

> 
> --
> Jon Povey
> [email protected]
> 
> Racelogic is a limited company registered in England. Registered number
> 2743719 .
> Registered Office Unit 10, Swan Business Centre, Osier Way, Buckingham, Bucks,
> MK18 1TB .
> 
> The information contained in this electronic mail transmission is intended by
> Racelogic Ltd for the use of the named individual or entity to which it is
> directed and may contain information that is confidential or privileged. If
> you have received this electronic mail transmission in error, please delete it
> from your system without copying or forwarding it, and notify the sender of
> the error by reply email so that the sender's address records can be
> corrected. The views expressed by the sender of this communication do not
> necessarily represent those of Racelogic Ltd. Please note that Racelogic
> reserves the right to monitor e-mail communications passing through its
> network
> 
> 



Gary Carlson

Gary Carlson, MSEE
Principal Engineer
Carlson-Minot Inc.







_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to