From: Detlev Zundel Date: Mon, 03 Dec 2007 16:54:40 +0100 Subject: [U-Boot-Users] Fallback kernel In-Reply-To: <474EE6E6.9020804@coritel.it> (Marco Stornelli's message of "Thu\, 29 Nov 2007 17\:20\:54 +0100") References: <474EE6E6.9020804@coritel.it> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marco, > Why does it require a little processor specific support? In the > bootcount_load and bootcount_store, we could use an uboot environment > variable to store and load the value (if the env is in flash for > example), isn't it? Because we do not want to erase a flash sector for every boot iteration. Ok, this could be implemented in a more clever way, but this effort is better spent on other areas of U-Boot when most CPUs offer some kind of a "breadcrumb" register surviving resets. Cheers Detlev -- He thinks he's really smooth, but he's only C^1. -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de