From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Fri, 20 Jun 2014 18:00:34 +0200 Subject: [U-Boot] [PATCH] test: dfu: script enhancements In-Reply-To: <1402439290-32731-1-git-send-email-swarren@wwwdotorg.org> References: <1402439290-32731-1-git-send-email-swarren@wwwdotorg.org> Message-ID: <20140620180034.46546af9@amdc2363> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stephen, > From: Stephen Warren > > Various misc enhancements to dfu_gadget_test.sh: > > * After every write (download), perform a write to a different file > with different data. This ensures that the DFU buffer's content is > replaced, so that if the read (upload) succeeds, we know that the > correct data was actually read from the storage device, rather than > simply being left over in the DFU buffer. This requires two alt > setting names to be passed to the script, and a dummy data file to > be generated by dfu_gadget_test_init.sh. > > * Fix the assumption that dfu_gadget_test.sh is run from the directory > that contains it, by cd'ing to that directory before invoking > ./dfu_gadget_test_init.sh. > > * Use $DIR$RCV_DIR consistently, rather than using plain $RCV_DIR in > some places. > > * Add 959, 961 test file sizes, to be consistent with having one > more than and one less than all the other "round" sizes 64, 128, and > 4096. > > * Remove references to $BKP_DIR from dfu_gadget_test_init.sh, since it > isn't used. > > Signed-off-by: Stephen Warren Applied to u-boot-dfu [Although, I've also added an incremental patch with some README clarification] Stephen, thanks for enhancements. -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group