From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] new board SDRAM conf
Date: Tue, 4 Nov 2008 11:46:50 +0100 [thread overview]
Message-ID: <200811041146.50321.sr@denx.de> (raw)
In-Reply-To: <000901c93e67$5a2a1230$0e7e3690$@com>
Hi Steven,
On Tuesday 04 November 2008, ??? wrote:
> I solved SDRAM problems for your help, when I use CFG_DRAM_TEST , it passed
>
> My bdi2000's configuration is blows
> WDCR 0x10 0x00000020 ;Select SDRAM0_CFG0
> WDCR 0x11 0x34000000 ;CFG0: 32bit, PMU disable
> WDCR 0x11 0x84000000 ;CFG1: enable SDRA
>
> When I Use BID2000, accessing SDRAM with Verify, mm command, It works fine
> . I think SDRAM0_CFG first is CFG0, and second is CFG1.
>
> But in board/amcc/mft.c I used marked code, It's confused me.
> Long int sdram_init()
> {
>
> //mtsdram (mem_cfg0, 0x34000000); /* confused me */
> //mtsdram (mem_cfg1, 0x84000000);
> mtsdram (mem_cfg1, 0x34000000);/* it works fine */
> mtsdram (mem_cfg0, 0x84000000);
> }
Not sure if I understand what you are trying to tell me? Did you find a
problem in the common code? Or is it a problem with your BDI config script?
> I have another problem.
> cpu/ppc4XX/start.S -> trab_init function has exception error blows LOG
> MESSAGE. When I debug trap_init , use blr code it succefully returned.
> maybe you can point me to the right direction.
>
> trap_init:
> lwz r7, GOT(_start_of_vectors)
> lwz r8, GOT(_end_of_vectors)
>
> li r9, 0x100 /* reset vector always at 0x100 */
>
> cmplw 0, r7, r8
> bgelr /* return if r7>=r8 - just in case */
>
> mflr r4 /* save link register */
> 1:
> lwz r0, 0(r7)
> stw r0, 0(r9)
> addi r7, r7, 4
> addi r9, r9, 4
> cmplw 0, r7, r8
> bne 1b
>
> /* blr (in this use blr it works Steven) */
So when you add this "blr" here you can boot successfully to the U-Boot
prompt? And without it you get the exceptions printed below? That's strange.
It works on all other known 4xx platforms without problem as far as I know.
Make sure to start "fresh" from the BDI by using "reset run".
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
prev parent reply other threads:[~2008-11-04 10:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-03 7:14 [U-Boot] new board SDRAM conf 조기성
2008-11-03 7:47 ` Stefan Roese
2008-11-03 9:51 ` 조기성
2008-11-03 10:11 ` Stefan Roese
2008-11-03 14:45 ` 조기성
2008-11-03 15:02 ` Stefan Roese
2008-11-04 10:23 ` 조기성
2008-11-04 10:46 ` Stefan Roese [this message]
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=200811041146.50321.sr@denx.de \
--to=sr@denx.de \
--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