[U-Boot] [PATCH] dfu: fix some issues with reads/uploads

Lukasz Majewski l.majewski at samsung.com
Mon Jun 2 08:14:10 CEST 2014


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?

> Can you investigate why you're
> getting back a 0-length file? 

This is really strange. I will look into that.

> Perhaps there's some error condition, so
> dfu-util exits before any data is downloaded, or perhaps when
> dfu_get_medium_size_mmc() is called, either lba_size or lba_blk_size
> is 0 (neither should be...)
> 

I will check this. Thanks for support.

> Thanks.



-- 
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group


More information about the U-Boot mailing list