From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reda MIMOUNE Date: Fri, 17 Sep 2010 16:49:15 +0200 Subject: [U-Boot] RE : RE : Davinci DM365 custom design : Problem when reading uBoot environment variables In-Reply-To: <20100917143204.6416A15242D@gemini.denx.de> References: <1918F436C366B34BB245DD28389E039453ADFAAD1E@mars.easii.fr> <20100915131514.7792c2ea@schlenkerla.am.freescale.net> <1918F436C366B34BB245DD28389E039453ADFAAD1F@mars.easii.fr>, <20100916115516.131b884d@schlenkerla.am.freescale.net> <1918F436C366B34BB245DD28389E039453ADFAAD25@mars.easii.fr>, <20100917123721.0A2D015242D@gemini.denx.de> <1918F436C366B34BB245DD28389E039453ADFAAD2A@mars.easii.fr> <20100917143204.6416A15242D@gemini.denx.de> Message-ID: <1918F436C366B34BB245DD28389E039453ADE8BB05@mars.easii.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Thank you No Davinci did not mess it up. I read 0x4000 (16KB) instead of 0x40000 (256KB). So if I understand you I can swap the values in my first email: CONFIG_ENV_SECT_SIZE = 128KB CFG_ENV_SIZE = 16KB Thanks for help. Cordialement, Reda MIMOUNE Reda MIMOUNE Ing?nieur Software Senior EASII IC SAS 90, avenue L?on Blum BP 2612 Tel : 04 56 580 579 38036 Grenoble cedex 2 Fax : 04 56 580 599 www.easii-ic.com -----Message d'origine----- De?: Wolfgang Denk [mailto:wd at denx.de] Envoy??: vendredi 17 septembre 2010 16:32 ??: Reda MIMOUNE Cc?: Scott Wood; u-boot at lists.denx.de Objet?: Re: RE : [U-Boot] RE : Davinci DM365 custom design : Problem when reading uBoot environment variables Dear Reda MIMOUNE, In message <1918F436C366B34BB245DD28389E039453ADFAAD2A@mars.easii.fr> you wrote: > > reading the README file, here is what I read: > > Note: CFG_ENV_OFFSET and CFG_ENV_OFFSET_REDUND must be aligned > to a block boundary, and CFG_ENV_SIZE must be a multiple of > the NAND devices block size. I think that should be CONFIG_ENV_SECT_SIZE > Since my sectors/blocks are 128KB, I must be at least 128KB! > > Is the README file wrong ? Seems so. Unless Davinci has messed up this. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "If that makes any sense to you, you have a big problem." -- C. Durance, Computer Science 234