Re: [U-Boot] A command to discard saved environments?

2016-08-11 Thread Wolfgang Denk
Dear Masahiro, In message

Re: [U-Boot] A command to discard saved environments?

2016-08-11 Thread Masahiro Yamada
2016-08-04 14:40 GMT+09:00 Wolfgang Denk : > Dear James, > > In message you wrote: >> >> > In your case, you could save the "erase" by overwriting the first 4 >> > bytes (where the CRC32 checksum is stored) with 0x. > > Wrong.

Re: [U-Boot] A command to discard saved environments?

2016-08-03 Thread Wolfgang Denk
Dear James, In message you wrote: > > > In your case, you could save the "erase" by overwriting the first 4 > > bytes (where the CRC32 checksum is stored) with 0x. Wrong. I meant writing 0x - as you can always write that, setting

Re: [U-Boot] A command to discard saved environments?

2016-08-03 Thread James Chargin
Dear Wolfgang, On 08/03/2016 12:59 PM, Wolfgang Denk wrote: Dear James, In message you wrote: I know my non-volatile copy of the environment is in NOR flash so I use the command protect all off;erase +1 But, of course this is specific to NOR

Re: [U-Boot] A command to discard saved environments?

2016-08-03 Thread Wolfgang Denk
Dear James, In message you wrote: > I know my non-volatile copy of the environment is in NOR flash so I use > the command > > protect all off;erase +1 > > But, of course this is specific to NOR flash. > > I'm not aware of a way to do this in

Re: [U-Boot] A command to discard saved environments?

2016-08-03 Thread James Chargin
I know my non-volatile copy of the environment is in NOR flash so I use the command protect all off;erase +1 But, of course this is specific to NOR flash. I'm not aware of a way to do this in the general case, independent of NV environment storage media and redundancy. I'd be supportive

Re: [U-Boot] A command to discard saved environments?

2016-08-03 Thread Tom Rini
On Wed, Aug 03, 2016 at 12:49:09PM +0900, Masahiro Yamada wrote: > Hi Fabio, > > > 2016-08-03 12:34 GMT+09:00 Fabio Estevam : > > On Wed, Aug 3, 2016 at 12:31 AM, Masahiro Yamada > > wrote: > >> Hi. > >> > >> > >> I am looking for a command >

Re: [U-Boot] A command to discard saved environments?

2016-08-02 Thread Masahiro Yamada
Hi Fabio, 2016-08-03 12:34 GMT+09:00 Fabio Estevam : > On Wed, Aug 3, 2016 at 12:31 AM, Masahiro Yamada > wrote: >> Hi. >> >> >> I am looking for a command >> that discards the saved environments, > > Does this command help? > > => env default

Re: [U-Boot] A command to discard saved environments?

2016-08-02 Thread Fabio Estevam
On Wed, Aug 3, 2016 at 12:31 AM, Masahiro Yamada wrote: > Hi. > > > I am looking for a command > that discards the saved environments, Does this command help? => env default -f -a Regards, Fabio Estevam ___ U-Boot

[U-Boot] A command to discard saved environments?

2016-08-02 Thread Masahiro Yamada
Hi. I am looking for a command that discards the saved environments, and takes me back to the "*** Warning - bad CRC, using default environment" state. In my case, the environment data is saved at sector 0x400 of the MMC device on my board. So, I can just do > mmc erase 400 10 But,