From: Wolfgang Denk Date: Fri, 30 Jul 2010 23:29:03 +0200 Subject: [U-Boot] help on POST In-Reply-To: <1280524829.25910.58.camel@oslab-l1> References: <516c01cb2eac$1d67cdf1$0c23400a@fsl.freescale.net> <20100729212833.2F250151CC8@gemini.denx.de> <1280524829.25910.58.camel@oslab-l1> Message-ID: <20100730212903.3B69C152397@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. 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 Faith may be defined briefly as an illogical belief in the occurence of the improbable. - H. L. Mencken