On Sat, Sep 02, 2006 at 07:12:58AM +0100, Alan Chandler wrote: > <snip question regarding getting udev to create /dev/dvb and recognise device> > > One issue I have is that once the device is loaded /sys reports the vendor id > and product id as 14aa and 0225 respectively. These are close to the vendor > id's as mentioned on the linuxtv web site, but not the same. >
I've had some fun setting up udev to work with different usb storage devices, and would strongly suggest that you do some searching to that effect - there're some very good little articles written. In summary, it appears necessary to create a file called local.rules in the directory /etc/udev/rules.d Here's mine: # # upcoming gotcha - on a later version of udev, = must be replaced with == # for comparisons - watch out for this! # # Logik mp3 player: BUS="scsi", SYSFS{model}="MSCN ", KERNEL="sd?1", NAME="%k", SYMLINK="logik" # for Nokia N770 BUS="scsi", SYSFS{model}="770 ", KERNEL="sd?1", NAME="%k", SYMLINK="n770" # for TomTom Go 700 BUS="scsi", SYSFS{model}="GO", NAME="tomtom_go700" # for Motorola A780 phone (using ID to get each drive) BUS="scsi", ID="??:?:?:0" SYSFS{model}="A780 Phone", KERNEL="sd?1", NAME="%k", SYMLINK="a780-int" BUS="scsi", ID="??:?:?:1" SYSFS{model}="A780 Phone", KERNEL="sd?1", NAME="%k", SYMLINK="a780-tf" # for GP2X BUS="scsi", SYSFS{model}="USB Storage Disk", KERNEL="sd?1", NAME="%k", SYMLINK="gp2x" # for the card reader... (If I get a card to test it with...) BUS="scsi", SYSFS{model}="CF Card CF ", NAME{all_partitions}="card_cf" BUS="scsi", SYSFS{model}="MS Card MS ", NAME{all_partitions}="card_ms" BUS="scsi", SYSFS{model}="SD Card MMC/SD ", NAME{all_partitions}="card_sd" BUS="scsi", SYSFS{model}="SM Card SM ", NAME{all_partitions}="card_sm" # for fujifilm q1 #### THIS SHOULD BE LAST - NO REAL ID HERE! #### BUS="scsi", SYSFS{vendor}=" ", KERNEL="sd?1", NAME="%k", SYMLINK="fuji_q1" # video for linux - get text interface for alevt KERNEL="vbi[0-9]*", NAME="v4l/vbi%n", SYMLINK="vbi", GROUP="video" --- end of quoted file --- I don't recall the full detail, but I had to dig through the /sys/bus/usb hierarchy to get the proper ID information for the devices, and then add the proper KERNEL, NAME and SYMLINK entries (you might not need a symlink). It might be that your DVB device is being created in /dev/v4l/dvb, in which case, you might just need a line like the last one for alevt where a SYMLINK in /dev is created with the proper GROUP. That's as much as I can recall, except that the above does work! I also found that I had to /etc/init.d/hotplug restart when testing changes. -- Mark Kent -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]