From: Tom Rini Date: Tue, 26 Feb 2013 10:56:07 -0500 Subject: [U-Boot] [PATCH v2 0/4] Add NAND support to DFU Message-ID: <1361894171-3379-1-git-send-email-trini@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hey all, This is a v2 of Pantelis' DFU for NAND patches. Based on Scott's feedback on the list as well as some further discussion, things have been reworked so that we are not using the command interface but instead calling nand_(read|write)_skip_bad directly. This needed some changes to that code so that we can find out how much space was used for our buffer (as we write in chunks). The NAND changes have been compile-tested on all ARM and PowerPC targets and run-time tested on ARM. A pleasant side-effect of these changes is that we can now, when writing to mtdparts defined partitions at least, check for and prevent cases when badblocks would cause us to previously silently overwrite part of the next partition. For practical reasons, this series depends on Pantelis' previous series of generic DFU changes. Changes since v1: - NAND skip_check_len changes reworked to allow nand_(read|write)_skip_bad to return this information to the caller. - dfu_nand calls nand_(read|write)_skip_bad directly. - Bugfix in dfu_nand to make sure we set dfu->skip_bad to 0 on each iteration. - Define mtdparts for am335x_evm - Set both dfu_alt_info_mmc and dfu_alt_info_nand on am335x_evm so that there working examples for both by default. -- Tom