Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[udev dvb] con udev non funziona la mia skystar2 [Risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Bengio
Apprentice
Apprentice


Joined: 20 Feb 2003
Posts: 186
Location: Italy - Pisa

PostPosted: Mon Aug 30, 2004 12:17 am    Post subject: [udev dvb] con udev non funziona la mia skystar2 [Risolto] Reply with quote

Premetto che con devfs funzionava tutto bene.
Da circa una settimana sono passato a udev e non venivano creati i vari /dev/dvb/adapter/* ma per questo c'e' lo scriptino apposito in /usr/share/doc/linuxtv-dvb/.
Il problema e' che anche se ora ho i vari node in /dev, non funziona ugualmente niente. Ho fatto qualche ricerca con google e da quello che ho capito udev non supporta il dvb!!!

Qualcuno puo' confermare queste affermazioni?

Bengio


Last edited by Bengio on Mon Aug 30, 2004 1:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
Bengio
Apprentice
Apprentice


Joined: 20 Feb 2003
Posts: 186
Location: Italy - Pisa

PostPosted: Mon Aug 30, 2004 1:49 pm    Post subject: Reply with quote

Risolto!!! :D

Ho visto gli attributi dei vari /dev/dvb/adapter0/* creati con devfs ed ho modificato lo script dato con linuxtv-dvb in modo che i vari node venissero creati con gli attributi corretti sotto udev

Questo e' lo script modificato:
Code:
#!/bin/sh
# Create device nodes for the Linux DVB API with DVB_API_VERSION 2.
# The devices created are suitable for most current PC DVB cards,
# i.e. cards having one frontend, one demux and optionally one
# MPEG decoder.
# The script creates devices for four cards by default.

if [ -e /dev/.devfsd ]; then
        echo "It seems you are using devfs. Good!"
        exit 0
fi

# get rid of old DVB API devices; do it twice for good measure...
rm -rf /dev/ost
rm -rf /dev/ost
rm -rf /dev/dvb
rm -rf /dev/dvb

mkdir /dev/dvb
chmod 755 /dev/dvb

for i in `seq 0 3`; do
        echo "Creating DVB devices in /dev/dvb/adapter$i"
        mkdir /dev/dvb/adapter$i
        chmod 755 /dev/dvb/adapter$i
        mknod -m 0660 /dev/dvb/adapter$i/video0    c 212   `expr 64 \* $i + 0`
        mknod -m 0660 /dev/dvb/adapter$i/audio0    c 212   `expr 64 \* $i + 1`
        mknod -m 0660 /dev/dvb/adapter$i/frontend0 c 212   `expr 64 \* $i + 3`
        mknod -m 0660 /dev/dvb/adapter$i/demux0    c 212   `expr 64 \* $i + 4`
        mknod -m 0660 /dev/dvb/adapter$i/dvr0      c 212   `expr 64 \* $i + 5`
        mknod -m 0660 /dev/dvb/adapter$i/ca0       c 212   `expr 64 \* $i + 6`
        mknod -m 0660 /dev/dvb/adapter$i/net0      c 212   `expr 64 \* $i + 7`
        mknod -m 0660 /dev/dvb/adapter$i/osd0      c 212   `expr 64 \* $i + 8`
        chown root:video /dev/dvb/adapter$i/*
done


Come si vede ho sostituito 250 -> 212
Poi visto che ho una skystar2, ho cancellato i node che non mi servivano e quindi:
Code:
bengio@black (168.229 MB) /home/bengio $ ll /dev/dvb/adapter0/
totale 0
crw-rw----  1 root video 212, 4 30 ago 15:41 demux0
crw-rw----  1 root video 212, 5 30 ago 15:41 dvr0
crw-rw----  1 root video 212, 3 30 ago 15:41 frontend0
crw-rw----  1 root video 212, 7 30 ago 15:41 net0
bengio@black (168.229 MB) /home/bengio $


Bengio
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum