From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ey0-f177.google.com ([209.85.215.177]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q9U80-0004WE-Cj for barebox@lists.infradead.org; Tue, 12 Apr 2011 03:18:57 +0000 Received: by eyh6 with SMTP id 6so2062448eyh.36 for ; Mon, 11 Apr 2011 20:18:54 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 11 Apr 2011 21:18:53 -0600 Message-ID: From: Marko Milutinovic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0989065784==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: First time on this list To: barebox@lists.infradead.org --===============0989065784== Content-Type: multipart/alternative; boundary=e0cb4e700145dd853304a0b02660 --e0cb4e700145dd853304a0b02660 Content-Type: text/plain; charset=ISO-8859-1 Hello, This if my first time on this mailing list, I'm coming straight from the barebox.org page. I didn't seen any guidelines or any other way of sending out a question please let me know if there are guidelines I need to read first. I have barebox working almost fully on my board, except I can't get the environment to load ... I have an env0 partition allocated and under my board I have the /env/bin/init file. Anyone have any tips as to what I am missing or can they point me to another resource? Thank you, Marko --e0cb4e700145dd853304a0b02660 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

This if my first time on this mailing list, I'= ;m coming straight from the barebox.org = page. I didn't seen any guidelines or any other way of sending out a qu= estion please let me know if there are guidelines I need to read first.

I have barebox working almost fully on my board, except= I can't get the environment to load ... I have an env0 partition alloc= ated and under my board I have the /env/bin/init file. Anyone have any tips= as to what I am missing or can they point me to another resource?

Thank you,
Marko
--e0cb4e700145dd853304a0b02660-- --===============0989065784== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============0989065784==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from tango.tkos.co.il ([62.219.50.35]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q9VAl-0004fm-5H for barebox@lists.infradead.org; Tue, 12 Apr 2011 04:25:52 +0000 Date: Tue, 12 Apr 2011 07:25:38 +0300 From: Baruch Siach Message-ID: <20110412042538.GA20619@jasper.tkos.co.il> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: First time on this list To: Marko Milutinovic Cc: barebox@lists.infradead.org Hi Marko, On Mon, Apr 11, 2011 at 09:18:53PM -0600, Marko Milutinovic wrote: > I have barebox working almost fully on my board, except I can't get the > environment to load ... I have an env0 partition allocated and under my > board I have the /env/bin/init file. Anyone have any tips as to what I am > missing or can they point me to another resource? More info is needed: 1. What did you do to save the environment? 2. What is your indication that the environment doesn't "load"? baruch -- ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ew0-f49.google.com ([209.85.215.49]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q9iYH-000371-1S for barebox@lists.infradead.org; Tue, 12 Apr 2011 18:43:02 +0000 Received: by ewy3 with SMTP id 3so2304574ewy.36 for ; Tue, 12 Apr 2011 11:42:59 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20110412042538.GA20619@jasper.tkos.co.il> References: <20110412042538.GA20619@jasper.tkos.co.il> Date: Tue, 12 Apr 2011 12:42:58 -0600 Message-ID: From: Marko Milutinovic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1024872149==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: First time on this list To: Baruch Siach Cc: barebox@lists.infradead.org --===============1024872149== Content-Type: multipart/alternative; boundary=0016e6d58963ac0ac404a0bd0f59 --0016e6d58963ac0ac404a0bd0f59 Content-Type: text/plain; charset=ISO-8859-1 Hello, 1. I don't think that I took any steps to save the environment. Not sure how to go about doing that. I have the 'env\bin\init' file under my board directory. I was under the impressions this would get built in automatically. Additionally in my init.c file for my board I have the following lines: devfs_add_partition("nor0", 0x01000000, 0x10000, PARTITION_FIXED, "self_raw"); devfs_add_partition("nor0", 0x01010000, 0x1000, PARTITION_FIXED, "env0"); 2. When my board boots i get the following output lines Malloc space: .(rest of text ...) Stack space: (rest of text ...) Open /dev/env0 error2 running /env/bin/init... not found barebox: Thanks Marko On Mon, Apr 11, 2011 at 10:25 PM, Baruch Siach wrote: > Hi Marko, > > On Mon, Apr 11, 2011 at 09:18:53PM -0600, Marko Milutinovic wrote: > > I have barebox working almost fully on my board, except I can't get the > > environment to load ... I have an env0 partition allocated and under my > > board I have the /env/bin/init file. Anyone have any tips as to what I am > > missing or can they point me to another resource? > > More info is needed: > > 1. What did you do to save the environment? > > 2. What is your indication that the environment doesn't "load"? > > baruch > > -- > ~. .~ Tk Open Systems > =}------------------------------------------------ooO--U--Ooo------------{= > - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - > --0016e6d58963ac0ac404a0bd0f59 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

1. I don't think that I took any steps to sav= e the environment. Not sure how to go about doing that. I have the 'env= \bin\init' file under my board directory. I was under the impressions t= his would get built in automatically. Additionally in my init.c file for my= board I have the following lines:

devfs_add_partition("nor0", 0x01000000, 0x100= 00, PARTITION_FIXED, "self_raw");
devfs_add_partition(&= quot;nor0", 0x01010000, 0x1000, PARTITION_FIXED, "env0");

2. When my board boots i get the following output lines=

Malloc space: .(rest of text ...)
Stack= space: (rest of text ...)
Open /dev/env0 error2=A0
run= ning /env/bin/init...
not found
barebox:

Thanks
Marko


On Mon, Apr 11, 2011 at= 10:25 PM, Baruch Siach <baruch@tkos.co.il> wrote:
Hi Marko,

On Mon, Apr 11, 2011 at 09:18:53PM -0600, Marko Milutinovic wrote:
> I have barebox working almost fully on my board, except I can't ge= t the
> environment to load ... I have an env0 partition allocated and under m= y
> board I have the /env/bin/init file. Anyone have any tips as to what I= am
> missing or can they point me to another resource?

More info is needed:

1. What did you do to save the environment?

2. What is your indication that the environment doesn't "load"= ;?

baruch

--
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ~. .~ =A0 Tk Open Systems
=3D}------------------------------------------------ooO--U--Ooo------------= {=3D
=A0 - baruch@tkos.co.il - tel: +972.2.679.5364,= http://www.tkos.co.il<= /a> -

--0016e6d58963ac0ac404a0bd0f59-- --===============1024872149== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============1024872149==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 30.mail-out.ovh.net ([213.186.62.213]) by canuck.infradead.org with smtp (Exim 4.72 #1 (Red Hat Linux)) id 1Q9qT4-00075s-G3 for barebox@lists.infradead.org; Wed, 13 Apr 2011 03:10:11 +0000 Date: Wed, 13 Apr 2011 05:01:49 +0200 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20110413030149.GE4709@game.jcrosoft.org> References: <20110412042538.GA20619@jasper.tkos.co.il> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: First time on this list To: Marko Milutinovic Cc: barebox@lists.infradead.org Hi, could you send your board patch and the log of your console so we can help you more btw please do not post in HTML Best Regards, J. On 12:42 Tue 12 Apr , Marko Milutinovic wrote: > Hello, > 1. I don't think that I took any steps to save the environment. Not sure > how to go about doing that. I have the 'env\bin\init' file under my board > directory. I was under the impressions this would get built in > automatically. Additionally in my init.c file for my board I have the > following lines: > devfs_add_partition("nor0", 0x01000000, 0x10000, PARTITION_FIXED, > "self_raw"); > devfs_add_partition("nor0", 0x01010000, 0x1000, PARTITION_FIXED, "env0"); > 2. When my board boots i get the following output lines > Malloc space: .(rest of text ...) > Stack space: (rest of text ...) > Open /dev/env0 error2 > running /env/bin/init... > not found > barebox: > Thanks > Marko > > On Mon, Apr 11, 2011 at 10:25 PM, Baruch Siach wrote: > > Hi Marko, > On Mon, Apr 11, 2011 at 09:18:53PM -0600, Marko Milutinovic wrote: > > I have barebox working almost fully on my board, except I can't get > the > > environment to load ... I have an env0 partition allocated and under > my > > board I have the /env/bin/init file. Anyone have any tips as to what I > am > > missing or can they point me to another resource? > > More info is needed: > > 1. What did you do to save the environment? > > 2. What is your indication that the environment doesn't "load"? > > baruch > -- > ~. .~ Tk Open > Systems > =}------------------------------------------------ooO--U--Ooo------------{= > - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ew0-f49.google.com ([209.85.215.49]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q9qyh-0007CA-Ft for barebox@lists.infradead.org; Wed, 13 Apr 2011 03:42:52 +0000 Received: by ewy3 with SMTP id 3so64403ewy.36 for ; Tue, 12 Apr 2011 20:42:49 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20110413030149.GE4709@game.jcrosoft.org> References: <20110412042538.GA20619@jasper.tkos.co.il> <20110413030149.GE4709@game.jcrosoft.org> Date: Tue, 12 Apr 2011 21:42:47 -0600 Message-ID: From: Marko Milutinovic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0921904633==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: First time on this list To: Jean-Christophe PLAGNIOL-VILLARD Cc: barebox@lists.infradead.org --===============0921904633== Content-Type: multipart/alternative; boundary=20cf302d4cfe350c7a04a0c49a24 --20cf302d4cfe350c7a04a0c49a24 Content-Type: text/plain; charset=UTF-8 Hello, I set my outgoing my in gmail to be UTF-8, is the message plain text now? I can't tell the difference on my side. Ok so i figured out that one of my problems was that I was using the "devfs_add_partition" call wrong. The second parameter is an offset not the base address ... oops. Now I can see env0 under devices. It's still not able to load it but the error I'm getting is "envfs: wrong magic on /dev/env0". I think this is just a matter of this section being empty. Thanks for the help guys, I can probably figure it out from here. One last question though, does this section have to be populated manually? Do i have to explicitly load a env.bin file to my device and then copy it to the env0 partition? Is there a way to have this loaded onto my main bootloader .bin file when it gets compiled? Thanks, Marko On Tue, Apr 12, 2011 at 9:01 PM, Jean-Christophe PLAGNIOL-VILLARD < plagnioj@jcrosoft.com> wrote: > Hi, > > could you send your board patch and the log of your console > so we can help you more > > btw please do not post in HTML > > Best Regards, > J. > On 12:42 Tue 12 Apr , Marko Milutinovic wrote: > > Hello, > > 1. I don't think that I took any steps to save the environment. Not > sure > > how to go about doing that. I have the 'env\bin\init' file under my > board > > directory. I was under the impressions this would get built in > > automatically. Additionally in my init.c file for my board I have the > > following lines: > > devfs_add_partition("nor0", 0x01000000, 0x10000, PARTITION_FIXED, > > "self_raw"); > > devfs_add_partition("nor0", 0x01010000, 0x1000, PARTITION_FIXED, > "env0"); > > 2. When my board boots i get the following output lines > > Malloc space: .(rest of text ...) > > Stack space: (rest of text ...) > > Open /dev/env0 error2 > > running /env/bin/init... > > not found > > barebox: > > Thanks > > Marko > > > > On Mon, Apr 11, 2011 at 10:25 PM, Baruch Siach > wrote: > > > > Hi Marko, > > On Mon, Apr 11, 2011 at 09:18:53PM -0600, Marko Milutinovic wrote: > > > I have barebox working almost fully on my board, except I can't > get > > the > > > environment to load ... I have an env0 partition allocated and > under > > my > > > board I have the /env/bin/init file. Anyone have any tips as to > what I > > am > > > missing or can they point me to another resource? > > > > More info is needed: > > > > 1. What did you do to save the environment? > > > > 2. What is your indication that the environment doesn't "load"? > > > > baruch > > -- > > ~. .~ Tk Open > > Systems > > > =}------------------------------------------------ooO--U--Ooo------------{= > > - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il- > > > _______________________________________________ > > barebox mailing list > > barebox@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/barebox > > --20cf302d4cfe350c7a04a0c49a24 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello,

I set my outgoing my in gmail to be=C2=A0UTF-8, is the message plain text now? =C2=A0I can't tell the differ= ence on my side.=C2=A0

Ok so i figured out that one of my problems= was that I was using the "devfs_add_partition" cal= l wrong. The second parameter is an offset not the base address ... oops. N= ow I can see env0 under devices.

It's still not able to load it but the error I'= m getting is "envfs: wrong magic on /dev/env0". I think this is j= ust a matter of this section being empty. Thanks for the help guys, I can p= robably figure it out from here.

One last question though, does this section have to be = populated manually? Do i have to explicitly load a env.bin file to my devic= e and then copy it to the env0 partition? Is there a way to have this loade= d onto my main bootloader .bin file when it gets compiled?

Thanks,
Marko

On Tue, Apr 12, 2011 at 9:01 PM, Jean-Christophe PLAGNIOL-VILLARD= <plagnioj@jc= rosoft.com> wrote:
Hi,

=C2=A0 =C2=A0 =C2=A0 =C2=A0could you send your board patch and the log of = your console
=C2=A0 =C2=A0 =C2=A0 =C2=A0so we can help you more

=C2=A0 =C2=A0 =C2=A0 =C2=A0btw please do not post in HTML

Best Regards,
J.
On 12:42 Tue 12 Apr =C2=A0 =C2=A0 , Marko= Milutinovic wrote:
> =C2=A0 =C2=A0Hello,
> =C2=A0 =C2=A01. I don't think that I took any steps to save the en= vironment. Not sure
> =C2=A0 =C2=A0how to go about doing that. I have the 'env\bin\init&= #39; file under my board
> =C2=A0 =C2=A0directory. I was under the impressions this would get bui= lt in
> =C2=A0 =C2=A0automatically. Additionally in my init.c file for my boar= d I have the
> =C2=A0 =C2=A0following lines:
> =C2=A0 =C2=A0devfs_add_partition("nor0", 0x01000000, 0x10000= , PARTITION_FIXED,
> =C2=A0 =C2=A0"self_raw");
> =C2=A0 =C2=A0devfs_add_partition("nor0", 0x01010000, 0x1000,= PARTITION_FIXED, "env0");
> =C2=A0 =C2=A02. When my board boots i get the following output lines > =C2=A0 =C2=A0Malloc space: .(rest of text ...)
> =C2=A0 =C2=A0Stack space: (rest of text ...)
> =C2=A0 =C2=A0Open /dev/env0 error2
> =C2=A0 =C2=A0running /env/bin/init...
> =C2=A0 =C2=A0not found
> =C2=A0 =C2=A0barebox:
> =C2=A0 =C2=A0Thanks
> =C2=A0 =C2=A0Marko
>
> =C2=A0 =C2=A0On Mon, Apr 11, 2011 at 10:25 PM, Baruch Siach <baruch@tkos.co.il> wrote:
>
> =C2=A0 =C2=A0 =C2=A0Hi Marko,
> =C2=A0 =C2=A0 =C2=A0On Mon, Apr 11, 2011 at 09:18:53PM -0600, Marko Mi= lutinovic wrote:
> =C2=A0 =C2=A0 =C2=A0> I have barebox working almost fully on my boa= rd, except I can't get
> =C2=A0 =C2=A0 =C2=A0the
> =C2=A0 =C2=A0 =C2=A0> environment to load ... I have an env0 partit= ion allocated and under
> =C2=A0 =C2=A0 =C2=A0my
> =C2=A0 =C2=A0 =C2=A0> board I have the /env/bin/init file. Anyone h= ave any tips as to what I
> =C2=A0 =C2=A0 =C2=A0am
> =C2=A0 =C2=A0 =C2=A0> missing or can they point me to another resou= rce?
>
> =C2=A0 =C2=A0 =C2=A0More info is needed:
>
> =C2=A0 =C2=A0 =C2=A01. What did you do to save the environment?
>
> =C2=A0 =C2=A0 =C2=A02. What is your indication that the environment do= esn't "load"?
>
> =C2=A0 =C2=A0 =C2=A0baruch
> =C2=A0 =C2=A0 =C2=A0--
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0~. .~ =C2=A0 Tk = Open
> =C2=A0 =C2=A0 =C2=A0Systems
> =C2=A0 =C2=A0 =C2=A0=3D}----------------------------------------------= --ooO--U--Ooo------------{=3D
> =C2=A0 =C2=A0 =C2=A0 =C2=A0- baru= ch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

> _______________________________________________
> barebox mailing list
> barebox@lists.infradead= .org
> http://lists.infradead.org/mailman/listinfo/barebox


--20cf302d4cfe350c7a04a0c49a24-- --===============0921904633== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============0921904633==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from tango.tkos.co.il ([62.219.50.35]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q9rOS-0007Kc-ML for barebox@lists.infradead.org; Wed, 13 Apr 2011 04:09:29 +0000 Date: Wed, 13 Apr 2011 07:09:12 +0300 From: Baruch Siach Message-ID: <20110413040912.GA14112@jasper.tkos.co.il> References: <20110412042538.GA20619@jasper.tkos.co.il> <20110413030149.GE4709@game.jcrosoft.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: First time on this list To: Marko Milutinovic Cc: barebox@lists.infradead.org Hi Marko, On Tue, Apr 12, 2011 at 09:42:47PM -0600, Marko Milutinovic wrote: > One last question though, does this section have to be populated manually? > Do i have to explicitly load a env.bin file to my device and then copy it to > the env0 partition? Is there a way to have this loaded onto my main > bootloader .bin file when it gets compiled? If you set CONFIG_DEFAULT_ENVIRONMENT and CONFIG_DEFAULT_ENVIRONMENT_PATH in your .config, then you have a default environment compiled into your Barebox image. Then, to save this default environment into your flash just run 'saveenv'. baruch > On Tue, Apr 12, 2011 at 9:01 PM, Jean-Christophe PLAGNIOL-VILLARD < > plagnioj@jcrosoft.com> wrote: > > > Hi, > > > > could you send your board patch and the log of your console > > so we can help you more > > > > btw please do not post in HTML > > > > Best Regards, > > J. > > On 12:42 Tue 12 Apr , Marko Milutinovic wrote: > > > Hello, > > > 1. I don't think that I took any steps to save the environment. Not > > sure > > > how to go about doing that. I have the 'env\bin\init' file under my > > board > > > directory. I was under the impressions this would get built in > > > automatically. Additionally in my init.c file for my board I have the > > > following lines: > > > devfs_add_partition("nor0", 0x01000000, 0x10000, PARTITION_FIXED, > > > "self_raw"); > > > devfs_add_partition("nor0", 0x01010000, 0x1000, PARTITION_FIXED, > > "env0"); > > > 2. When my board boots i get the following output lines > > > Malloc space: .(rest of text ...) > > > Stack space: (rest of text ...) > > > Open /dev/env0 error2 > > > running /env/bin/init... > > > not found > > > barebox: > > > Thanks > > > Marko > > > > > > On Mon, Apr 11, 2011 at 10:25 PM, Baruch Siach > > wrote: > > > > > > Hi Marko, > > > On Mon, Apr 11, 2011 at 09:18:53PM -0600, Marko Milutinovic wrote: > > > > I have barebox working almost fully on my board, except I can't > > get > > > the > > > > environment to load ... I have an env0 partition allocated and > > under > > > my > > > > board I have the /env/bin/init file. Anyone have any tips as to > > what I > > > am > > > > missing or can they point me to another resource? > > > > > > More info is needed: > > > > > > 1. What did you do to save the environment? > > > > > > 2. What is your indication that the environment doesn't "load"? > > > > > > baruch > > > -- -- ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ew0-f49.google.com ([209.85.215.49]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Q9sBM-0007RJ-S4 for barebox@lists.infradead.org; Wed, 13 Apr 2011 05:00:02 +0000 Received: by ewy3 with SMTP id 3so75026ewy.36 for ; Tue, 12 Apr 2011 21:59:59 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20110413040912.GA14112@jasper.tkos.co.il> References: <20110412042538.GA20619@jasper.tkos.co.il> <20110413030149.GE4709@game.jcrosoft.org> <20110413040912.GA14112@jasper.tkos.co.il> Date: Tue, 12 Apr 2011 22:59:57 -0600 Message-ID: From: Marko Milutinovic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1663938766==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: First time on this list To: Baruch Siach Cc: barebox@lists.infradead.org --===============1663938766== Content-Type: multipart/alternative; boundary=0016e6d589632753c204a0c5ae0c --0016e6d589632753c204a0c5ae0c Content-Type: text/plain; charset=UTF-8 That works great! Thanks for all the help. Marko On Tue, Apr 12, 2011 at 10:09 PM, Baruch Siach wrote: > Hi Marko, > > On Tue, Apr 12, 2011 at 09:42:47PM -0600, Marko Milutinovic wrote: > > One last question though, does this section have to be populated > manually? > > Do i have to explicitly load a env.bin file to my device and then copy it > to > > the env0 partition? Is there a way to have this loaded onto my main > > bootloader .bin file when it gets compiled? > > If you set CONFIG_DEFAULT_ENVIRONMENT and CONFIG_DEFAULT_ENVIRONMENT_PATH > in > your .config, then you have a default environment compiled into your > Barebox > image. Then, to save this default environment into your flash just run > 'saveenv'. > > baruch > > > On Tue, Apr 12, 2011 at 9:01 PM, Jean-Christophe PLAGNIOL-VILLARD < > > plagnioj@jcrosoft.com> wrote: > > > > > Hi, > > > > > > could you send your board patch and the log of your console > > > so we can help you more > > > > > > btw please do not post in HTML > > > > > > Best Regards, > > > J. > > > On 12:42 Tue 12 Apr , Marko Milutinovic wrote: > > > > Hello, > > > > 1. I don't think that I took any steps to save the environment. > Not > > > sure > > > > how to go about doing that. I have the 'env\bin\init' file under > my > > > board > > > > directory. I was under the impressions this would get built in > > > > automatically. Additionally in my init.c file for my board I have > the > > > > following lines: > > > > devfs_add_partition("nor0", 0x01000000, 0x10000, PARTITION_FIXED, > > > > "self_raw"); > > > > devfs_add_partition("nor0", 0x01010000, 0x1000, PARTITION_FIXED, > > > "env0"); > > > > 2. When my board boots i get the following output lines > > > > Malloc space: .(rest of text ...) > > > > Stack space: (rest of text ...) > > > > Open /dev/env0 error2 > > > > running /env/bin/init... > > > > not found > > > > barebox: > > > > Thanks > > > > Marko > > > > > > > > On Mon, Apr 11, 2011 at 10:25 PM, Baruch Siach > > > > wrote: > > > > > > > > Hi Marko, > > > > On Mon, Apr 11, 2011 at 09:18:53PM -0600, Marko Milutinovic > wrote: > > > > > I have barebox working almost fully on my board, except I > can't > > > get > > > > the > > > > > environment to load ... I have an env0 partition allocated and > > > under > > > > my > > > > > board I have the /env/bin/init file. Anyone have any tips as > to > > > what I > > > > am > > > > > missing or can they point me to another resource? > > > > > > > > More info is needed: > > > > > > > > 1. What did you do to save the environment? > > > > > > > > 2. What is your indication that the environment doesn't "load"? > > > > > > > > baruch > > > > -- > > -- > ~. .~ Tk Open Systems > =}------------------------------------------------ooO--U--Ooo------------{= > - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - > --0016e6d589632753c204a0c5ae0c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable That works great!

Thanks for all the help.
Mar= ko

On Tue, Apr 12, 2011 at 10:09 PM, Baru= ch Siach <baruch@= tkos.co.il> wrote:
Hi Marko,

On Tue, Apr 12, 2011 at 09:42:47PM -0600, Marko Milutinovic wrote:
> One last question though, does this section have to be populated manua= lly?
> Do i have to explicitly load a env.bin file to my device and then copy= it to
> the env0 partition? Is there a way to have this loaded onto my main > bootloader .bin file when it gets compiled?

If you set CONFIG_DEFAULT_ENVIRONMENT and CONFIG_DEFAULT_ENVIRONMENT_= PATH in
your .config, then you have a default environment compiled into your Barebo= x
image. Then, to save this default environment into your flash just run
'saveenv'.

baruch

> On Tue, Apr 12, 2011 at 9:01 PM, Jean-Christophe PLAGNIOL-VILLARD <=
> plagnioj@jcrosoft.com>= wrote:
>
> > Hi,
> >
> > =C2=A0 =C2=A0 =C2=A0 =C2=A0could you send your board patch and th= e log of your console
> > =C2=A0 =C2=A0 =C2=A0 =C2=A0so we can help you more
> >
> > =C2=A0 =C2=A0 =C2=A0 =C2=A0btw please do not post in HTML
> >
> > Best Regards,
> > J.
> > On 12:42 Tue 12 Apr =C2=A0 =C2=A0 , Marko Milutinovic wrote:
> > > =C2=A0 =C2=A0Hello,
> > > =C2=A0 =C2=A01. I don't think that I took any steps to s= ave the environment. Not
> > sure
> > > =C2=A0 =C2=A0how to go about doing that. I have the 'env= \bin\init' file under my
> > board
> > > =C2=A0 =C2=A0directory. I was under the impressions this wou= ld get built in
> > > =C2=A0 =C2=A0automatically. Additionally in my init.c file f= or my board I have the
> > > =C2=A0 =C2=A0following lines:
> > > =C2=A0 =C2=A0devfs_add_partition("nor0", 0x0100000= 0, 0x10000, PARTITION_FIXED,
> > > =C2=A0 =C2=A0"self_raw");
> > > =C2=A0 =C2=A0devfs_add_partition("nor0", 0x0101000= 0, 0x1000, PARTITION_FIXED,
> > "env0");
> > > =C2=A0 =C2=A02. When my board boots i get the following outp= ut lines
> > > =C2=A0 =C2=A0Malloc space: .(rest of text ...)
> > > =C2=A0 =C2=A0Stack space: (rest of text ...)
> > > =C2=A0 =C2=A0Open /dev/env0 error2
> > > =C2=A0 =C2=A0running /env/bin/init...
> > > =C2=A0 =C2=A0not found
> > > =C2=A0 =C2=A0barebox:
> > > =C2=A0 =C2=A0Thanks
> > > =C2=A0 =C2=A0Marko
> > >
> > > =C2=A0 =C2=A0On Mon, Apr 11, 2011 at 10:25 PM, Baruch Siach = <baruch@tkos.co.il>
> > wrote:
> > >
> > > =C2=A0 =C2=A0 =C2=A0Hi Marko,
> > > =C2=A0 =C2=A0 =C2=A0On Mon, Apr 11, 2011 at 09:18:53PM -0600= , Marko Milutinovic wrote:
> > > =C2=A0 =C2=A0 =C2=A0> I have barebox working almost fully= on my board, except I can't
> > get
> > > =C2=A0 =C2=A0 =C2=A0the
> > > =C2=A0 =C2=A0 =C2=A0> environment to load ... I have an e= nv0 partition allocated and
> > under
> > > =C2=A0 =C2=A0 =C2=A0my
> > > =C2=A0 =C2=A0 =C2=A0> board I have the /env/bin/init file= . Anyone have any tips as to
> > what I
> > > =C2=A0 =C2=A0 =C2=A0am
> > > =C2=A0 =C2=A0 =C2=A0> missing or can they point me to ano= ther resource?
> > >
> > > =C2=A0 =C2=A0 =C2=A0More info is needed:
> > >
> > > =C2=A0 =C2=A0 =C2=A01. What did you do to save the environme= nt?
> > >
> > > =C2=A0 =C2=A0 =C2=A02. What is your indication that the envi= ronment doesn't "load"?
> > >
> > > =C2=A0 =C2=A0 =C2=A0baruch
> > > =C2=A0 =C2=A0 =C2=A0--

--
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ~. .~ =C2=A0 Tk Open Systems
=3D}------------------------------------------------ooO--U--Ooo------------= {=3D
=C2=A0 - baruch@tkos.co.il - tel:= +972.2.679.5364, http://www.tkos.co.= il -

--0016e6d589632753c204a0c5ae0c-- --===============1663938766== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============1663938766==--