1 |
Song Zhiwei schrieb: |
2 |
> Hi all, |
3 |
> |
4 |
> I complied a driver esdcan_usb331.so. I'd like use udev to create |
5 |
> character devices /dev/can0 and /dev/can1 with major 50 and minor 0/1 |
6 |
> for the driver. How to write the udev rule for it? |
7 |
> |
8 |
> The dmesg is: |
9 |
> esd CAN driver: CAN_USB331 |
10 |
> esd CAN driver: baudrate not set |
11 |
> esd CAN driver: mode = 0x00000000, major = 50, verbose = 0x00000001 |
12 |
> esd CAN driver: version 3.8.3 06:03:32 Aug 24 2009: successfully loaded |
13 |
> usbcore: registered new interface driver CAN_USB331 |
14 |
> |
15 |
|
16 |
Hi, |
17 |
|
18 |
there are two good guides for this: |
19 |
|
20 |
http://www.gentoo.org/doc/en/udev-guide.xml |
21 |
http://www.reactivated.net/writing_udev_rules.html |
22 |
|
23 |
Regards kh |