Gentoo Archives: gentoo-user

From: tuxic@××××××.de
To: Gentoo <gentoo-user@l.g.o>
Subject: [gentoo-user] Re: Udev trouble: Non working rule...or...
Date: Thu, 28 Sep 2017 15:05:46
Message-Id: 20170928150525.2f4rsxywtny5bzhy@solfire
In Reply to: [gentoo-user] Udev trouble: Non working rule...or... by tuxic@posteo.de
1 Sorry, forgot the link...here it is:
2 http://digistump.com/products/1
3
4
5
6 On 09/28 03:03, tuxic@××××××.de wrote:
7 > Hi,
8 >
9 > may bet this is part of the theory about the relationship
10 > between the forest and the trees...I am trying this already
11 > for a longer time.
12 >
13 > I have one of these:
14 >
15 >
16 >
17 > When plugged in, lsusb reports those as:
18 > Bus 006 Device 018: ID 16d0:0753 MCS Digistump DigiSpark
19 >
20 > and in the verbose form:
21 > Bus 006 Device 018: ID 16d0:0753 MCS Digistump DigiSpark
22 > Device Descriptor:
23 > bLength 18
24 > bDescriptorType 1
25 > bcdUSB 1.10
26 > bDeviceClass 255 Vendor Specific Class
27 > bDeviceSubClass 0
28 > bDeviceProtocol 0
29 > bMaxPacketSize0 8
30 > idVendor 0x16d0 MCS
31 > idProduct 0x0753 Digistump DigiSpark
32 > bcdDevice 1.06
33 > iManufacturer 0
34 > iProduct 0
35 > iSerial 0
36 > bNumConfigurations 1
37 > Configuration Descriptor:
38 > bLength 9
39 > bDescriptorType 2
40 > wTotalLength 18
41 > bNumInterfaces 1
42 > bConfigurationValue 1
43 > iConfiguration 0
44 > bmAttributes 0x80
45 > (Bus Powered)
46 > MaxPower 100mA
47 > Interface Descriptor:
48 > bLength 9
49 > bDescriptorType 4
50 > bInterfaceNumber 0
51 > bAlternateSetting 0
52 > bNumEndpoints 0
53 > bInterfaceClass 0
54 > bInterfaceSubClass 0
55 > bInterfaceProtocol 0
56 > iInterface 0
57 >
58 > On the web site of digistump there is listed the following udev-rule,
59 > which I copy-pasted into
60 > ls -l /etc/udev/rules.d/49-micronucleus.rules
61 > -rw-r--r-- 1 root root 809 2017-09-28 16:23 /etc/udev/rules.d/49-micronucleus.rules
62 >
63 > the contents of that rule is:
64 >
65 > # UDEV Rules for Micronucleus boards including the Digispark.
66 > # This file must be placed at:
67 > #
68 > # /etc/udev/rules.d/49-micronucleus.rules (preferred location)
69 > # or
70 > # /lib/udev/rules.d/49-micronucleus.rules (req'd on some broken systems)
71 > #
72 > # After this file is copied, physically unplug and reconnect the board.
73 > #
74 > SUBSYSTEMS=="usb", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0753", MODE:="0666"
75 > KERNEL=="ttyACM*", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0753", MODE:="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
76 > #
77 > # If you share your linux system with other users, or just don't like the
78 > # idea of write permission for everybody, you can replace MODE:="0666" with
79 > # OWNER:="yourusername" to create the device owned by you, or with
80 > # GROUP:="somegroupname" and mange access using standard unix groups.
81 > #
82 >
83 > After inserting that rule I did a
84 > udevadm control --reload-rules
85 > as root and inserted the Digispark.
86 >
87 > As listed above, lsusb could list the Digispark...but udev ignores it.
88 > I can find the device under /dev/bus/...., though.
89 > But there is no device created by udev directly in /dev.
90 >
91 > Since the Arduino-IDE needs any port to send the firmware to I am
92 > currentlu out of business.
93 >
94 > I can see the trees...but where is the forest?
95 >
96 > Thanks a lot for any enlightment in advance!
97 > Cheers
98 > Meino
99 >
100 >
101 >
102 >
103 >