U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Laman <tlaman@rochester.rr.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Software emulation exception on entry into RAM
Date: Fri, 30 Jul 2004 05:31:42 -0400	[thread overview]
Message-ID: <410A157E.5060307@rochester.rr.com> (raw)
In-Reply-To: <31ADFA827355984B9E2A161514595B561C3321@lpdsrv04.logicpd.com>

Mike,

In my board specific code, after initialization of the SDRAM, I have 
code that writes the address as data to that address - write 0x0 to 0x0, 
0x4 to 0x4, etc. After the Software Emulation Exception, I go into the 
SDRAM and the code is copied correctly in the used areas, and my pattern 
is in the other areas.

Because of this, I don't think my SDRAM settings are being changed.

-Tom Laman

Michael Bendzick wrote:

>Tom-
>
>I can't be sure on this at all, but I ran into an SDRAM problem recently on
>a different board than yours and figured out the following solution.
>
>In the meantime, take a look at the flow of the platform.S (or equivalent)
>file in your board directory.  I've been working with a board that is
>similar to the Innovator, but the memory map was a little different, and
>found that I could fix an SDRAM configuration problem in that file.
>
>In the platform.S code, which is assembly that gets run right away when the
>board powers up, there is initialization for external memory configuration
>registers.  This particular file, and probably the code for many more
>boards, detects if the code is currently running from SDRAM or elsewhere.
>If running from SDRAM, it skips reconfiguring the SDRAM registers, as that
>would likely mess things up in a bad way.
>
>The decision structure was originally based on comparing the program counter
>to the SDRAM base address.  If PC was greater than SDRAM base, then skip
>SDRAM reconfigure.  This worked well when flash memory started at 0x0, and
>SDRAM at 0x10000000, but I was running the code out of 0x20000000 (internal
>SRAM).  The assembly code thought it was in SDRAM and skipped configuring
>the registers, even though it would have been okay to reconfigure them.
>
>The solution to the problem was to take the PC, mask off the don't care
>bits, and then check the equality of the result to the SDRAM base address.
>This precisely determines if SDRAM is the current execution address, no
>matter if code ran higher or lower in the memory map than SDRAM.
>
>In summary, check to make sure that when you set a register configuration
>value, that it actually makes it to that register.  Hopefully this
>information has been helpful and not just completely unrelated.
>
>-Michael Bendzick
>
>-----Original Message-----
>From: Thomas Laman
>To: U-Boot-Users (E-mail)
>Sent: 7/29/2004 8:06 PM
>Subject: [U-Boot-Users] Software emulation exception on entry into RAM
>
>I am implementing u-boot 1.0.2 on a custom 860P board and am getting a 
>Software Emulation Exception
>(as reported by BDI2000) at the first access of RAM after code is copied
>
>to RAM.
>
>The SDRAM setup was copied from a working PSOS+ load running on this 
>board. Successful burst
>reads have been verified with a logic analyzer. I can't easily get 
>access to the logic analyzer for debugging
>u-boot.
>
>I have defined SRAM to be at 0x0 and I get the same results.
>
>I know I am not using the CVS version of u-boot, I am using what was 
>supplied w/ ELDK 3.0.
>
>I have searched the list and have found cases where SDRAM 
>initialization/burst read configurations have been
>blamed. Based on success w/ PSOS+, I don't think this is my problem.
>
>Any ideas?
>
>-Tom Laman
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by OSTG. Have you noticed the changes on
>Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
>one more big change to announce. We are now OSTG- Open Source Technology
>Group. Come see the changes on the new OSTG site. www.ostg.com
>_______________________________________________
>U-Boot-Users mailing list
>U-Boot-Users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
>  
>

  reply	other threads:[~2004-07-30  9:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-30  7:41 [U-Boot-Users] Software emulation exception on entry into RAM Michael Bendzick
2004-07-30  9:31 ` Thomas Laman [this message]
2004-07-30 10:02   ` Wolfgang Denk
2004-07-31 12:04     ` Thomas Laman
2004-07-31 12:34       ` Wolfgang Denk
2004-07-30  9:59 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2004-07-30  1:06 Thomas Laman
2004-07-30  9:56 ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=410A157E.5060307@rochester.rr.com \
    --to=tlaman@rochester.rr.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox