Instead of wiping out the whole sst_fwhub chip at once, the device is erased and programmed block by block. Additionally, blocks, which already contain the desired data, are skipped.
Signed-off-by: Claus Gindhart claus.gindhart@kontron.com
---
Mit freundlichen Grüßen / Best regards
Claus Gindhart SW R&D Kontron Modular Computers phone :++49 (0)8341-803-374 mailto:claus.gindhart@kontron.com http://www.kontron.com
Kontron Modular Computers GmbH Geschaeftsfuehrer / Managing Directors: Ulrich Gehrmann, Thomas Sabisch Sitz der Gesellschaft / Registered Office: Kaufbeuren, Rechtsform / Legal: GmbH Amtsgericht / Local District Court Kempten, HRB Nr. / Trade Register No. 6195
The information contained in this document is CONFIDENTIAL and property of Kontron. Any unauthorized review, use, disclosure or distribution is prohibited without express written consent of Kontron. If you are not the intended recipient, please contact the sender and destroy all copies of the original message and enclosed attachments.
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen und ist Eigentum von Kontron. Die Verwendung und Weitergabe von jeglichen Inhalten ist ohne ausdrückliche schriftliche Genehmigung von Kontron strikt untersagt. Wenn Sie diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten diese Mail und enthaltene Dokumente.
On Mon, May 05, 2008 at 04:16:02PM +0200, Claus Gindhart wrote:
Instead of wiping out the whole sst_fwhub chip at once, the device is erased and programmed block by block. Additionally, blocks, which already contain the desired data, are skipped.
Hm, do we need/want to make these changes in every flash chip driver?
I will investigate refactoring this logic into the calling layer instead. This will be a test of the block size info in flashchips.c.
Please don't commit this just yet.
No 1.0 so far. :( I'd appreciate many patches to the TESTED_ flags, still have some texts to go through (though I've changed some) and I'd like comments on the swapopts patch, as well as the fake chip entry vs. force-read command and the suggestion to always make the user confirm that the chipset probe is correct. (Not with -f though.)
//Peter