Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: What's the minor-shift (if there is one set)?
> Oops, you are right, that should be 4.
> That would explain the errors you got.
Should it? What if I have more than 4 cards (5 in my case)?
>
> The best solution would be to drop fixed minor numbers
altogether and
> only use devfs. The minor numbers only created a lot of
headaches in
> dvbdev.c for me and I would not mind getting rid of them.
>
> I'll probably change to devfs only in the NEWSTRUCT
branch.
> So, who does not use devfs yet?
I tried using devfs, it is installed, devfsd up and running.
ps -lax shows:
....
040 0 9 0 9 0 0 0 kupdat SW ?
0:00 [kupdated]
040 0 10 1 -1 -20 0 0 md_thr SW< ?
0:00 [mdrecoveryd]
140 0 74 1 9 0 1568 672 devfsd S ?
0:00 devfsd /dev
040 0 515 1 9 0 0 0 end SW ?
0:00 [khubd]
040 0 793 1 9 0 0 0 end SW ?
0:00 [eth0]
....
mount gives:
/dev/hda5 on / type ext2 (rw)
none on /proc type proc (rw)
devfs on /dev type devfs (rw)
none on /dev/pts type devpts (rw,mode=0620)
none on /dev/shm type tmpfs (rw)
/proc/bus/usb on /proc/bus/usb type usbdevfs
(rw,devmode=0664,devgid=43)
I have changed makedev.napi like this:
rm -rf /dev/dvb
mkdir /dev/dvb
chmod 755 /dev/dvb
mkdir /dev/dvb/card0
chmod 755 /dev/dvb/card0
mknod -m 0666 /dev/dvb/card0/video0 c 250 0
mknod -m 0666 /dev/dvb/card0/audio0 c 250 1
mknod -m 0666 /dev/dvb/card0/sec0 c 250 2
mknod -m 0666 /dev/dvb/card0/frontend0 c 250 3
mknod -m 0666 /dev/dvb/card0/demux0 c 250 4
mknod -m 0666 /dev/dvb/card0/dvr0 c 250 5
mknod -m 0666 /dev/dvb/card0/ca0 c 250 6
mknod -m 0666 /dev/dvb/card0/net0 c 250 7
mknod -m 0666 /dev/dvb/card0/osd0 c 250 8
mkdir /dev/dvb/card1
chmod 755 /dev/dvb/card1
mknod -m 0666 /dev/dvb/card1/video1 c 250 32
mknod -m 0666 /dev/dvb/card1/audio1 c 250 33
mknod -m 0666 /dev/dvb/card1/sec1 c 250 34
mknod -m 0666 /dev/dvb/card1/frontend1 c 250 35
mknod -m 0666 /dev/dvb/card1/demux1 c 250 36
mknod -m 0666 /dev/dvb/card1/dvr1 c 250 37
mknod -m 0666 /dev/dvb/card1/ca1 c 250 38
mknod -m 0666 /dev/dvb/card1/net1 c 250 39
mknod -m 0666 /dev/dvb/card1/osd1 c 250 40
mkdir /dev/dvb/card2
chmod 755 /dev/dvb/card2
mknod -m 0666 /dev/dvb/card2/video2 c 250 64
mknod -m 0666 /dev/dvb/card2/audio2 c 250 65
mknod -m 0666 /dev/dvb/card2/sec2 c 250 66
mknod -m 0666 /dev/dvb/card2/frontend2 c 250 67
mknod -m 0666 /dev/dvb/card2/demux2 c 250 68
mknod -m 0666 /dev/dvb/card2/dvr2 c 250 69
mknod -m 0666 /dev/dvb/card2/ca2 c 250 70
mknod -m 0666 /dev/dvb/card2/net2 c 250 71
mknod -m 0666 /dev/dvb/card2/osd2 c 250 72
mkdir /dev/dvb/card3
chmod 755 /dev/dvb/card3
mknod -m 0666 /dev/dvb/card3/video3 c 250 96
mknod -m 0666 /dev/dvb/card3/audio3 c 250 97
mknod -m 0666 /dev/dvb/card3/sec3 c 250 98
mknod -m 0666 /dev/dvb/card3/frontend3 c 250 99
mknod -m 0666 /dev/dvb/card3/demux3 c 250 100
mknod -m 0666 /dev/dvb/card3/dvr3 c 250 101
mknod -m 0666 /dev/dvb/card3/ca3 c 250 102
mknod -m 0666 /dev/dvb/card3/net3 c 250 103
mknod -m 0666 /dev/dvb/card3/osd3 c 250 104
mkdir /dev/dvb/card4
chmod 755 /dev/dvb/card4
mknod -m 0666 /dev/dvb/card4/video4 c 250 128
mknod -m 0666 /dev/dvb/card4/audio4 c 250 129
mknod -m 0666 /dev/dvb/card4/sec4 c 250 130
mknod -m 0666 /dev/dvb/card4/frontend4 c 250 131
mknod -m 0666 /dev/dvb/card4/demux4 c 250 132
mknod -m 0666 /dev/dvb/card4/dvr4 c 250 133
mknod -m 0666 /dev/dvb/card4/ca4 c 250 134
mknod -m 0666 /dev/dvb/card4/net4 c 250 135
mknod -m 0666 /dev/dvb/card4/osd4 c 250 136
and finally I have changed DVB_NUM_DEVICES in dvbdev.h to 5
(I have 5 cards).
The error is the same:
make: *** [insmod] Error 139
What's the problem?
Since in devfs the major/minor numbers are not used, how
should the mknod commands look like? It somehow has no sense
specifying them, but on the other hand mknod requires that
parameter (because using c type devices)... Is mknod
supposed to be used to create the devfiles??
The space-naming is inspired from the NAPI documentation
(20010917).
If I'm doing something completely wrong, or if I overlooked
something, please tell me...
Thanks,
Aurelian
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index