From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Bernd Krumboeck <krumboeck@universalnet.at>
Cc: linux-can@vger.kernel.org
Subject: Re: usb_8dev: firmware and windows library
Date: Sat, 25 Jan 2014 12:04:41 +0100 [thread overview]
Message-ID: <52E39A49.10205@hartkopp.net> (raw)
In-Reply-To: <52E36208.3020100@universalnet.at>
[-- Attachment #1: Type: text/plain, Size: 2063 bytes --]
On 25.01.2014 08:04, Bernd Krumboeck wrote:
>
> After some experiments I was able to flash the firmware with dfu-util under
> linux:
> https://github.com/krumboeck/usb2can_firmware#flash-the-device-linux-experimental
>
>
Hello Bernd,
many thanks - especially for the flash description above!
Two remarks to your dfu for Linux description:
change "./configure.sh" to "./configure"
A proper patch for removing the vendor check is attached, so that you can
link the patch in your description.
It should appear in this posting e.g. at http://marc.info/?l=linux-can like
the attachment from Gediminas:
http://marc.info/?l=linux-can&m=139036935703648&w=1
here: http://marc.info/?l=linux-can&m=139036935703648&q=p3
Btw. I was not able to update my adapter because it fails at different
percentages of the download - see below. I'll try with another usblib or
another Linux box.
Best regards,
Oliver
# dfu-util -d 0483:df11 -a 0 -D usb2can_1_5.dfu
dfu-util 0.7
Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org
Deducing device DFU version from functional descriptor length
Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Runtime Interface...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
dfu-util: WARNING: Runtime device already in DFU state ?!?
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "Internal Flash 0"
file contains 1 DFU images
parsing DFU image 1
image for alternate setting 0, (1 elements, total size = 24584)
parsing element 1, address = 0x20006000, size = 24576
Download [========= ] 37% 9216 bytesdfu-util: dfuse_download: libusb_control_transfer returned -9
# _
[-- Attachment #2: dfu-remove-vendor-check.patch --]
[-- Type: text/x-diff, Size: 853 bytes --]
diff --git a/src/main.c b/src/main.c
index 30a9bd8..516a460 100644
--- a/src/main.c
+++ b/src/main.c
@@ -655,16 +655,6 @@ status_again:
break;
case MODE_DOWNLOAD:
- if (((file.idVendor != 0xffff && file.idVendor != runtime_vendor) ||
- (file.idProduct != 0xffff && file.idProduct != runtime_product)) &&
- ((file.idVendor != 0xffff && file.idVendor != dfu_root->vendor) ||
- (file.idProduct != 0xffff && file.idProduct != dfu_root->product))) {
- errx(EX_IOERR, "Error: File ID %04x:%04x does "
- "not match device (%04x:%04x or %04x:%04x)",
- file.idVendor, file.idProduct,
- runtime_vendor, runtime_product,
- dfu_root->vendor, dfu_root->product);
- }
if (dfuse_device || dfuse_options || file.bcdDFU == 0x11a) {
if (dfuse_do_dnload(dfu_root, transfer_size, &file,
dfuse_options) < 0)
next prev parent reply other threads:[~2014-01-25 11:04 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-17 9:03 usb_8dev: firmware and windows library "Bernd Krumböck"
2013-01-17 16:32 ` Oliver Hartkopp
2013-01-17 20:24 ` Robert Schwebel
2013-01-18 10:43 ` Uwe Bonnes
2014-01-21 11:50 ` Oliver Hartkopp
2014-01-21 11:57 ` Gediminas Simanskis
2014-01-21 12:19 ` bon
2014-01-21 16:03 ` Gediminas Simanskis
2014-01-21 16:07 ` bon
2014-01-22 5:42 ` Gediminas Simanskis
2014-01-22 12:58 ` Bernd Krumboeck
2014-01-22 14:46 ` Marc Kleine-Budde
2014-01-25 7:04 ` Bernd Krumboeck
2014-01-25 8:29 ` Brennan Ashton
2014-01-25 9:08 ` Bernd Krumboeck
2014-01-25 15:55 ` Brennan Ashton
2014-01-25 16:55 ` Oliver Hartkopp
[not found] ` <52E4CEA2.5030407@universalnet.at>
2014-01-26 9:22 ` Gediminas Simanskis
2014-01-26 9:38 ` Bernd Krumboeck
2014-01-26 10:04 ` Gediminas Simanskis
2014-01-26 20:56 ` Bernd Krumboeck
2014-01-25 11:04 ` Oliver Hartkopp [this message]
2014-01-25 11:45 ` Oliver Hartkopp
2015-01-30 21:56 ` Oliver Hartkopp
2015-01-30 22:09 ` Bernd Krumboeck
2015-01-31 10:09 ` Oliver Hartkopp
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=52E39A49.10205@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=krumboeck@universalnet.at \
--cc=linux-can@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).