From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Sahm Date: Wed, 02 Apr 2008 11:31:54 +0200 Subject: [U-Boot-Users] make env In-Reply-To: <20080325201148.E5F79248BF@gemini.denx.de> References: <20080325201148.E5F79248BF@gemini.denx.de> Message-ID: <47F3528A.3000202@feig.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, I try to modify the env toll for accessing nand flash. My problem the structure of the enviroment: If I understand: 4 byte crc; 1 byte flags, 0x20000-5 byte data. The Enviroment has a size of 0x20000 bytes. There is a redundant enviroment too.(same size) The CRC is over the data bytes,( not the flags byte included) , right ?? What about the flag byte, which values should I have to write here ? Thank you very much Manuel Sahm Wolfgang Denk schrieb: > In message <47E8F686.9020903@feig.de> you wrote: > >> I took the U-Boot version 1.3.2; now I am able to generate the make env >> -> fw_printenv utility. >> >> I copy the jw_printenv binary and rename it to fw_setenv. >> > ... > >> I want to access a NAND flash. [Pagesize = 0x800; ERASEBLOCKSIZE=0x20000] >> > ... > >> Is this correct ? >> > > No. the fw_env tools are written with NOR flash support in mind. Don't > expect this to work unchanged on NAND flash. > > Best regards, > > Wolfgang Denk > > -- Freundliche Gr??e / Best regards Manuel Sahm Research & Development FEIG ELECTRONIC GmbH Lange Stra?e 4 35781 Weilburg Germany Tel.: +49 (0)6471-3109.492 Fax.: +49 (0)6471-3109.99 email: manuel.sahm at feig.de internet: http://www.feig.de ------------------------------------------------------------------------ Amtsgericht Limburg HRB 3178 Gesch?ftsf?hrer: Dipl.-Ing. Wolfgang Feig ------------------------------------------------------------------------ ------------------------------------------------------------------------ Diese Email (eingeschlossen die Anhaenge) unterliegt Urheberrecht, die Informationen sind vertraulich und rechtswirksam privilegiert. Der Gebrauch dieser Email oder der Anhaenge von einem anderen als den Adressaten ist nicht gestattet und unrechtmaessig. This email (including any attachments) is subject to copyright, the information in it is confidential, and it is legally privileged. Use of this email or of any information in it other than by the addressee is unauthorised and unlawful. ------------------------------------------------------------------------