Song Zhiwei schrieb: > Hi all, > > I complied a driver esdcan_usb331.so. I'd like use udev to create > character devices /dev/can0 and /dev/can1 with major 50 and minor 0/1 > for the driver. How to write the udev rule for it? > > The dmesg is: > esd CAN driver: CAN_USB331 > esd CAN driver: baudrate not set > esd CAN driver: mode = 0x00000000, major = 50, verbose = 0x00000001 > esd CAN driver: version 3.8.3 06:03:32 Aug 24 2009: successfully loaded > usbcore: registered new interface driver CAN_USB331 >
Hi, there are two good guides for this: http://www.gentoo.org/doc/en/udev-guide.xml http://www.reactivated.net/writing_udev_rules.html Regards kh