mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jason Cooper <barebox@lakedaemon.net>
To: barebox@lists.infradead.org
Subject: imx-usb-image write to usb error
Date: Wed, 4 Sep 2013 21:04:36 -0400	[thread overview]
Message-ID: <20130905010436.GP19598@titan.lakedaemon.net> (raw)

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

             reply	other threads:[~2013-09-05  1:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-05  1:04 Jason Cooper [this message]
2013-09-05  6:46 ` Sascha Hauer
2013-09-09 17:41   ` Jason Cooper
2013-09-11  7:00     ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130905010436.GP19598@titan.lakedaemon.net \
    --to=barebox@lakedaemon.net \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox