LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-13-2008, 12:23 PM   #1
shroder300
LQ Newbie
 
Registered: Mar 2003
Distribution: slackware 12.1
Posts: 23

Rep: Reputation: 15
udev adding usb micochip pkckit2 programmer


I am trying to get a micochip pic programmer working under linux. I followed the directions from

http://mcuee.blogspot.com/2008/04/pk...er-ubuntu.html

everything worked as root but I could not get users that were in the 'microchip' group.

Code:
root@x:~# lsusb
Bus 001 Device 006: ID 04d8:0033 Microchip Technology, Inc.
Bus 001 Device 005: ID 03f0:2b17 Hewlett-Packard LaserJet 1020
Bus 001 Device 003: ID 0409:0059 NEC Corp. HighSpeed Hub
Bus 001 Device 002: ID 1058:1100 Western Digital Technologies, Inc.
Bus 001 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 046d:c401 Logitech, Inc. TrackMan Marble Wheel
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
root@x:~# ls -la /dev/bus/usb/001
total 0
drwxr-xr-x 2 root root         140 2008-09-13 12:56 ./
drwxr-xr-x 7 root root         140 2008-09-12 17:10 ../
crw-r--r-- 1 root microchip 189, 0 2008-09-12 17:10 001
crw-r--r-- 1 root microchip 189, 1 2008-09-12 17:10 002
crw-r--r-- 1 root microchip 189, 2 2008-09-12 17:10 003
crw-rw---- 1 root lp        189, 4 2008-09-13 12:56 005
crw-r--r-- 1 root microchip 189, 5 2008-09-13 12:56 006
first, why is microchip listed four times? the programmer is #6. The printer is #5. this is with a udev permissions file created as stated in the directions. the programmer only works for root and the printer works fine. when I change the name of the permissions file to just 'microchip.rules' everything becomes

Code:
drwxr-xr-x 2 root root         140 2008-09-13 13:05 ./
drwxr-xr-x 7 root root         140 2008-09-12 17:10 ../
crw-r--r-- 1 root microchip 189, 0 2008-09-12 17:10 001
crw-r--r-- 1 root microchip 189, 1 2008-09-12 17:10 002
crw-r--r-- 1 root microchip 189, 2 2008-09-12 17:10 003
crw-rw---- 1 root microchip 189, 4 2008-09-13 13:04 005
crw-rw-r-- 1 root microchip 189, 7 2008-09-13 13:06 008
root@x:~# lsusb
Bus 001 Device 008: ID 04d8:0033 Microchip Technology, Inc.
Bus 001 Device 005: ID 03f0:2b17 Hewlett-Packard LaserJet 1020
Bus 001 Device 003: ID 0409:0059 NEC Corp. HighSpeed Hub
Bus 001 Device 002: ID 1058:1100 Western Digital Technologies, Inc.
Bus 001 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 046d:c401 Logitech, Inc. TrackMan Marble Wheel
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
so why now is the printer missing? the printer doesn't work. and how do I get rid of all of the microchip listings? but, the programmer now works for the members of the 'microchip' group.
 
Old 09-18-2008, 06:56 PM   #2
shroder300
LQ Newbie
 
Registered: Mar 2003
Distribution: slackware 12.1
Posts: 23

Original Poster
Rep: Reputation: 15
I have re-tried and re-tried this. still no luck. it still works under root just fine. just not under any user. I have re-created the udev rules file according to this site:

http://mcuee.blogspot.com/2008/04/pk...ra-core-6.html

the permissions look correct:

Code:
lrwxrwxrwx 1 root root 10 2008-09-18 19:43 /dev/pickit2-usbdev1.10 -> usbdev1.10
crw-rw---- 1 root microchip 189, 9 2008-09-18 19:43 /dev/usbdev1.10
I am a member of microchip also. does anyone know what is next?
 
Old 09-19-2008, 12:04 PM   #3
shroder300
LQ Newbie
 
Registered: Mar 2003
Distribution: slackware 12.1
Posts: 23

Original Poster
Rep: Reputation: 15
I have tried settings all users to access /dev/pickit2 and the device file and still no luck. I will just have to use sudo.
 
Old 09-19-2008, 12:20 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Did you try to set group write permission for files in /dev/bus/usb/001 ?
 
  


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
USB udev issue: yotux Slackware 8 04-11-2007 05:55 PM
Udev and USB power farfrael Slackware 1 12-03-2006 11:53 AM
Programmer to Programmer ( Long Story Of A GUI ) mdoubledragon Programming 1 10-13-2005 05:41 PM
Issues with adding a udev rule... Ateo Linux - General 1 03-04-2005 08:02 PM
udev, USB Flash Drives, and usb-mount talkingwires Debian 13 11-07-2004 12:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:56 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