<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="chsdate" downloadurl=""/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="chmetcnv" downloadurl=""/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:9.0pt;
        font-family:SimSun;}
code
        {font-family:SimSun;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 126.65pt 72.0pt 126.65pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:552353865;
        mso-list-template-ids:-79517406;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1
        {mso-list-id:1795253666;
        mso-list-template-ids:-1859327692;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1 style='layout-grid:15.6pt'>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>Dear Denk:<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 color=navy face=宋体><span
lang=EN-US style='font-size:7.5pt;color:navy'> </span></font><font
size=3 color=navy><span lang=EN-US style='font-size:12.0pt;color:navy'>The
problem is solved After I check the document at:<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=3 color=navy face=宋体><span
lang=EN-US style='font-size:12.0pt;color:navy'><a
href="http://www.denx.de/wiki/view/DULG/RamdiskGreaterThan4MBCausesProblems">http://www.denx.de/wiki/view/DULG/RamdiskGreaterThan4MBCausesProblems</a><o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=3 color=navy face=宋体><span
lang=EN-US style='font-size:12.0pt;color:navy'>It wrote:</span></font><font
size=2 color=navy><span lang=EN-US style='font-size:10.5pt;color:navy'><o:p></o:p></span></font></p>
<p class=MsoPlainText><a name="Section_14.3.14."></a><st1:chsdate
IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899" w:st="on"><font
size=1 face=宋体><span lang=EN-US style='font-size:9.0pt'>14.3.14</span></font></st1:chsdate><span
lang=EN-US>. Ramdisk Greater than 4 MB Causes Problems</span><span lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt;font-family:SimSun'>Question: <o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='margin-left:36.0pt;text-align:left'><font
size=3 face=宋体><span lang=EN-US style='font-size:12.0pt;
font-family:SimSun'>I built a ramdisk image which is bigger than 4 MB. I run
into problems when I try to boot Linux with this image, while other (smaller)
ramdisk images work fine. <o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt;font-family:SimSun'>Answer: <o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='margin-left:36.0pt;text-align:left'><font
size=3 face=宋体><span lang=EN-US style='font-size:12.0pt;
font-family:SimSun'>The Linux kernel has a default maximum ramdisk size of 4096
kB. To boot with a bigger ramdisk image, you must raise this value. There are
two methods: <o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
auto;margin-left:72.0pt;text-align:left;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><font
size=2 face=Symbol><span lang=EN-US style='font-size:10.0pt;font-family:Symbol'><span
style='mso-list:Ignore'>·<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'> </span></font></span></span></font><![endif]><font
size=3 face=宋体><span lang=EN-US style='font-size:12.0pt;
font-family:SimSun'>Dynamical adjustment using boot arguments:<br>
You can pass a boot argument </span></font><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt;font-family:SimSun'>ramdisk_size=<size-in-kB></span></font><font
size=3 face=宋体><span lang=EN-US style='font-size:12.0pt;
font-family:SimSun'> to the Linux kernel to overwrite the configured maximum.
Note that this argument needs to be before any </span></font><font size=3
face=宋体><span lang=EN-US style='font-size:12.0pt;font-family:
SimSun'>root</span></font><font size=3 face=宋体><span lang=EN-US
style='font-size:12.0pt;font-family:SimSun'> argument. A flexible way to to
this is using U-Boot environment variables. For instance, to boot with a
ramdisk image of 6 MB (6144 kB), you can define: <o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt;font-family:SimSun'>=> setenv rd_size
6144<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt;font-family:SimSun'>=> setenv bootargs
... ramdisk_size=\$(rd_size) ...<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt;font-family:SimSun'>=> saveenv<o:p></o:p></span></font></p>
<p class=MsoNormal align=left style='text-align:left'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt;font-family:SimSun'>
<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=3 face=宋体><span lang=EN-US
style='font-size:12.0pt'>If you later find out that you need an even bigger
ramdisk image, or that a smaller one is sufficient, all that needs changing is
the value of the </span></font><font size=3><span lang=EN-US style='font-size:
12.0pt'>"rd_size"</span></font><font size=3><span lang=EN-US
style='font-size:12.0pt'> environment variable.<o:p></o:p></span></font></p>
<p class=MsoPlainText><b><font size=4 color=blue face=宋体><span
lang=EN-US style='font-size:14.0pt;color:blue;font-weight:bold'>With the first
way I modify the boorargs, and all work OK<o:p></o:p></span></font></b></p>
<p class=MsoNormal align=left style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
auto;margin-left:72.0pt;text-align:left;text-indent:-18.0pt;mso-list:l1 level1 lfo2'><![if !supportLists]><font
size=2 face=Symbol><span lang=EN-US style='font-size:10.0pt;font-family:Symbol'><span
style='mso-list:Ignore'>·<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'> </span></font></span></span></font><![endif]><font
size=3 face=宋体><span lang=EN-US style='font-size:12.0pt;
font-family:SimSun'><o:p> </o:p></span></font></p>
<ul type=disc>
<ul type=circle>
<li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
auto;text-align:left;mso-list:l1 level2 lfo2'><font size=3 face=宋体><span
lang=EN-US style='font-size:12.0pt;font-family:SimSun'>Increasing the
Linux kernel default value:<br>
When configuring your Linux kernel, adjust the value of the </span></font><font
size=3 face=宋体><span lang=EN-US style='font-size:12.0pt;
font-family:SimSun'>CONFIG_BLK_DEV_RAM_SIZE</span></font><font size=3
face=宋体><span lang=EN-US style='font-size:12.0pt;
font-family:SimSun'> parameter so that it contains a number equal or
larger than your ramdisk (in kB). (In the 2.4 kernel series, you'll find
this setting under the "Block devices" menu choice while, in
the 2.6 series, it will be under "Device drivers" ->
"Block devices".) <o:p></o:p></span></font></li>
</ul>
</ul>
<p class=MsoPlainText><b><font size=4 color=blue face=Arial><span lang=EN-US
style='font-size:14.0pt;font-family:Arial;color:blue;font-weight:bold'>With the
second way I only modify the </span></font></b><b><font size=4 color=blue><span
lang=EN-US style='font-size:14.0pt;color:blue;font-weight:bold'>CONFIG_BLK_DEV_RAM_SIZE,
but when it boot, it’s shows this problem still:</span></font></b><b><font
size=4 color=blue face=Arial><span lang=EN-US style='font-size:14.0pt;
font-family:Arial;color:blue;font-weight:bold'><o:p></o:p></span></font></b></p>
<p class=MsoPlainText><b><font size=4 color=blue face=Arial><span lang=EN-US
style='font-size:14.0pt;font-family:Arial;color:blue;font-weight:bold'>Kernel
panic - not syncing: No init found. Try passing init= option to kernel.<o:p></o:p></span></font></b></p>
<p class=MsoPlainText><b><font size=4 color=blue face=Arial><span lang=EN-US
style='font-size:14.0pt;font-family:Arial;color:blue;font-weight:bold'><o:p> </o:p></span></font></b></p>
<p class=MsoPlainText><font size=4 face=Arial><span lang=EN-US
style='font-size:14.0pt;font-family:Arial'>Last file I wrote:<o:p></o:p></span></font></p>
<p class=MsoPlainText><b><font size=4 color=blue face=Arial><span lang=EN-US
style='font-size:14.0pt;font-family:Arial;color:blue;font-weight:bold'><o:p> </o:p></span></font></b></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>>What you show is NOT the current code.<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 color=black face=宋体><span
lang=EN-US style='font-size:9.0pt;color:black'> </span></font><font
size=1 color=black><span lang=EN-US style='font-size:7.5pt;color:black'>By
update with the most recent code, I did new test, and get<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 color=black face=宋体><span
lang=EN-US style='font-size:9.0pt;color:black'>Different error message, that I
can</span></font><font color=black face="Courier New"><span lang=EN-US
style='font-family:"Courier New";color:black'>’</span></font><font
color=black><span lang=EN-US style='color:black'>t solve it, pls check the
attachment. <o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:7.5pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>> U-Boot <st1:chsdate IsROCDate="False"
IsLunarDate="False" Day="30" Month="12" Year="1899" w:st="on">1.1.3</st1:chsdate>
(Sep 7 2005 - 09:03:02)<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:7.5pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>>Please update U-Boot as well. You need this commit
included:<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:7.5pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>>commit f<st1:chmetcnv TCSC="0" NumberType="1"
Negative="False" HasSpace="False" SourceValue="190" UnitName="C" w:st="on">190c</st1:chmetcnv>11b<st1:chmetcnv
TCSC="0" NumberType="1" Negative="False" HasSpace="False" SourceValue="1"
UnitName="F" w:st="on">1f</st1:chmetcnv>22ff766e046588e<st1:chmetcnv TCSC="0"
NumberType="1" Negative="False" HasSpace="False" SourceValue="5" UnitName="a"
w:st="on">5a</st1:chmetcnv>7bb<st1:chmetcnv TCSC="0" NumberType="1"
Negative="False" HasSpace="False" SourceValue="55" UnitName="F" w:st="on">55f</st1:chmetcnv>28ae305<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>>tree <st1:chmetcnv TCSC="0" NumberType="1"
Negative="False" HasSpace="False" SourceValue="1" UnitName="C" w:st="on">1c</st1:chmetcnv><st1:chmetcnv
TCSC="0" NumberType="1" Negative="False" HasSpace="False" SourceValue="41"
UnitName="a" w:st="on">41a</st1:chmetcnv>7beffe<st1:chmetcnv TCSC="0"
NumberType="1" Negative="False" HasSpace="False" SourceValue="8" UnitName="a"
w:st="on">8a</st1:chmetcnv>293174dcb<st1:chmetcnv TCSC="0" NumberType="1"
Negative="False" HasSpace="False" SourceValue="7" UnitName="C" w:st="on">7c</st1:chmetcnv>28b<st1:chmetcnv
TCSC="0" NumberType="1" Negative="False" HasSpace="False"
SourceValue="394349204" UnitName="a" w:st="on">394349204a</st1:chmetcnv>047<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>>parent 4d<st1:chmetcnv TCSC="0" NumberType="1"
Negative="False" HasSpace="False" SourceValue="3" UnitName="a" w:st="on">03a</st1:chmetcnv><st1:chmetcnv
TCSC="0" NumberType="1" Negative="False" HasSpace="False" SourceValue="21"
UnitName="F" w:st="on">21f</st1:chmetcnv>2329bb<st1:chmetcnv TCSC="0"
NumberType="1" Negative="False" HasSpace="False" SourceValue="13" UnitName="a"
w:st="on">13a</st1:chmetcnv><st1:chmetcnv TCSC="0" NumberType="1"
Negative="False" HasSpace="False" SourceValue="9661" UnitName="a" w:st="on">9661a</st1:chmetcnv><st1:chmetcnv
TCSC="0" NumberType="1" Negative="False" HasSpace="False" SourceValue="23742"
UnitName="ac" w:st="on">23742ac</st1:chmetcnv>0b<st1:chmetcnv TCSC="0"
NumberType="1" Negative="False" HasSpace="False" SourceValue="77" UnitName="a"
w:st="on">77a</st1:chmetcnv><st1:chmetcnv TCSC="0" NumberType="1"
Negative="False" HasSpace="False" SourceValue="7" UnitName="a" w:st="on">7a</st1:chmetcnv>76d5<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>>author Stefan Roese <sr@denx.de> Sat, 05 Nov
2005 15:50:16 +0100<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>>committer Stefan Roese <sr@denx.de> Sat, 05
Nov 2005 15:50:16 +0100<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:7.5pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>> Adjust bd->bi_flashstart on
Yellowstone & Yosemite to correct size<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>> Patch by Stefan Roese, 05 Nov
2005<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:7.5pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>>I recommend to use the top-of-tree from the CVS or
GIT repositories.<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:7.5pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>> Linux version <st1:chsdate IsROCDate="False"
IsLunarDate="False" Day="30" Month="12" Year="1899" w:st="on">2.6.14</st1:chsdate>
(root@dxp) (gcc version 4.0.0) #1 Fri Nov 11<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>> 09:51:04 CST 2005<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:7.5pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>>This is not the current code base. You should
use top-of-tree from<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>>GIT repository (commit ff1df84b<st1:chmetcnv
TCSC="0" NumberType="1" Negative="False" HasSpace="False" SourceValue="3"
UnitName="C" w:st="on">3c</st1:chmetcnv>3154ffdb646941e<st1:chmetcnv TCSC="0"
NumberType="1" Negative="False" HasSpace="False" SourceValue="1" UnitName="C"
w:st="on">1c</st1:chmetcnv>70d17554e3042); the<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>>kernel will display something like this:<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:7.5pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>>Linux version <st1:chsdate IsROCDate="False"
IsLunarDate="False" Day="30" Month="12" Year="1899" w:st="on">2.6.14</st1:chsdate>-gff1df84b
...<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'> I update my source code by </span></font><font
face="Courier New"><span lang=EN-US style='font-family:"Courier New"'>“</span></font><span
lang=EN-US>cg-update</span><font face="Courier New"><span lang=EN-US
style='font-family:"Courier New"'>”</span></font><span lang=EN-US>
directly, after many message and file download it shows </span><font
face="Courier New"><span lang=EN-US style='font-family:"Courier New"'>“</span></font><span
lang=EN-US>full merged</span><font face="Courier New"><span lang=EN-US
style='font-family:"Courier New"'>”</span></font><span lang=EN-US>,<o:p></o:p></span></p>
<p class=MsoPlainText><font size=1 color=black face=宋体><span
lang=EN-US style='font-size:9.0pt;color:black'>I think it is work. But the
version only is <st1:chsdate IsROCDate="False" IsLunarDate="False" Day="30"
Month="12" Year="1899" w:st="on">2.6.14</st1:chsdate>. <o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:7.5pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=1 face=宋体><span lang=EN-US
style='font-size:9.0pt'>Thanks a lot!<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=1 color=black face=宋体><span
lang=EN-US style='font-size:7.5pt;color:black'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=1 color=black face=宋体><span
lang=EN-US style='font-size:9.0pt;color:black'>Kylong Mu<o:p></o:p></span></font></p>
</div>
</body>
</html>