* [U-Boot] Not abled to upload binary using "dfu-util"
@ 2013-06-20 8:44 Sumit Gemini
2013-06-20 9:50 ` Heiko Schocher
0 siblings, 1 reply; 5+ messages in thread
From: Sumit Gemini @ 2013-06-20 8:44 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread* [U-Boot] Not abled to upload binary using "dfu-util" 2013-06-20 8:44 [U-Boot] Not abled to upload binary using "dfu-util" Sumit Gemini @ 2013-06-20 9:50 ` Heiko Schocher 2013-06-20 10:44 ` Sumit Gemini 0 siblings, 1 reply; 5+ messages in thread From: Heiko Schocher @ 2013-06-20 9:50 UTC (permalink / raw) To: u-boot 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] Not abled to upload binary using "dfu-util" 2013-06-20 9:50 ` Heiko Schocher @ 2013-06-20 10:44 ` Sumit Gemini 2013-06-20 14:47 ` Tom Rini 0 siblings, 1 reply; 5+ messages in thread From: Sumit Gemini @ 2013-06-20 10:44 UTC (permalink / raw) To: u-boot 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 > ^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] Not abled to upload binary using "dfu-util" 2013-06-20 10:44 ` Sumit Gemini @ 2013-06-20 14:47 ` Tom Rini 2013-06-21 6:40 ` Sumit Gemini 0 siblings, 1 reply; 5+ messages in thread From: Tom Rini @ 2013-06-20 14:47 UTC (permalink / raw) To: u-boot 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130620/d6d54e3b/attachment.pgp> ^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] Not abled to upload binary using "dfu-util" 2013-06-20 14:47 ` Tom Rini @ 2013-06-21 6:40 ` Sumit Gemini 0 siblings, 0 replies; 5+ messages in thread From: Sumit Gemini @ 2013-06-21 6:40 UTC (permalink / raw) To: u-boot 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 > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-06-21 6:40 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-06-20 8:44 [U-Boot] Not abled to upload binary using "dfu-util" Sumit Gemini 2013-06-20 9:50 ` Heiko Schocher 2013-06-20 10:44 ` Sumit Gemini 2013-06-20 14:47 ` Tom Rini 2013-06-21 6:40 ` Sumit Gemini
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox