Problem udev and DVB
Hello !
How can I arrange that udev (kernel 2.6.16 or 2.6.17, both with the same problem) creates /dev/dvb/AdapterX instead (or
plus) /dev/.static/dev/dvb/AdapterX ?
Until now every try to do manually failed :-( Thanks a lot, Falk
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
what kind of device is that? a pci card? will you find the device in the /sys/ tree? and does it have a "dev" file at some node?
once you found it, udevinfo can be used to get information about it, which can be used for writing rules. for example
udevinfo -a -p /sys/devices/pci0000:00/0000:00:1d.0/usb1/usbdev1.1_ep00/dev (all in one line) shows me the properties of my usb host controller.
google for "writing udev rules", a HOWTO document with good explanations how it is done.
good luck!
Andreas
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 2 lines · Falk Müller
How can I arrange that udev (kernel 2.6.16 or 2.6.17, both with the same problem) creates
/dev/dvb/AdapterXinstead (or
Build the driver as a module, it's broken.
Signature · 12 lines
ciao, Marco ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Ahm yes, how do I do this ? Sorry, never done something like this before ...
Falk
Quoted 4 lines
Build the driver as a module
Signature · 2 lines
ciao, Marco
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 3 lines
what kind of device is that? a pci card? will you find the device in the
/sys/tree? and does it have a "dev" file at some node?
It is a usb stick. I searched myself and additionally let search for "*dvb*" and "*em*" (name of the driver) without success. The usb ports themself and i.e. the soundcard I can see.
The only thing I found was /sys/bus/usb/drivers/em28xx "em28xx" is the name of the driver for the dvb-t usb stick
So I guess I have to get the usb stick listed somewhere in /sys/devices ? And how ?
Falk
Quoted 11 lines
once you found it, udevinfo can be used to get information about it, which can be used for writing rules. for example
udevinfo -a -p /sys/devices/pci0000:00/0000:00:1d.0/usb1/usbdev1.1_ep00/dev (all in one line) shows me the properties of my usb host controller.google for "writing udev rules", a HOWTO document with good explanations how it is done.
good luck!
Andreas
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 10 lines · Falk Müller
Quoted 3 lines
what kind of device is that? a pci card? will you find the device in the
/sys/tree? and does it have a "dev" file at some node?It is a usb stick. I searched myself and additionally let search for "*dvb*" and "*em*" (name of the driver) without success. The usb ports themself and i.e. the soundcard I can see.
The only thing I found was
/sys/bus/usb/drivers/em28xx"em28xx" is the name of the driver for the dvb-t usb stick
I'm not the expert here, but I think there should be a symlink in that directory to any devices using that driver. For instance, I have a USB printer.
$ ls /sys/bus/usb/drivers/usblp/
2-3:1.0 bind module new_id unbind
$ ls -l /sys/bus/usb/drivers/usblp/2-3\:1.0
lrwxrwxrwx 1 root root 0 2006-12-06 10:08
/sys/bus/usb/drivers/usblp/2-3:1.0 ->
../../../../devices/pci0000:00/0000:00:0e.0/usb2/2-3/2-3:1.0
$ udevinfo -a -p /devices/pci0000:00/0000:00:0e.0/usb2/2-3/2-3:1.0 |
grep product
SYSFS{product}="DeskJet 810C"
SYSFS{product}="OHCI Host Controller"If you look at all the output from udevinfo, the "DesktJet 810C" actually comes from the parent device, but this is enough information to write the following rule:
BUS="usb", SYSFS{product}="DeskJet 810C", SYMLINK+="printer/deskjet810c"
I think with udev >= 098, the syntax should be
SUBSYSTEMS="usb", ATTRS{product}="DeskJet 810C",
SYMLINK+="printer/deskjet810c"
I'm probably wrong on the new syntax, though, but the old one will still work.
--
Dan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 2 lines · Falk Müller
Ahm yes, how do I do this ? Sorry, never done something like this before ...
You need to build your own kernel, and build the driver for your device as a module. A google search should give you loads of documents telling you how to do this.
Alex :-)
Quoted 19 lines
Falk
Quoted 4 lines
Build the driver as a module
--
ciao,
Marco---------------------------------------------------------------------
---- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DE
VDEV _______________________________________________ Linux-hotplug-devel mailing list
http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Signature · 4 lines
Pippin Computer Monkey to the Pelican www.oxrev.org.uk, www.corpusjcr.org, www.rev.org.uk 0870 120 0870, ext 26669
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel