[beagleboard] How can I delete all u-boot-env variables?

3,823 views
Skip to first unread message

Omar

unread,
Apr 25, 2010, 3:02:47 AM4/25/10
to Beagle Board
What steps will reproduce the problem?
1. I tried "nand erase"


What is the expected output? What do you see instead?

Nothing happen it erases the whole flash .. but the u-boot variables
still
the same with no change

--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagl...@googlegroups.com.
To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.

Michael Zucchi

unread,
Apr 25, 2010, 10:28:04 PM4/25/10
to beagl...@googlegroups.com
did you power cycle/reset?

Omar

unread,
Apr 26, 2010, 12:54:51 AM4/26/10
to Beagle Board
I did, nothing happened

On Apr 25, 7:28 pm, Michael Zucchi <not...@gmail.com> wrote:
> did you power cycle/reset?
>
> On 25 April 2010 16:32, Omar <ohha...@gmail.com> wrote:
>
>
>
> > What steps will reproduce the problem?
> > 1. I tried "nand erase"
>
> > What is the expected output? What do you see instead?
>
> > Nothing happen it erases the whole flash .. but the u-boot variables
> > still
> > the same with no change
>
> > --
> > You received this message because you are subscribed to the Google Groups "Beagle Board" group.
> > To post to this group, send email to beagl...@googlegroups.com.
> > To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/beagleboard?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "Beagle Board" group.
> To post to this group, send email to beagl...@googlegroups.com.
> To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/beagleboard?hl=en.

Michael Zucchi

unread,
Apr 26, 2010, 3:41:38 AM4/26/10
to beagl...@googlegroups.com
i just erased the nand config section a few days ago. the
instructions i found by searching this list and/or the internet worked
fine (although my version of u-boot didn't require the nand unlock
stuff).

Michael Evans

unread,
Apr 26, 2010, 5:57:24 AM4/26/10
to beagl...@googlegroups.com
If you did a "nand erase" and it erased the whole NAND chip (which its supposed to do) then you will have deleted where U-Boot saves it environment variables.  When the board boots you should see a message about NAND checksum being invalid and a default environment being used.  U-Boot sets its variables based on hard coded defaults...
 
If you don't like those defaults then you can change the env variables and then save them back to NAND.  Alternatively (since I noticed your other post about U-Boot splash logos) you can change the U-Boot source code and change the defaults...
 
> Date: Mon, 26 Apr 2010 17:11:38 +0930
> Subject: Re: [beagleboard] Re: How can I delete all u-boot-env variables?
> From: not...@gmail.com
> To: beagl...@googlegroups.com

Get a free e-mail account with Hotmail. Sign-up now.

Radha Krishna Srimanthula

unread,
Apr 26, 2010, 6:18:16 AM4/26/10
to beagl...@googlegroups.com
Please correct me if I am wrong, but this is what I've observed:

If you are looking to delete a single existing u-boot env variable, from the u-boot command prompt, execute "setenv <var name>". This should remove the variable name from the list of env variables.

For e.g., setenv bootargs_nfs would remove bootargs_nfs...

--
Regards,
Radha

Harishkumar V

unread,
Apr 26, 2010, 6:53:57 AM4/26/10
to beagl...@googlegroups.com
erase the enviromental flash area using,

namd erase <start address> <size of the partition>
--
Thanks and Regards,
Harish Kumar. V

robert.berger

unread,
Apr 26, 2010, 12:56:49 PM4/26/10
to Beagle Board
Hi,

In case this does not work as well remember, that u-boot has saved the
environment variables twize.
You'll need to erase the redundant environment as well.

Good luck,

Robert

--
Robert Berger
Embedded Software Specialist

Reliable Embedded Systems
Consulting Training Engineering
Tel.: (+30) 697 593 3428
Fax.:(+30) 210 684 7881
URL: http://www.reliableembeddedsystems.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--

