<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 15 (filtered medium)"><title>busybox shell doesn't come up or get stuck.. where should I look or how should I debug it?</title><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
{font-family:"Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Malgun Gothic";
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Malgun Gothic";
color:windowtext;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Malgun Gothic";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></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=KO link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>I had mistakenly omitted ‘-static’ option when making init program.(repeated Hello! Print).<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>So now the board output looks like this.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:33.0pt;mso-para-margin-left:3.0gd;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>(...)<o:p></o:p></span></p><p class=MsoNormal style='margin-left:33.0pt;mso-para-margin-left:3.0gd;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>### point 106-1<o:p></o:p></span></p><p class=MsoNormal style='margin-left:33.0pt;mso-para-margin-left:3.0gd;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>Run /init as init process<o:p></o:p></span></p><p class=MsoNormal style='margin-left:33.0pt;mso-para-margin-left:3.0gd;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>### point 106-2, ret = 0<o:p></o:p></span></p><p class=MsoNormal style='margin-left:33.0pt;mso-para-margin-left:3.0gd;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>Hello! i=0<o:p></o:p></span></p><p class=MsoNormal style='margin-left:33.0pt;mso-para-margin-left:3.0gd;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>Hello! i=1<o:p></o:p></span></p><p class=MsoNormal style='margin-left:33.0pt;mso-para-margin-left:3.0gd;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>Hello! i=2<o:p></o:p></span></p><p class=MsoNormal style='margin-left:33.0pt;mso-para-margin-left:3.0gd;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>...<o:p></o:p></span></p><p class=MsoNormal style='margin-left:33.0pt;mso-para-margin-left:3.0gd;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>Hello! i=115<o:p></o:p></span></p><p class=MsoNormal style='margin-left:33.0pt;mso-para-margin-left:3.0gd;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>Hello! i=116<o:p></o:p></span></p><p class=MsoNormal style='margin-left:33.0pt;mso-para-margin-left:3.0gd;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>Hello! i=117<o:p></o:p></span></p><p class=MsoNormal style='margin-left:33.0pt;mso-para-margin-left:3.0gd;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>He <=== hangs.<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>So the running the ‘init’ program (whether it’s a script or a binary program) is ok.<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>The binary ‘init’ program stops after printing Hello 117 times so there seems to be more basic problem in H/W or device tree. And when the init script ran ‘exec /bin/sh’, the shell didn’t start so ‘running exec inside a script’ can have a problem. <o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>If anyone has a suggestion or advice, I welcome it.<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'><o:p> </o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>Thank you!<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'>Chan Kim<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"Malgun Gothic"'><o:p> </o:p></span></p></div></body></html>