[U-Boot] U-Boot environment update in linux embedded ARM architecture

Dear Madam/Sir, our company, Microhard s.r.l, produces data acquisition terminals and in our new design, which is under development, we use an ARM 9 plattform based on the AT91SAM9263 microcontroller. Right now our system uses a NAND Flash chip from Micron MT29F2G08AACWP and out Memory is mapped as follows
0x0 AT91Booststrap 0x20000 *U-Boot (2009.06)* 0x60000 *U-Boot Env.* 0x A0000 Linux Kernel 0x400000 Rooot FS (jffs2)
We are trying to update the U-booot environment from U-boot with the /"savenev"/ command. We encounter the following problem. When updating the u-boot environment part of the u-boot code is overwritten with the environment parameters. This happens only when our NAND flash has bad blocks in the u-boot zone. (Block 1 and 2), We receive the information about the bad blocks from Sam-ba. If we use a NAND with no bad blocks everything works fine. Could you kindly give any advise about this topic? We looking foreword for your answer thank you for your time, best regards
Jan Misfatto

0x20000 *U-Boot (2009.06)* 0x60000 *U-Boot Env.*
So two blocks. for u-boot, which is bigger than one block.
the u-boot environment part of the u-boot code is overwritten with the environment parameters. This happens only when our NAND flash has bad blocks in the u-boot zone. (Block 1 and 2),
In this case u-boot is stored in two blocks, but skipping the bad block. Your env area will contain the trailing part of u-boot binary. I'm sure your consultant already told you.
/Questo messaggio ed i suoi allegati viene spedito solo alle persone indicate come destinatarie. Esso contiene informazioni confidenziali
Please avoid this meaningless stuff when posting to public lists (even in private mail it sounds insulting, but that's just personal taste).
/alessandro
participants (2)
-
Alessandro Rubini
-
Jan Misfatto