On Apr 26, 1:53 pm, Harishkumar V <harishpres...@gmail.com> wrote:
> erase the enviromental flash area using,
>
> namd erase <start address> <size of the partition>
>
> On Mon, Apr 26, 2010 at 3:48 PM, Radha Krishna Srimanthula <
>
>
>
> srimanthula.radhakris...@gmail.com> wrote:
> > Please correct me if I am wrong, but this is what I've observed:
>
> > If you are looking to delete a single existing u-boot env variable, from
> > the u-boot command prompt, execute "setenv <var name>". This should remove
> > the variable name from the list of env variables.
>
> > For e.g., setenv bootargs_nfs would remove bootargs_nfs...
>
> > --
> > Regards,
> > Radha
>
> > On Mon, Apr 26, 2010 at 3:27 PM, Michael Evans <horse_d...@hotmail.com>wrote:
>
> >>  If you did a "nand erase" and it erased the whole NAND chip (which its
> >> supposed to do) then you will have deleted where U-Boot saves it environment
> >> variables.  When the board boots you should see a message about NAND
> >> checksum being invalid and a default environment being used.
> >> U-Boot sets its variables based on hard coded defaults...
>
> >> If you don't like those defaults then you can change the env variables and
> >> then save them back to NAND.  Alternatively (since I noticed your other post
> >> about U-Boot splash logos) you can change the U-Boot source code and change
> >> the defaults...
>
> >> > Date: Mon, 26 Apr 2010 17:11:38 +0930
> >> > Subject: Re: [beagleboard] Re: How can I delete all u-boot-env
> >> variables?
> >> > From: not...@gmail.com
> >> > To: beagl...@googlegroups.com
>
> >> > i just erased the nand config section a few days ago. the
> >> > instructions i found by searching this list and/or the internet worked
> >> > fine (although my version of u-boot didn't require the nand unlock
> >> > stuff).
>
> >> > On 26 April 2010 14:24, Omar <ohha...@gmail.com> wrote:
> >> > > I did, nothing happened
>
> >> > > On Apr 25, 7:28 pm, Michael Zucchi <not...@gmail.com> wrote:
> >> > >> did you power cycle/reset?
>
> >> > >> On 25 April 2010 16:32, Omar <ohha...@gmail.com> wrote:
>
> >> > >> > What steps will reproduce the problem?
> >> > >> > 1. I tried "nand erase"
>
> >> > >> > What is the expected output? What do you see instead?
>
> >> > >> > Nothing happen it erases the whole flash .. but the u-boot
> >> variables
> >> > >> > still
> >> > >> > the same with no change
>
> >> > >> > --
> >> > >> > You received this message because you are subscribed to the Google
> >> Groups "Beagle Board" group.
> >> > >> > To post to this group, send email to beagl...@googlegroups.com.
> >> > >> > To unsubscribe from this group, send email to
> >> beagleboard...@googlegroups.com<beagleboard%2Bunsu...@googlegroups.com>
> >> .
> >> > >> > For more options, visit this group athttp://
> >> groups.google.com/group/beagleboard?hl=en.
>
> >> > >> --
> >> > >> You received this message because you are subscribed to the Google
> >> Groups "Beagle Board" group.
> >> > >> To post to this group, send email to beagl...@googlegroups.com.
> >> > >> To unsubscribe from this group, send email to
> >> beagleboard...@googlegroups.com<beagleboard%2Bunsu...@googlegroups.com>
> >> .
> >> > >> For more options, visit this group athttp://
> >> groups.google.com/group/beagleboard?hl=en.
>
> >> > > --
> >> > > You received this message because you are subscribed to the Google
> >> Groups "Beagle Board" group.
> >> > > To post to this group, send email to beagl...@googlegroups.com.
> >> > > To unsubscribe from this group, send email to
> >> beagleboard...@googlegroups.com<beagleboard%2Bunsu...@googlegroups.com>
> >> .
> >> > > For more options, visit this group at
> >>http://groups.google.com/group/beagleboard?hl=en.
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> Groups "Beagle Board" group.
> >> > To post to this group, send email to beagl...@googlegroups.com.
> >> > To unsubscribe from this group, send email to
> >> beagleboard...@googlegroups.com<beagleboard%2Bunsu...@googlegroups.com>
> >> .
> >> > For more options, visit this group at
> >>http://groups.google.com/group/beagleboard?hl=en.
>
> >> ------------------------------
> >> Get a free e-mail account with Hotmail. Sign-up now.<http://clk.atdmt.com/UKM/go/197222280/direct/01/>
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Beagle Board" group.
> >> To post to this group, send email to beagl...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> beagleboard...@googlegroups.com<beagleboard%2Bunsu...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/beagleboard?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Beagle Board" group.
> > To post to this group, send email to beagl...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > beagleboard...@googlegroups.com<beagleboard%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/beagleboard?hl=en.
>
> --
> Thanks and Regards,
> Harish Kumar. V
>
> --
> You received this message because you are subscribed to the Google Groups "Beagle Board" group.
> To post to this group, send email to beagl...@googlegroups.com.
> To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages