From: Wolfgang Denk Date: Sat, 31 Jul 2010 19:11:29 +0200 Subject: [U-Boot] help on POST In-Reply-To: <1280525648.25910.61.camel@oslab-l1> References: <516c01cb2eac$1d67cdf1$0c23400a@fsl.freescale.net> <20100729212833.2F250151CC8@gemini.denx.de> <1280524829.25910.58.camel@oslab-l1> <20100730212903.3B69C152397@gemini.denx.de> <1280525648.25910.61.camel@oslab-l1> Message-ID: <20100731171129.599D2152398@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 <1280525648.25910.61.camel@oslab-l1> you wrote: > > > > 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? I don't understand the problem. All we need is some register or memory location that is guaranteed to keep it's value during a hard reset of the processor. This can be NVRAM, or On-Chip-Memory, or some register. I am pretty sure you know this CPU much better than me, and I am optimistic that you can find such a register. 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 365 Days of drinking Lo-Cal beer. = 1 Lite-year