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

2011-08-26 Thread Fei, Yiyang
When storing u-boot environment variables on a NOR flash using multiple sectors, the following error occurs when writing changes using fw_setenv. /etc # cat fw_env.config /dev/mtd12 0x 0x2 0x1 2 /etc # fw_setenv test test End of range reached, aborting Error: can't write

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

[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

[U-Boot] Skipping bad blocks while reading and writing JFFS2 image to NAND flash

2011-02-09 Thread Fei, Yiyang
Hi, When writing a JFFS2 image to NAND flash, any bad blocks in the BBT is skipped. However, while scanning a JFFS2 partition, bad blocks are not skipped. Is this intended or am I mis-configuring u-boot somehow? I'm using the 2010.12 u-boot source code. The BBT table for my system includ

[U-Boot] JFFS2 duplicate file entries

2011-02-09 Thread Fei, Yiyang
Hi, I'm using the 2010.12 u-boot source code. I use a JFFS2 partition on a NAND flash to store the kernel image as well as an FGPA images for my platform. I also mount this partition inside the kernel because I need the ability to overwrite the contents during a field-upgrade of the embedded