public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [patch]virtex2 fix for bogus download error messages
@ 2005-01-12  6:23 Andrew Dyer
  2005-09-24 21:41 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Dyer @ 2005-01-12  6:23 UTC (permalink / raw)
  To: u-boot

the virtex2 fpga download code watches for init going active during
a download of config data as an error condition.  init also goes active
after a configuration is finished in concert with the done signal.  The code
in cvs doesn't check for done active until all of the configuration
data is sent.

On our board the done signal would go active "early" as the
configuration data has a few extra pad bytes at the end, but the
code would print an error message even though the download
had suceeded.

The patch adds a check for done going active before checking
init.  If done is seen active the byte loading is cut short.  If debugging
is on it will print the count where it finished (8 bytes early for us).
It also changes the printf string to indicate the counts it prints are in
ticks and not mS.

I only have a system with 'slave parallel' style config interface, so I've
only patched that download version.  The virtex2 slave serial and spartan2
versions may have the same problem, I didn't have time to look.

-- 
Hardware, n.:
        The parts of a computer system that can be kicked.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: uboot-virtex2-patch.txt
Url: http://lists.denx.de/pipermail/u-boot/attachments/20050112/b7b72ddb/attachment.txt 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-24 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-12  6:23 [U-Boot-Users] [patch]virtex2 fix for bogus download error messages Andrew Dyer
2005-09-24 21:41 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox