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 AT91Booststrap0x20000 *U-Boot (2009.06)*0x60000 *U-Boot Env.*
0x A0000 Linux Kernel0x400000 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
Signature · 29 lines
*/Jan Misfatto/* */Microhard/**/ S.r.l./* *Tel: +39.0331.514420* *Fax: +39.0331.514707* *e-mail:* *<[email protected]>* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- /Questo messaggio ed i suoi allegati viene spedito solo alle persone indicate come destinatarie. Esso contiene informazioni confidenziali legalmente privilegiate. Se il lettore non e' indicato come destinatario, la lettura, diffusione o copia di questo messaggio o l'uso delle informazioni che contiene o degli allegati e' proibita. Se avete ricevuto questo messaggio per errore Vi preghiamo di avvisare immediatamente il mittente e cancellare il messaggio e gli allegati. Per qualunque domanda in proposito Vi preghiamo di contattarci inviando un messaggio a /_info at microhard.biz <mailto:[email protected]>_/./ /This message and its attachments is addressed only to the intended recipient. This message contains confidential information legally privileged. If the reader is not a representative of the intended recipient, any review, dissemination or copying of this message or use of the information it contains or its attachments is prohibited. If you have received this message in error please notify immediately the sender and delete this message and attachments. Should you have any questions, please contact us by replying to /_info at microhard.biz__ <mailto:[email protected]>_/./
Quoted 2 lines
0x20000*U-Boot (2009.06)*0x60000*U-Boot Env.*
So two blocks. for u-boot, which is bigger than one block.
Quoted 3 lines
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.
Quoted 2 lines
/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