Article 53EXW Udev $TEMPNODE is not working

Udev $TEMPNODE is not working

by
PeterUK
from LinuxQuestions.org on (#53EXW)
I am following the software installation for a Xilinx programmer DLC9LP and it is doing a "/etc/udev/rules.d/" rule with the following:

This is from the Xilinx software package:
Code:BUS=="usb", ACTION=="add", SYSFS{idVendor}=="03fd", SYSFS{idProduct}=="000f", RUN+="/sbin/fxload -v -t fx2 -I /usr/share/xusb_xlp.hex -D $TEMPNODE"But I think what is not working is "$TEMPNODE"

The rule is running a flashing using fxload to flash the "xusb_xlp.hex" file.

At this point I have 3 questions as follows:

1.-Why $TEMPNODE is not working?
2.-Why should the flash the chip every time is plugged in? (Once it is flash it keep that configuration)
3.-How can I test what the udev rules is doing when I plugged the usb to the port regarding the value of "$TEMPNODE "

----This section is for extra information------------------------

I have make sure the fxload software is installed and available at "/sbin/fxload".

-D is for the device path. Which I know where it is.

I have run the fxload in an command line substituting the "$TEMPNODE" for the device path and it works. that is the reason I am believing the error is in "$TEMPNODE"

Before jumping to conclusion the install script is having the following sentence:

Code:sed -e 's/TEMPNODE/tempnode/' -e 's/SYSFS/ATTRS/g' -e 's/BUS/SUBSYSTEMS/' \"${dir}/xusbdfwu.rules\" >/etc/udev/rules.d/xusbdfwu.rules"Which I have done manually therefore I have tried "TEMPNODE" and "tempnode".

---------------- This is about why I am doing this ----------------

I am trying to install the software for a Xilinx DLC9LP to be used with Impact 14.7.

This reference may be useful about udev here

This is the software/driver I am installing here

I am trying to getting it working with Xilinx Impact 14.7 which I still haven't managed to get it working successfully, perhaps I will submit another post once I have bypass the "TEMPNODE" issue.latest?d=yIl2AUoC8zA latest?i=XG-QgFEJdaI:S3gbihe4iRY:F7zBnMy latest?i=XG-QgFEJdaI:S3gbihe4iRY:V_sGLiP latest?d=qj6IDK7rITs latest?i=XG-QgFEJdaI:S3gbihe4iRY:gIN9vFwXG-QgFEJdaI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments