From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Fri, 08 Nov 2013 13:14:46 +0100 Subject: [U-Boot] [PATCH v2] usb: dfu: make nand upload working In-Reply-To: <1383805781-23146-1-git-send-email-voice.shen@atmel.com> References: <1383805781-23146-1-git-send-email-voice.shen@atmel.com> Message-ID: <527CD5B6.5060104@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 Hello Bo, Am 07.11.2013 07:29, schrieb Bo Shen: > Nowhere pass a value to len, which always 0, make no transfer which > cause uploading failed. > > This patch make nand upload working. However it needs enough malloc > buffer to store read data, that means the buffer at least equal to > the upload partition size, or else it doesn't work. > > Signed-off-by: Bo Shen > --- > Changes in v2: > - Move code to nand part, or else it will break mmc > > drivers/dfu/dfu_nand.c | 1 + > 1 file changed, 1 insertion(+) Thanks! Tested on the rut board. Tested-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany