LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-14-2020, 05:15 AM   #1
PeterUK
Member
 
Registered: May 2009
Posts: 281

Rep: Reputation: 16
Udev $TEMPNODE is not working


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.
 
Old 05-14-2020, 05:45 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
In newer udev versions $devnode is used instead of $tempnode.

Last edited by shruggy; 05-14-2020 at 05:54 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
$tempnode: What sets it in udev rules? Devyn Linux - Software 0 01-29-2012 09:06 PM
[SOLVED] Chose udev for services... udev starts twice... hotplug fails flipjarg Linux - Newbie 2 09-19-2010 12:49 PM
UDEV - SBLive(emu10k) - Mandriva hangs at UDEV during boot.....still! Grrr. peterlowrie Linux - Hardware 2 05-23-2010 06:37 PM
current users - udev-128 - don't forget rc.udev.new! tobyl Slackware 3 10-08-2008 03:28 AM
slackware-current, udev 0.96, and custom udev rules not working rignes Slackware 6 08-10-2006 03:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration