mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* imx-usb-image write to usb error
@ 2013-09-05  1:04 Jason Cooper
  2013-09-05  6:46 ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Jason Cooper @ 2013-09-05  1:04 UTC (permalink / raw)
  To: barebox

All,

This is the first I've messed with i.MX, so I'm a little lost. :)

I'm putting together a patch to add support for the SanDisk Connect
Wireless Media Drive [1], code dump from SanDisk is here [2].  It turns
out when you unplug the battery, it'll show up as the Freescale hid.

Here's what I get:

$ ./scripts/imx/imx-image -c \
arch/arm/boards/sandisk-connect-wmd/flash-header-lpddr1.imxcfg -f \
barebox.bin -o barebox.imx
$ sudo ./scripts/imx/imx-usb-loader -vvvvv ./barebox.imx 
found i.MX50 USB device [15a2:0052]
report=1
report 1, wrote 0 bytes, err=0
report=3
report 3, read 0 bytes, err=-7
read=00 00 00 00
report=1
report 1, wrote 0 bytes, err=0
report=3
report 3, read 0 bytes, err=-7
read=00 00 00 00
report=1
report 1, wrote 0 bytes, err=0
report=3
report 3, read 0 bytes, err=-7
read=00 00 00 00
report=1
report 1, wrote 0 bytes, err=0
report=3
report 3, read 0 bytes, err=-7
read=00 00 00 00
report=1
report 1, wrote 0 bytes, err=0
report=3
report 3, read 0 bytes, err=-7
read=00 00 00 00
report=1
report 1, wrote 0 bytes, err=0
report=3
report 3, read 0 bytes, err=-7
read=00 00 00 00
report=4
4 in err=-7, last_trans=0  00 00 00 00
status failed

Looking at the code, it looks like transfer() is always returning 0
bytes in last_trans.  Has anyone seen this before?  $searchengine came
up blank.  What simple thing am I missing?

thx,

Jason.

[1] http://www.sandisk.com/products/wireless/media-drive/
[2] http://www.sandisk.com/products/connect/disclaimer/

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-11  7:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-05  1:04 imx-usb-image write to usb error Jason Cooper
2013-09-05  6:46 ` Sascha Hauer
2013-09-09 17:41   ` Jason Cooper
2013-09-11  7:00     ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox