From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Mon, 02 Jun 2014 09:52:23 -0600 Subject: [U-Boot] [PATCH] dfu: fix some issues with reads/uploads In-Reply-To: <20140602081410.6e3eaa88@amdc2363> References: <1400543980-406-1-git-send-email-swarren@wwwdotorg.org> <20140522122029.429fd10c@amdc2363> <537E2E92.7060407@wwwdotorg.org> <20140530102857.414614cc@amdc2363> <5388F11E.5080906@wwwdotorg.org> <20140602081410.6e3eaa88@amdc2363> Message-ID: <538C9DB7.8090706@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/02/2014 12:14 AM, Lukasz Majewski wrote: > Hi Stephen, > >> On 05/30/2014 02:28 AM, Lukasz Majewski wrote: >> ... >>> I've tested if raw u-boot can be downloaded and uploaded via DFU. >>> The u-boot size is 1MiB precisely. >>> >>> Corresponding dfu_alt_info entry: >>> "u-boot raw 0x80 0x800;" \ >> ... >>> 2. Upload (raw): >>> >>> dfu-util -a0 -U u-boot-mmc.bin_target >>> It exits immediately and I can only see the file size of 0. >>> >>> So obviously we have regression here. However, since I didn't >>> covered this case in my tests I don't know when it was broken. >> >> Hmmm. I tested with that exact value of dfu_alt_info and got back an >> exactly 1MB file with either the dfu-util packaged in Ubuntu 12.10, or >> with the latest git tree of dfu-util. > > Could you share the exact SHA1 of the dfu-util? Or is it the master > newest branch? Distro package: dfu-util package 0.5-1 in Ubuntu 12.04. In the git tree: 25c173e3fd0a dfu_prefix: Rewrite handling of prefix requirements (which was origin/master when I fetched it a week or two ago)