<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=GB2312" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 3/1/11 5:47 PM, zxy__1127 wrote:
    <blockquote cite="mid:201103020947121258043@163.com%20" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=GB2312">
      <meta content="MSHTML 6.00.2900.6058" name="GENERATOR">
      <style>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
      <div><font face="Verdana" size="2"><font color="#808080"><strong>发
              件人:</strong> Keith Hui </font></font></div>
      <div><font face="Verdana" size="2"><font color="#808080"><strong>发
              送时间:</strong> 2011-03-02  00:32:50 </font></font></div>
      <div><font face="Verdana" size="2"><font color="#808080"><strong>收
              件人:</strong> <a class="moz-txt-link-abbreviated" href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a> </font></font></div>
      <div><font face="Verdana" size="2"><font color="#808080"><strong>抄
              送:</strong> </font></font></div>
      <div><font face="Verdana" size="2"><font color="#808080"><strong>主
              题:</strong> Re: [coreboot] how to deal with large romstage
            size? </font></font></div>
      <div><font color="#808080"> </font></div>
      <div><font face="Verdana" size="2">
          <div><font color="#808080">> Hi all,</font></div>
          <div><font color="#808080">></font></div>
          <div><font color="#808080">> After I add some memory initialisize code, the romstage is over 64K byte,and tne code can't run properly.</font></div>
          <div><font color="#808080">> Then what should I do when romstage is over 64K byte? Is romstage's size limits to 64KB?</font></div>
          <div><font color="#808080">></font></div>
          <div><font color="#808080">> Thanks a lot!</font></div>
          <div><font color="#808080">> 2011-03-01</font></div>
          <div><font color="#808080">></font></div>
          <div> </div>
          <div><font color="#808080">It is not a direct limitation on romstage's size, but a result of most</font></div>
          <div><font color="#808080">chipsets mapping only the top 64KB of flash to the memory space. Most</font></div>
          <div><font color="#808080">chipsets require some programming to have the entire flash rom appear</font></div>
          <div><font color="#808080">in memory. Your code didn't run properly because not all of it has</font></div>
          <div><font color="#808080">been mapped to memory space and get effectively cut.</font></div>
          <div> </div>
          <div><font color="#808080">But my romstage for Intel 440BX is only about 11KB. What chipset are</font></div>
          <div><font color="#808080">you dealing with?</font></div>
          <div> </div>
          <div><font color="#0000ff" size="3">my chipset is intel
              arrandal+qm57,it's MRC code is very large(about 110KB
              after build) :-(</font></div>
          <div> </div>
          <div><font color="#808080">Also, look at implementing TINY_BOOTBLOCK which leaves a tiny stub,</font></div>
          <div><font color="#808080">well within the 64KB limit, which does nothing but enable enough</font></div>
          <div><font color="#808080">hardware (southbridge to be exact) to make the entire rom visible,</font></div>
          <div><font color="#808080">then locates and executes the real romstage which is now just another</font></div>
          <div><font color="#808080">stage in CBFS. Again, all 440BX/PIIX4 boards implement this and can be</font></div>
          <div><font color="#808080">a reference.</font></div>
          <div> </div>
          <div><strong><span class="Apple-style-span"
                style="word-spacing: 0px; font: medium 'Times New
                Roman'; text-transform: none; color: rgb(0, 0, 0);
                text-indent: 0px; white-space: normal; letter-spacing:
                normal; border-collapse: separate; orphans: 2; widows:
                2;"><span class="Apple-style-span" style="font-size:
                  small; line-height: 18px; font-family: arial;"><font
                    color="#0000ff">actually, </font></span></span><span
                class="Apple-style-span" style="word-spacing: 0px; font:
                medium 'Times New Roman'; text-transform: none; color:
                rgb(0, 0, 0); text-indent: 0px; white-space: normal;
                letter-spacing: normal; border-collapse: separate;
                orphans: 2; widows: 2;"><span class="Apple-style-span"
                  style="font-size: small; line-height: 18px;
                  font-family: arial;"><font color="#0000ff">it can run
                    at bootblock,but can not reach "cache_as_ram:".</font></span></span></strong></div>
          <div><font color="#808080"><span class="Apple-style-span"
                style="word-spacing: 0px; font: medium 'Times New
                Roman'; text-transform: none; color: rgb(0, 0, 0);
                text-indent: 0px; white-space: normal; letter-spacing:
                normal; border-collapse: separate; orphans: 2; widows:
                2;"><span class="Apple-style-span" style="font-size:
                  small; line-height: 18px; font-family: arial;"></span></span></font><font
              size="3"><font color="#0000ff"></font></font><br>
          </div>
        </font></div>
    </blockquote>
    <br>
    I think you need to make the complete flash visible in a southbridge
    bootblock.c<br>
    <br>
    It would help if you could publish your current code so we can do
    better than asking the crystal ball for answers ;)<br>
    <br>
    Stefan<br>
    <br>
  </body>
</html>