mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* First time on this list
@ 2011-04-12  3:18 Marko Milutinovic
  2011-04-12  4:25 ` Baruch Siach
  0 siblings, 1 reply; 7+ messages in thread
From: Marko Milutinovic @ 2011-04-12  3:18 UTC (permalink / raw)
  To: barebox


[-- Attachment #1.1: Type: text/plain, Size: 523 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 655 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: First time on this list
  2011-04-12  3:18 First time on this list Marko Milutinovic
@ 2011-04-12  4:25 ` Baruch Siach
  2011-04-12 18:42   ` Marko Milutinovic
  0 siblings, 1 reply; 7+ messages in thread
From: Baruch Siach @ 2011-04-12  4:25 UTC (permalink / raw)
  To: Marko Milutinovic; +Cc: barebox

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: First time on this list
  2011-04-12  4:25 ` Baruch Siach
@ 2011-04-12 18:42   ` Marko Milutinovic
  2011-04-13  3:01     ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 7+ messages in thread
From: Marko Milutinovic @ 2011-04-12 18:42 UTC (permalink / raw)
  To: Baruch Siach; +Cc: barebox


[-- Attachment #1.1: Type: text/plain, Size: 1496 bytes --]

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 <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 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 -
>

[-- Attachment #1.2: Type: text/html, Size: 2283 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: First time on this list
  2011-04-12 18:42   ` Marko Milutinovic
@ 2011-04-13  3:01     ` Jean-Christophe PLAGNIOL-VILLARD
  2011-04-13  3:42       ` Marko Milutinovic
  0 siblings, 1 reply; 7+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-04-13  3:01 UTC (permalink / raw)
  To: Marko Milutinovic; +Cc: barebox

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 <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 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: First time on this list
  2011-04-13  3:01     ` Jean-Christophe PLAGNIOL-VILLARD
@ 2011-04-13  3:42       ` Marko Milutinovic
  2011-04-13  4:09         ` Baruch Siach
  0 siblings, 1 reply; 7+ messages in thread
From: Marko Milutinovic @ 2011-04-13  3:42 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox


[-- Attachment #1.1: Type: text/plain, Size: 3102 bytes --]

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 <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
> 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
>
>

[-- Attachment #1.2: Type: text/html, Size: 5031 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: First time on this list
  2011-04-13  3:42       ` Marko Milutinovic
@ 2011-04-13  4:09         ` Baruch Siach
  2011-04-13  4:59           ` Marko Milutinovic
  0 siblings, 1 reply; 7+ messages in thread
From: Baruch Siach @ 2011-04-13  4:09 UTC (permalink / raw)
  To: Marko Milutinovic; +Cc: barebox

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 <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
> > 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: First time on this list
  2011-04-13  4:09         ` Baruch Siach
@ 2011-04-13  4:59           ` Marko Milutinovic
  0 siblings, 0 replies; 7+ messages in thread
From: Marko Milutinovic @ 2011-04-13  4:59 UTC (permalink / raw)
  To: Baruch Siach; +Cc: barebox


[-- Attachment #1.1: Type: text/plain, Size: 3091 bytes --]

That works great!

Thanks for all the help.
Marko

On Tue, Apr 12, 2011 at 10:09 PM, Baruch 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
> 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 <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
> > > 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 -
>

[-- Attachment #1.2: Type: text/html, Size: 4600 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-04-13  5:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-12  3:18 First time on this list Marko Milutinovic
2011-04-12  4:25 ` Baruch Siach
2011-04-12 18:42   ` Marko Milutinovic
2011-04-13  3:01     ` Jean-Christophe PLAGNIOL-VILLARD
2011-04-13  3:42       ` Marko Milutinovic
2011-04-13  4:09         ` Baruch Siach
2011-04-13  4:59           ` Marko Milutinovic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox