From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Fri, 23 Apr 2010 22:03:32 +0200 Subject: [U-Boot] [PATCH RFC] add CONFIG_BOOTCOUNT_LIMIT for MCF5445x In-Reply-To: <20100423194341.GS20047@leila.ping.de> References: <1272026324-18566-1-git-send-email-w.wegner@astro-kom.de> <20100423192535.23CF519F60@gemini.denx.de> <20100423194341.GS20047@leila.ping.de> Message-ID: <20100423200332.E99F119F60@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 Wolfgang Wegner, In message <20100423194341.GS20047@leila.ping.de> you wrote: > > > > + * We use transfer descriptor registers as a persistent storage > > > + * across resets. This was tested on a MCF54455. > > > + * Neither U-Boot nor the stock LTIB kernel seem to use > > > + * TCD[1], so it should be safe at least until application > > > + * start. > > > > This is not sufficent, then. The bootcounter requires to be reset from > > User Space, i. e. _after_ the application has been succesfully > > started. If application start messes with the value, this fails to > > work. > > sorry, my wording was not correct. > What I meant was that no device driver in stock kernel uses these > registers, so the only possibility for them to get used is if the > init system or application loads some non-standard drivers. I see. I guess the comment should be updated, then. 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 I can have honesty, it's easier to overlook mistakes. -- Kirk, "Space Seed", stardate 3141.9