Re: [U-Boot] Warning Bad crc using default environment.

2011-11-12 Thread Marek Vasut
> I am using u-boot-2011.03 on MPC8379E processor board. While booting i got > "Warning bad crc using default enviroment" message. As per your site > information, i have given "saveenv" command and reset the board. Still i > got the same message. Board is having 32MB Flash. Flash base address is

Re: [U-Boot] *** Warning - bad CRC, using default environment

2010-05-20 Thread Detlev Zundel
Hi Nick, > Yes, indeed! The warning was trying to let you know that your work flow is > wrong. Flash can be eased in sectors. The env should be in a sector(s) on > it's own. There is no need to erase that sector(s) to re-flash U-Boot. > > Erase only U-Boot before re-flashing U-Boot. This will keep

Re: [U-Boot] *** Warning - bad CRC, using default environment

2010-05-20 Thread Nick Thompson
On 20/05/10 04:43, anup behare wrote: > Hi Nick, > > > I observed that when i used saveenv the warning never occurred, but when i > used to erase the flash and burn the u-boot that warning comes again hence I > will have to use saveenv on u-boot command prompt. > > > ~Anup Yes, indeed! The war

Re: [U-Boot] *** Warning - bad CRC, using default environment

2010-05-19 Thread anup behare
Hi Nick, I observed that when i used saveenv the warning never occurred, but when i used to erase the flash and burn the u-boot that warning comes again hence I will have to use saveenv on u-boot command prompt. ~Anup On Wed, May 19, 2010 at 8:54 PM, Nick Thompson wrote: > On 18/05/10 08:11,

Re: [U-Boot] *** Warning - bad CRC, using default environment

2010-05-19 Thread Nick Thompson
On 18/05/10 08:11, anup behare wrote: > Hi, > > While using u-boot for ppc440 based board we are getting "*** Warning - bad > CRC, using default environment" message. > On denx site we came to know that message is printed because the flash > sector or ERPROM containing the environment variables ha

Re: [U-Boot] *** Warning - bad CRC, using default environment

2010-05-18 Thread anup behare
I removing the console warning and this is one of the warning. On Tue, May 18, 2010 at 2:53 PM, Stefan Roese wrote: > On Tuesday 18 May 2010 11:12:26 anup behare wrote: > > I don't want to change the behavior and I can't use > > CONFIG_ENV_IS_NOWHERE because we may change the environment variabl

Re: [U-Boot] *** Warning - bad CRC, using default environment

2010-05-18 Thread Stefan Roese
On Tuesday 18 May 2010 11:12:26 anup behare wrote: > I don't want to change the behavior and I can't use > CONFIG_ENV_IS_NOWHERE because we may change the environment variable and > save it. And this usually happens upon board bring-up and/or factory testing. So in the "normal" use-case this warn

Re: [U-Boot] *** Warning - bad CRC, using default environment

2010-05-18 Thread anup behare
Stefan, I don't want to change the behavior and I can't use CONFIG_ENV_IS_NOWHERE because we may change the environment variable and save it. Here my intention was to remove the warning runtime. ~Anup On Tue, May 18, 2010 at 1:25 PM, Stefan Roese wrote: > On Tuesday 18 May 2010 09:11:16

Re: [U-Boot] *** Warning - bad CRC, using default environment

2010-05-18 Thread Stefan Roese
On Tuesday 18 May 2010 09:11:16 anup behare wrote: > While using u-boot for ppc440 based board we are getting "*** Warning - bad > CRC, using default environment" message. > On denx site we came to know that message is printed because the flash > sector or ERPROM containing the environment variable

Re: [U-Boot] Warning Bad CRC

2009-09-22 Thread Wolfgang Denk
Dear Rahanesh, In message <4ab86541.1090...@tataelxsi.co.in> you wrote: > > >> *** Warning - bad CRC, using default environment > > > > Ah! Here you can see that the CRC is incorrect in U-Boot already, so > > why do you expect to see a different result when using fw_printenv? > > > > WHen the CRC

Re: [U-Boot] Warning Bad CRC

2009-09-22 Thread Detlev Zundel
Hi Rahanesh, [...] > sflash.c is flash driver code . I showed you the print message of > savenev to note that it is erasing 0xad03 - 0xad03. That means > environment variables are placed in the mentioned sector(0xad03 > - 0xad03). Actual address of environment variabl

Re: [U-Boot] Warning Bad CRC

2009-09-21 Thread Rahanesh
Wolfgang Denk wrote: > Dear Rahanesh, > > In message <4ab786b9.4080...@tataelxsi.co.in> you wrote: > >> U-Boot 1.1.2 (Sep 19 2009 - 10:26:28) >> >> Board: IAD CPU Speed 200 MHz >> DRAM: 32 MB >> sflash.c:266:DF_F_DataflashProbe: Entered >> sflash.c:269:DF_F_DataflashProbe: flash type is 0x1 >>

Re: [U-Boot] Warning Bad CRC

2009-09-21 Thread Wolfgang Denk
Dear Rahanesh, In message <4ab786b9.4080...@tataelxsi.co.in> you wrote: > > U-Boot 1.1.2 (Sep 19 2009 - 10:26:28) > > Board: IAD CPU Speed 200 MHz > DRAM: 32 MB > sflash.c:266:DF_F_DataflashProbe: Entered > sflash.c:269:DF_F_DataflashProbe: flash type is 0x1 > sflash.c:270:DF_F_DataflashProbe: n

Re: [U-Boot] Warning Bad CRC

2009-09-21 Thread Rahanesh
Dear Wolfgang, Is 0x3F00 really the correct offset? I doubt so. What are your full U-Boot boot messages, and what does "flinfo" print? * This is the print message of flinfo* U-BOOT # flinfo DataFlash:Nb pages: 32768 Page Size:256 Size= 8388608 bytes Logic

Re: [U-Boot] Warning Bad CRC

2009-09-21 Thread Wolfgang Denk
Dear Rahanesh, In message <4ab75481.6060...@tataelxsi.co.in> you wrote: > > But i cannot find out the issue with config file. We cannot find this out either. We don't know your hardware, and your code is not in mainline either. > This is the information i get from include/configs/my_boar

Re: [U-Boot] Warning Bad CRC

2009-09-21 Thread Rahanesh
Wolfgang Denk wrote: > > I thiunk this has been explained to you before: your fw_env.config > file is incorrect and does not match your actual hardware > configuration. > > But i cannot find out the issue with config file. This is the information i get from include/configs/my_board.h

Re: [U-Boot] Warning Bad CRC

2009-09-21 Thread Wolfgang Denk
Dear Rahanesh, In message <4ab72177.7090...@tataelxsi.co.in> you wrote: > > I am getting a warning message when i run fw_printenv on board. > > Warning : Bad CRC!! Using Default Environment. And it showed Few > environment variables. > The values of those environment variables are not that is