[U-Boot] fw_env bug for multi-sector environments on NOR flash

2011-08-25 Thread Fei, Yiyang
Hi, I am storing u-boot environment variables on a NOR flash using two sectors. I encountered an error when writing changes using fw_setenv. /etc # cat fw_env.config # Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundand # environment

Re: [U-Boot] fw_env bug for multi-sector environments on NOR flash

2011-08-25 Thread Wolfgang Denk
Dear Fei, Yiyang, In message c2a5d1386c6db94198f2a5c8368eae6c14659...@dulmex02.barco.com you wrote: # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd12 0x 0x2 0x1 2 Stupid question: why do

Re: [U-Boot] fw_env bug for multi-sector environments on NOR flash

2011-08-25 Thread Fei, Yiyang
Dear Mr. Denk, Stupid question: why do you define an environment size of 128 kB? I bet you use less than 10% of this, right? Correct Are you aware that this has a lof of disadvantages, lile significantly slowing down your boot process? I am now, but the first product is already released