Skip to contentSkip to conversation

udev device nodes won't come back

DISCUSSION Anthony DiSante 2 participants 3 messages Sep 29, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

I'm running udev 030 on a Gentoo / 2.6.8 system, and I'm having some trouble with my tv tuner card. While trying to get things working, I noticed that the /dev/v4l directory was only present when the bttv module was loaded. But at one point after a system lockup, /dev/v4l was there even though bttv was *not* loaded.

So I deleted /dev/v4l expecting it to be properly re-created when I loaded bttv... but that didn't happen. How can I fix this?

Thanks,
Anthony DiSante
http://nodivisions.com/

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 10 lines · Anthony DiSante

Hello,

I'm running udev 030 on a Gentoo / 2.6.8 system, and I'm having some trouble with my tv tuner card. While trying to get things working, I noticed that the /dev/v4l directory was only present when the bttv module was loaded. But at one point after a system lockup, /dev/v4l was there even though bttv was *not* loaded.

So I deleted /dev/v4l expecting it to be properly re-created when I loaded bttv... but that didn't happen. How can I fix this?

Does running /sbin/udevstart create the node?

What is in the db?
[kay@pim ~]$ udevinfo -q all -p /sys/class/video4linux/video0
P: /sys/class/video4linux/video0
N: video0
T: c
M: 020660
S: video
O: root
G: root
F: /etc/udev/rules.d/50-udev.rules
L: 33
U: 45486

What does udevtest print?
[kay@pim ~]$ udevtest /sys/class/video4linux/video0
version 032
looking at '/class/video4linux/video0'
configured rule in '/etc/udev/rules.d/50-udev.rules' at line 33 applied, 'video0' becomes '%k' creating device node '/dev/video0', major = '81', minor = '0', mode = '020660', uid = '0', gid = '0'

How does the corresponding /sys-device entry look like?
[kay@pim ~]$ tree /sys/class/video4linux/ /sys/class/video4linux/
`-- video0

      |-- bridge
      |-- brightness
      |-- contrast
      |-- custom_id
      |-- dev
      |-- device -> ../../../devices/pci0000:00/0000:00:1d.1/usb3/3-1
      |-- driver -> ../../../bus/usb/drivers/usb
      |-- exposure
      |-- hue
      |-- model
      |-- name
      |-- saturation
      `-- sensor

Good luck,
Kay

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Anthony DiSante
Quoted 26 lines · Kay Sievers

Does running /sbin/udevstart create the node?

What is in the db?
[kay@pim ~]$ udevinfo -q all -p /sys/class/video4linux/video0
P: /sys/class/video4linux/video0
N: video0
T: c
M: 020660
S: video
O: root
G: root
F: /etc/udev/rules.d/50-udev.rules
L: 33
U: 45486

What does udevtest print?
[kay@pim ~]$ udevtest /sys/class/video4linux/video0
version 032
looking at '/class/video4linux/video0'
configured rule in '/etc/udev/rules.d/50-udev.rules' at line 33 applied, 'video0' becomes '%k' creating device node '/dev/video0', major = '81', minor = '0', mode = '020660', uid = '0', gid = '0'

How does the corresponding /sys-device entry look like?
[kay@pim ~]$ tree /sys/class/video4linux/ /sys/class/video4linux/
`-- video0

Quoted 13 lines
      |-- bridge
      |-- brightness
      |-- contrast
      |-- custom_id
      |-- dev
      |-- device -> ../../../devices/pci0000:00/0000:00:1d.1/usb3/3-1
      |-- driver -> ../../../bus/usb/drivers/usb
      |-- exposure
      |-- hue
      |-- model
      |-- name
      |-- saturation
      `-- sensor

I had all the tv-related modules rmmoded overnight, and today when I modprobed bttv, all the nodes got created properly. Very strange... I guess there's some kind of timeout in the code somewhere?

I'll try these tests next time though; since problems with my tv-tuner card(s) are never-ending, I'm sure I'll get the chance to.

Thanks,
Anthony DiSante
http://nodivisions.com/

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel