From: York Sun Date: Fri, 30 Jul 2010 16:34:08 -0500 Subject: [U-Boot] help on POST In-Reply-To: <20100730212903.3B69C152397@gemini.denx.de> References: <516c01cb2eac$1d67cdf1$0c23400a@fsl.freescale.net> <20100729212833.2F250151CC8@gemini.denx.de> <1280524829.25910.58.camel@oslab-l1> <20100730212903.3B69C152397@gemini.denx.de> Message-ID: <1280525648.25910.61.camel@oslab-l1> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Wolfgang, Thanks for the quick respond. On Fri, 2010-07-30 at 23:29 +0200, Wolfgang Denk wrote: > Dear York Sun, > > In message <1280524829.25910.58.camel@oslab-l1> you wrote: > > > > Please help me to understand the post_word_write() and post_word_load(). > > I see some implementations which don't use NVRAM. Is it OK to use gd? > > No. > > Does the post_word_load() require the data survive reset? How is the > > Yes. > > > data validated? I don't see any code to validate the value. > > It checks against BOOTMODE_MAGIC. What's if I don't want to use flash and don't have NVRAM? Can I use gd but let it fail the validation in case of data corruption? York