[U-Boot] Not abled to upload binary using "dfu-util"

Hi All,
I am trying to upload images from dfu devices to PC, but
"Copying data from DFU device to PC Starting upload: [] finished! Received a total of 1 bytes"
error i got,
do not know why i getting this kind of error because downloading of files is made but uploading not.
Any help will appreciate.
Thanks ~Sumit Gemini

Hello Sumit,
Am 20.06.2013 10:44, schrieb Sumit Gemini:
Hi All,
I am trying to upload images from dfu devices to PC, but
"Copying data from DFU device to PC Starting upload: [] finished! Received a total of 1 bytes"
error i got,
do not know why i getting this kind of error because downloading of files is made but uploading not.
Any help will appreciate.
"man dfu-util" says:
-U, --upload FILE Read firmware from device into FILE.
Note: Upload support is currently broken.
Maybe you find more help here:
https://lists.gnumonks.org/mailman/listinfo/dfu-util
bye, Heiko

HI Heiko,
Thanks for reply and for links, i raised a request for membership. Here I want to share regarding dfu,
when i apply
dfu-util -v -a SPL -U dfu-SPL from my host machine,
I got such log on Host machine :-
Device returned transfer size 4096 bytes_per_hash=4096 Copying data from DFU device to PC Starting upload: [] finished! Received a total of 1 bytes
and finally dfu-SPL file created with 4kb size.
but on target machine, i got
Running: sf read 0x00000000 0x20000 0x0 Failed to map physical memory.
May i know why i got such error or user have to specify address over which we read our binary
Thanks ~Sumit Gemini
On Thu, Jun 20, 2013 at 3:20 PM, Heiko Schocher hs@denx.de wrote:
Hello Sumit,
Am 20.06.2013 10:44, schrieb Sumit Gemini:
Hi All,
I am trying to upload images from dfu devices to PC, but
"Copying data from DFU device to PC Starting upload: [] finished! Received a total of 1 bytes"
error i got,
do not know why i getting this kind of error because downloading of files is made but uploading not.
Any help will appreciate.
"man dfu-util" says:
-U, --upload FILE Read firmware from device into FILE. Note: Upload support is currently broken.
Maybe you find more help here:
https://lists.gnumonks.org/mailman/listinfo/dfu-util
bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

On Thu, Jun 20, 2013 at 04:14:04PM +0530, Sumit Gemini wrote:
HI Heiko,
Thanks for reply and for links, i raised a request for membership. Here I want to share regarding dfu, when i apply dfu-util -v -a SPL -U dfu-SPL from my host machine,
I got such log on Host machine :-
Device returned transfer size 4096 bytes_per_hash=4096 Copying data from DFU device to PC Starting upload: [] finished! Received a total of 1 bytes
and finally dfu-SPL file created with 4kb size.
but on target machine, i got
Running: sf read 0x00000000 0x20000 0x0 Failed to map physical memory.
May i know why i got such error or user have to specify address over which we read our binary
There is no DFU-SPI glue in mainline. Please post the patches you have for adding SPI support to DFU, or contact your vendor.

Hi Tom,
Thanks for reply and need more help...
on host machine i can easily see the all partition by applying "dfu-util -l". and i am able to download images from pc to dfu-devices and it running fine, but in case of uploading (from dfu-device to PC), my system just copied only 1 byte data, and said uploading finished.
i stuck here, even i am not getting where is error. and yes when i applied
on host machine : dfu-util -a u-boot -U DFU-UBOOT
Got this output on host machine:-
bytes_per_hash=4096 Copying data from DFU device to PC Starting upload: [] finished!
and file DFU-UBOOT created with 4KB size.
on target machine got such output :
Running: sf read 0x00000000 0x20000 0x0 Failed to map physical memory.
here 0x20000 is my u-boot base address.
and sorry for saying i am very new in this DFU, i got complete source code from client and i already check dfu source code even there is a entry for dfu usb gadget in board file(am335x.h).
so now what should i verify regarding dfu. if you want i can send you my board file.
Thanks ~Sumit Gemini
On Thu, Jun 20, 2013 at 8:17 PM, Tom Rini trini@ti.com wrote:
On Thu, Jun 20, 2013 at 04:14:04PM +0530, Sumit Gemini wrote:
HI Heiko,
Thanks for reply and for links, i raised a request for membership. Here I want to share regarding dfu, when i apply dfu-util -v -a SPL -U dfu-SPL from my host machine,
I got such log on Host machine :-
Device returned transfer size 4096 bytes_per_hash=4096 Copying data from DFU device to PC Starting upload: [] finished! Received a total of 1 bytes
and finally dfu-SPL file created with 4kb size.
but on target machine, i got
Running: sf read 0x00000000 0x20000 0x0 Failed to map physical memory.
May i know why i got such error or user have to specify address over
which
we read our binary
There is no DFU-SPI glue in mainline. Please post the patches you have for adding SPI support to DFU, or contact your vendor.
-- Tom
participants (3)
-
Heiko Schocher
-
Sumit Gemini
-
Tom Rini