FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 08-02-2010, 07:05 PM
 
Default making a dev with udev; was ownership of /dev/raw1394

* Date: Mon, 26 Jan 2009 10:49:44 -1000
* From: Joel Roth <joelz@pobox.co.>
> 1) write your own udev rule

Plug in the Unibrain Fire-i camera, S/N:0040053291.
Converted to hexadecimal the serial number is 02632A2B.

peter@joule:~$ grep 0263 /var/log/syslog
Aug 2 09:46:38 joule kernel: [ 8.815859] ieee1394: Node added: ID:BUS[0-00:1
023] GUID[0814436102632a2b]

So we know the camera has GUID 0x0814436102632a2b.

Let's see where it is recorded in sysfs.
peter@joule:~$ find /sys -type f -exec grep "2632" {} ; -print
0x0814436102632a2b
/sys/devices/pci0000:00/0000:00:1e.0/0000:02:09.0/fw-host0/0814436102632a2b/guid
PHYSDEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:09.0/fw-host0/0814436102632a2b
/sys/class/ieee1394_node/0814436102632a2b/uevent
PHYSDEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:09.0/fw-host0/0814436102632a2b/0814436102632a2b-0
GUID=0814436102632a2b
/sys/class/ieee1394/0814436102632a2b-0/uevent
PHYSDEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:09.0/fw-host0/0814436102632a2b/0814436102632a2b-0/0814436102632a2b-1
GUID=0814436102632a2b
/sys/class/ieee1394/0814436102632a2b-1/uevent

Try an obvious rule to make a device node for the camera.
With this line in /etc/udev/rules.d/z21_persistent-local.rules, restart udev.

ATTR{/sys/devices/pci0000:00/0000:00:1e.0/0000:02:09.0/fw-host0/0814436102632a2b/guid}="0x0814436102632a2b",NAME="Fire-i"

Then.
peter@joule:~$ ls /dev/F*
ls: cannot access /dev/F*: No such file or directory

The Fire-i device wasn't created. How can an attribute
suitable to hang a node upon be identified? Any ideas
to make this work?

Thanks, ... Peter E.

--
Carnot netboots *.SUN4C; installation of NetBSD 5 pending.
Personal site works; http://members.shaw.ca/peasthope/ .


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 171056578.49498.47517.@heaviside.invalid">http://lists.debian.org/171056578.49498.47517.@heaviside.invalid
 

Thread Tools




All times are GMT. The time now is 05:55 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org