That works great!<div><br></div><div>Thanks for all the help.</div><div>Marko<br><br><div class="gmail_quote">On Tue, Apr 12, 2011 at 10:09 PM, Baruch Siach <span dir="ltr"><<a href="mailto:baruch@tkos.co.il">baruch@tkos.co.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Marko,<br>
<div class="im"><br>
On Tue, Apr 12, 2011 at 09:42:47PM -0600, Marko Milutinovic wrote:<br>
> One last question though, does this section have to be populated manually?<br>
> Do i have to explicitly load a env.bin file to my device and then copy it to<br>
> the env0 partition? Is there a way to have this loaded onto my main<br>
> bootloader .bin file when it gets compiled?<br>
<br>
</div>If you set CONFIG_DEFAULT_ENVIRONMENT and CONFIG_DEFAULT_ENVIRONMENT_PATH in<br>
your .config, then you have a default environment compiled into your Barebox<br>
image. Then, to save this default environment into your flash just run<br>
'saveenv'.<br>
<font color="#888888"><br>
baruch<br>
</font><div><div></div><div class="h5"><br>
> On Tue, Apr 12, 2011 at 9:01 PM, Jean-Christophe PLAGNIOL-VILLARD <<br>
> <a href="mailto:plagnioj@jcrosoft.com">plagnioj@jcrosoft.com</a>> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > could you send your board patch and the log of your console<br>
> > so we can help you more<br>
> ><br>
> > btw please do not post in HTML<br>
> ><br>
> > Best Regards,<br>
> > J.<br>
> > On 12:42 Tue 12 Apr , Marko Milutinovic wrote:<br>
> > > Hello,<br>
> > > 1. I don't think that I took any steps to save the environment. Not<br>
> > sure<br>
> > > how to go about doing that. I have the 'env\bin\init' file under my<br>
> > board<br>
> > > directory. I was under the impressions this would get built in<br>
> > > automatically. Additionally in my init.c file for my board I have the<br>
> > > following lines:<br>
> > > devfs_add_partition("nor0", 0x01000000, 0x10000, PARTITION_FIXED,<br>
> > > "self_raw");<br>
> > > devfs_add_partition("nor0", 0x01010000, 0x1000, PARTITION_FIXED,<br>
> > "env0");<br>
> > > 2. When my board boots i get the following output lines<br>
> > > Malloc space: .(rest of text ...)<br>
> > > Stack space: (rest of text ...)<br>
> > > Open /dev/env0 error2<br>
> > > running /env/bin/init...<br>
> > > not found<br>
> > > barebox:<br>
> > > Thanks<br>
> > > Marko<br>
> > ><br>
> > > On Mon, Apr 11, 2011 at 10:25 PM, Baruch Siach <<a href="mailto:baruch@tkos.co.il">baruch@tkos.co.il</a>><br>
> > wrote:<br>
> > ><br>
> > > Hi Marko,<br>
> > > On Mon, Apr 11, 2011 at 09:18:53PM -0600, Marko Milutinovic wrote:<br>
> > > > I have barebox working almost fully on my board, except I can't<br>
> > get<br>
> > > the<br>
> > > > environment to load ... I have an env0 partition allocated and<br>
> > under<br>
> > > my<br>
> > > > board I have the /env/bin/init file. Anyone have any tips as to<br>
> > what I<br>
> > > am<br>
> > > > missing or can they point me to another resource?<br>
> > ><br>
> > > More info is needed:<br>
> > ><br>
> > > 1. What did you do to save the environment?<br>
> > ><br>
> > > 2. What is your indication that the environment doesn't "load"?<br>
> > ><br>
> > > baruch<br>
> > > --<br>
<br>
--<br>
~. .~ Tk Open Systems<br>
=}------------------------------------------------ooO--U--Ooo------------{=<br>
- <a href="mailto:baruch@tkos.co.il">baruch@tkos.co.il</a> - tel: <a href="tel:%2B972.2.679.5364" value="+97226795364">+972.2.679.5364</a>, <a href="http://www.tkos.co.il" target="_blank">http://www.tkos.co.il</a> -<br>
</div></div></blockquote></div><br></div>