From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MgWxo-0002TH-7s for garchives@archives.gentoo.org; Thu, 27 Aug 2009 04:51:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C1588E00E9; Thu, 27 Aug 2009 10:01:11 +0000 (UTC) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by pigeon.gentoo.org (Postfix) with ESMTP id 66203E00E9 for ; Thu, 27 Aug 2009 10:01:11 +0000 (UTC) Received: from [192.168.1.30] (dslb-188-098-072-243.pools.arcor-ip.net [188.98.72.243]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MKt2u-1Mgbn03xdh-000TGu; Thu, 27 Aug 2009 12:01:07 +0200 Message-ID: <4A965962.7070402@konstantinhansen.de> Date: Thu, 27 Aug 2009 12:01:06 +0200 From: KH User-Agent: Thunderbird 2.0.0.22 (X11/20090813) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to set udev rule? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX18kwrqDDU6S96d8JzlDzjSnDOjB3b9plzLaw9f R8Oi3MAQ3lAGP1cN6rSARmRDKhVt7yDlJ83x8Dw8gZLloXc68m dAjq9yf6ymeFkP/Olv7Yw== X-Archives-Salt: bee2fde7-c06a-4fb3-9d1a-54728cc8c36c X-Archives-Hash: 28610eba22e49699b0c0b222097e97fc 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