From mboxrd@z Thu Jan 1 00:00:00 1970 From: Holger Brunck Date: Mon, 02 May 2011 09:41:29 +0200 Subject: [U-Boot] [PATCH 24/30] km/common: add pnvramsize to default environment In-Reply-To: <20110430083234.3F5E3D5270E@gemini.denx.de> References: <20110430083234.3F5E3D5270E@gemini.denx.de> Message-ID: <4DBE6029.5050602@keymile.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Mr. Denk, On 04/30/2011 10:32 AM, Wolfgang Denk wrote: > Dear Valentin Longchamp, > > In message you wrote: >> From: Holger Brunck >> >> The pnvram size was used later from start scripts in linux. Therefore >> it must be set inside u-boot. > > How does this work? A plain setenv() here just adds an entry to the > hash table where U-Boot stores the variables. This data is not > accessable in Linux ("start scripts in linux" being init scripts?) > Argh. Good catch. It actually works because we do initially one time a saveenv when we start a boot with the "release environment". But it isn't good to be dependent to a previously saveenv. I will remove it there and add this variable to the default environment. Best regards Holger Brunck