<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<title>Re: [U-Boot-Users] (no subject)</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {font-family:Arial;
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<div id=idOWAReplyText41248>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>There is an error&nbsp;in the spd_sdram.c<font color=blue><span
style='color:blue'> in cpu/ppc4xx/,</span></font> file in a loop statement that
is wrong if you are using two Dimms.</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>It missing initializing a part of the second dimm.&nbsp; So if you have
a 1gig of memory it will show up as 768Megs.</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Without the patch it initializing like this:</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>0 = 256M</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>1 = 256M</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>1= 256M</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>2= 256M</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Total 768M</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>With the patch:</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>0= 256M</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>1=256M</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>2=256M</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>3=256M</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Total 1024M</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Gerald</span></font></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabIndex=-1>

</span></font></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
u-boot-users-bounces@lists.sourceforge.net on behalf of Gerald Jackson<br>
<b><span style='font-weight:bold'>Sent:</span></b> Sun 10/1/2006 3:17 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Stefan Roese;
u-boot-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [U-Boot-Users] (no
subject)</span></font></p>

</div>

</div>

<div>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Stefan,<br>
<br>
Thank you for the init.S file.&nbsp; But the problem still persists.<br>
<br>
Here is what I get:<br>
U-Boot 1.1.4 (Oct&nbsp; 1 2006 - 02:58:55)<br>
<br>
CPU:&nbsp;&nbsp; AMCC PowerPC 440GX Rev. F at 800 MHz (PLB=160, OPB=80, EBC=40<br>
MHz)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I2C boot EEPROM enabled<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Internal PCI arbiter enabled<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32 kB I-Cache 32 kB D-Cache<br>
Board: Ocotea - AMCC PPC440GX Evaluation Board<br>
I2C:&nbsp;&nbsp; ready<br>
DRAM:&nbsp; DIMM slot 0: populated<br>
DIMM slot 1: populated<br>
DIMM slot 0: DDR SDRAM detected<br>
DIMM slot 1: DDR SDRAM detected<br>
DIMM 0 voltage level supported.<br>
Finish program_cfg0<br>
Finish program_cfg1<br>
Finish program_rtr<br>
tr0: 410b401a<br>
Finish program_tr0<br>
Finish program_bxcr Total_Size 805306368&nbsp;&nbsp;&nbsp;&nbsp; &lt;----&nbsp;
Here is part of the<br>
problem this should return&nbsp; about a 1Gig of memory but it only returns<br>
805Megs.&nbsp;&nbsp;<br>
<br>
If I try only one dimm and move it to either slot it shows the correct<br>
amount but with two dimms the calculation is wrong.<br>
<br>
It seems like I am miss about two (or one) banks from the Dimm which I<br>
assume equals 256M.<br>
<br>
I am still working on what is causing the wrong amount.<br>
<br>
Gerald<br>
<br>
<br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: Stefan Roese [<a href="mailto:sr@denx.de">mailto:sr@denx.de</a>]<br>
Sent: Sunday, October 01, 2006 2:00 PM<br>
To: u-boot-users@lists.sourceforge.net<br>
Cc: Gerald Jackson<br>
Subject: Re: [U-Boot-Users] (no subject)<br>
<br>
Hi Gerald,<br>
<br>
On Sunday 01 October 2006 19:15, Gerald Jackson wrote:<br>
&gt; I look more into using both dimms issue and I see two interesting<br>
&gt; things.<br>
&gt;<br>
&gt; 1. With two dimms it never get pass line 1478 - 1500 in spd_sdram.c.<br>
It<br>
&gt; loops once then hangs.<br>
&gt;<br>
&gt; 2. If I disable this part (ie break) I get the ERROR: Cannot determine<br>
a<br>
&gt; common read delay. If I comment out the hang()&nbsp; It returns but it
only<br>
&gt; calculated 768MB of memory.<br>
<br>
Only 768MB? Does this mean you are using more than 512MB? As I mentioned<br>
<br>
earlier, this can't work right now. The TLB setup is for a max. of<br>
512MB.<br>
<br>
Please try the attached init.S file. It fixes the issue mentioned by<br>
Marc<br>
Howard _and_ adds TLB entries for a max. of 1GB of DDR. It will be<br>
checked<br>
into the official git tree in a few days.<br>
<br>
Please let me know if this changes anything.<br>
<br>
Best regards,<br>
Stefan<br>
<br>
-------------------------------------------------------------------------<br>
Take Surveys. Earn Cash. Influence the Future of IT<br>
Join SourceForge.net's Techsay panel and you'll get the chance to share your<br>
opinions on IT &amp; business topics through brief surveys -- and earn cash<br>
<a
href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV</a><br>
_______________________________________________<br>
U-Boot-Users mailing list<br>
U-Boot-Users@lists.sourceforge.net<br>
<a href="https://lists.sourceforge.net/lists/listinfo/u-boot-users">https://lists.sourceforge.net/lists/listinfo/u-boot-users</a></span></font></p>

</div>

</div>

</body>

</html>