[#6806] jtag fails to detect board when invoked with a relative path

Document created by Aaronwu Employee on Oct 17, 2013
Version 1Show Document
  • View in full screen mode

[#6806] jtag fails to detect board when invoked with a relative path

Submitted By: David Gibson

Open Date

2011-10-04 10:25:41     Close Date

2011-10-04 12:14:58

Priority:

Medium     Assignee:

Jie Zhang

Board:

N/A     Silicon Revision:

Resolution:

Fixed     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Closed     Found In Release:

N/A

Is this bug repeatable?:

yes     

Summary: jtag fails to detect board when invoked with a relative path

Details:

 

If I invoke the jtag utility using a relative path, the detect command fails to open the board information. If I switch to using an absolute path (at the same location), the detection works correctly.

 

To reproduce:

 

 

dgibso2@edin-manchester:~/devonshire_toolchain$ sudo opt/uClinux/bfin-uclinux/bin/bfin-jtag -q                   jtag> cable gnICE+

Connected to libftdi driver.

jtag> detect

IR length: 5

Chain length: 1

Device Id: 00100010011111001000000011001011 (0x227C80CB)

  Manufacturer: Analog Devices, Inc. (0x0CB)

  Part(0):      BF537 (0x27C8)

  Stepping:     2

  Filename:     opt/uClinux/bfin-uclinux/bin/../share/urjtag/analog/bf537/bf537

error: system error: No such file or directory Cannot open file 'opt/uClinux/bfin-uclinux/bin/../share/urjtag/opt/uClinux/bfin-uclinux/bin/../share/urjtag/analog/bf537/bf537' to parse

warning: Blackfin part is missing instructions

jtag>

 

 

And the working absolute path invocation:

 

 

sudo /home/dgibso2/devonshire_toolchain/opt/uClinux/bfin-uclinux/bin/bfin-jtag -q

jtag> cable gnICE+

Connected to libftdi driver.

jtag> detect

IR length: 5

Chain length: 1

Device Id: 00100010011111001000000011001011 (0x227C80CB)

  Manufacturer: Analog Devices, Inc. (0x0CB)

  Part(0):      BF537 (0x27C8)

  Stepping:     2

  Filename:     /home/dgibso2/devonshire_toolchain/opt/uClinux/bfin-uclinux/bin/../share/urjtag/analog/bf537/bf537

jtag> cable gnICE+

Connected to libftdi driver.

jtag> detect

IR length: 5

Chain length: 1

Device Id: 00100010011111001000000011001011 (0x227C80CB)

  Manufacturer: Analog Devices, Inc. (0x0CB)

  Part(0):      BF537 (0x27C8)

  Stepping:     2

  Filename:     /home/dgibso2/devonshire_toolchain/opt/uClinux/bfin-uclinux/bin/../share/urjtag/analog/bf537/bf537

jtag> quit

 

Follow-ups

 

--- Jie Zhang                                                2011-10-04 12:16:32

Thanks for reporting. Now it should be fixed on trunk, 2011R1 branch and

upstream.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes