<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 12 (filtered medium)"><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;}
/* 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:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:"Courier New";}
span.preprocessor
        {mso-style-name:preprocessor;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span lang=EN-US>I&#8217;m trying to start barebox is described in the First Steps chapter of the barebox documentation, but I get a segfault.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><pre><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>I followed the User&#8217;s Manual step by step and now I try to run <o:p></o:p></span></pre><pre>./barebox -e env.bin -i cramfs.bin<o:p></o:p></pre><pre><span style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></pre><pre><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Did I maybe miss something when creating the cramfs.bin? Do I need to put files into somedir?<o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>I&#8217;m using barebox-2011.05.0<o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>OS: Debian 6.0.1 (squeeze) <o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Kernel: Linux 2.6.32-5-686-bigmem<o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></pre><p class=MsoNormal><span lang=EN-US>Neither this patch:<o:p></o:p></span></p><pre><span lang=EN-US>--- a/arch/sandbox/board/hostfile.c<o:p></o:p></span></pre><pre><span lang=EN-US>+++ b/arch/sandbox/board/hostfile.c<o:p></o:p></span></pre><pre><span lang=EN-US>@@ -107,7 +107,8 @@ int barebox_register_filedev(struct hf_platform_data *hf)<o:p></o:p></span></pre><pre><span lang=EN-US><o:p>&nbsp;</o:p></span></pre><pre><span lang=EN-US>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dev-&gt;platform_data = hf;<o:p></o:p></span></pre><pre><span lang=EN-US><o:p>&nbsp;</o:p></span></pre><pre><span lang=EN-US>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strcpy(dev-&gt;name, &quot;hostfile&quot;);<o:p></o:p></span></pre><pre><span lang=EN-US>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* Registering 2 devices with same name creates problem? */<o:p></o:p></span></pre><pre><span lang=EN-US>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strcpy(dev-&gt;name, hf-&gt;filename);<o:p></o:p></span></pre><pre><span lang=EN-US>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dev-&gt;size = hf-&gt;size;<o:p></o:p></span></pre><pre><span lang=EN-US>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dev-&gt;map_base = hf-&gt;map_base;<o:p></o:p></span></pre><p class=MsoNormal><span lang=EN-US>Nor this patch:<o:p></o:p></span></p><pre><span lang=EN-US>--- a/arch/sandbox/board/hostfile.c<o:p></o:p></span></pre><pre><span lang=EN-US>+++ b/arch/sandbox/board/hostfile.c<o:p></o:p></span></pre><pre><span lang=EN-US>@@ -109,6 +109,7 @@ int barebox_register_filedev(struct hf_platform_data *hf)<o:p></o:p></span></pre><pre><span lang=EN-US> <o:p></o:p></span></pre><pre><span lang=EN-US>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strcpy(dev-&gt;name, &quot;hostfile&quot;);<o:p></o:p></span></pre><pre><span lang=EN-US> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dev-&gt;size = hf-&gt;size;<o:p></o:p></span></pre><pre><span lang=EN-US>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dev-&gt;id = -1;<o:p></o:p></span></pre><pre><span lang=EN-US> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dev-&gt;map_base = hf-&gt;map_base;<o:p></o:p></span></pre><pre><span lang=EN-US> <o:p></o:p></span></pre><pre><span lang=EN-US>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return register_device(dev);<o:p></o:p></span></pre><p class=MsoNormal><span lang=EN-US>help.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>I would be grateful for any help.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>With kind regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Matthias Suthe</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>