Support for JLINK in 0.8.0 requires small patch

Bug #1382661 reported by deleted1234
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openocd (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

See here:
https://<email address hidden>/msg06174.html

I was using 0.7.0 via apt, but having no luck with an IAR Systems J-Link USB adapter, decided to build from source myself.

Using the 0.8.0 source, with the modification in the post above, I compiled a working version of openocd that doesn't fail when using the above adapter.

It's unfortunate that this patch isn't in the official openocd repos, but I wanted to point it out in case any maintainers want to fix the bug.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

The post you linked is sent from review tool where patches go into the official repo.

http://openocd.zylin.com/gitweb?p=openocd.git;a=commitdiff;h=96549bf0121a7cff08885ddca22ab7a1c362ea24

Revision history for this message
deleted1234 (empty1234-deactivatedaccount) wrote : Re: [Bug 1382661] Re: Support for JLINK in 0.8.0 requires small patch

My mistake then. I used the source forge repo, which must be outdated.
On Oct 17, 2014 7:40 PM, "Tormod Volden" <email address hidden> wrote:

> The post you linked is sent from review tool where patches go into the
> official repo.
>
>
> http://openocd.zylin.com/gitweb?p=openocd.git;a=commitdiff;h=96549bf0121a7cff08885ddca22ab7a1c362ea24
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1382661
>
> Title:
> Support for JLINK in 0.8.0 requires small patch
>
> Status in “openocd” package in Ubuntu:
> New
>
> Bug description:
> See here:
>
> https://<email address hidden>/msg06174.html
>
> I was using 0.7.0 via apt, but having no luck with an IAR Systems
> J-Link USB adapter, decided to build from source myself.
>
> Using the 0.8.0 source, with the modification in the post above, I
> compiled a working version of openocd that doesn't fail when using the
> above adapter.
>
> It's unfortunate that this patch isn't in the official openocd repos,
> but I wanted to point it out in case any maintainers want to fix the
> bug.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/openocd/+bug/1382661/+subscriptions
>

Revision history for this message
Andreas Fritiofson (andreas-fritiofson) wrote :

The fix is most definitely in the SF repo:

http://sourceforge.net/p/openocd/code/ci/96549bf0121a7cff08885ddca22ab7a1c362ea24/

You may want to check that you're using the correct URL, SF changed it a few years back and unfortunately the old one is still available but frozen. The correct one is:

http://git.code.sf.net/p/openocd/code

By the way, the patch only helps in the odd case where libusb-1.0 is unavailable so libusb-0.1 is used instead. This is not a recommended configuration, since adapter drivers that only work with libusb-1.0 API will not be built.

I recommend to install libusb-1.0-0-dev before the configure step, then the patch won't be needed.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

The Debian package build-depends on libusb-1.0-0-dev so the patch should not be an issue here.

Johnny, does the 0.8.0-1 in the repos work fine for you?

https://launchpad.net/ubuntu/+source/openocd/0.8.0-1

Changed in openocd (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openocd (Ubuntu) because there has been no activity for 60 days.]

Changed in openocd (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.