From andrei@srr.ro Tue Dec 4 13:37:35 2001 Date: Wed, 21 Nov 2001 11:40:48 +0200 From: Andrei Boros To: pguiral Subject: Re: [linux-dvb] dvbd3 quickfix for opensky. patch in messabe body. > Just newbie question: what kernel/DVB driver do you use for dvbd2 and > dvbd3 ? > How do I apply this patch ? > Have you a web site to write this information ? > > Thanks, > Pierre. kernel is 2.2.19 driver is 0.8.2 have your source tree in a directory like this : ./DVB ./dvbd3 create a new file named dvbd3.patch copy/paste from my original email (this one has reply quotes) the patch body (between the "===========" without them) save the file run patch -p0 < dvbd3.patch compile dvbd3 copy dvbd.conf to /etc edit /etc/dvbd.conf and change at filter_1 to the MAC address of you DVB card. (to find out the MAC address, load the dvb drivers, this will also bring up the interface dvb0. run ifconfig dvb0 you will see "HWaddr xx:xx:xx:xx:xx:xx" somewhere in that output. put xx:xx:xx:xx:xx:xx in dvbd.conf ) Tell me if it worked :) pguiral wrote: > > On Thu, 15 Nov 2001, Andrei Boros wrote: > > > Since the list does not seem to allow attachements, but the patch is > > very small, here it is included inline in this message : > > > > After applying the patch, copy dvbd.conf to /etc/dvbd.conf and edit it : > > change the definition > > filter_1 3003 your_MAC 48 > > replacing "your_MAC" with the MAC address of the DVB card. (the one you > > used when you subscribed to OpenSKY). > > > > > > ================ dvbd3.patch > > ================================================= > > diff -urb dvbd3.orig/dvbd.c dvbd3/dvbd.c > > --- dvbd3.orig/dvbd.c Wed Aug 8 09:29:13 2001 > > +++ dvbd3/dvbd.c Tue Nov 13 19:13:46 2001 > > @@ -170,7 +170,11 @@ > > case 'f': > > ret = atoi (optarg) ; > > > > - if (ret > 10600000 && ret < 14500000) > > + if (ret > 10600000 && ret < 11700000) > > + { > > + front.freq = front.curfreq = ((__u32) ret - 9750000) * 1000 ; > > + } else > > + if (ret > 11700000 && ret < 14500000) > > { > > front.freq = front.curfreq = ((__u32) ret - 10600000) * 1000 > > ; > > } > > @@ -1275,7 +1279,11 @@ > > { > > ret = (__u32) atoi (s) ; > > > > - if ((ret > 10600000) && (ret < 14500000)) > > + if ((ret > 10600000) && (ret < 11700000)) > > + { > > + fend->freq = fend->curfreq = ((__u32) ret - 9750000) * 1000 ; > > + } else > > + if ((ret > 11700000) && (ret < 14500000)) > > { > > fend->freq = fend->curfreq = ((__u32) ret - 10600000) * 1000 > > ; > > } > > diff -urb dvbd3.orig/dvbd.conf dvbd3/dvbd.conf > > --- dvbd3.orig/dvbd.conf Sat Aug 4 20:39:00 2001 > > +++ dvbd3/dvbd.conf Tue Nov 13 19:17:52 2001 > > @@ -19,7 +19,7 @@ > > # > > # ASTRA 1G/1H > > # > > -symbolrate 22000000 > > +symbolrate 27500000 > > # > > # frequency [kHz] > > # > > @@ -37,11 +37,11 @@ > > # > > # ASTRA TR 115 > > # > > -frequency 12662750 > > +frequency 11262300 > > # > > # 22 kHz signal to LNB. on=1/off=0 > > # > > -ttk 1 > > +ttk 0 > > # > > # DiSEqC. on=1/off=0 > > # > > @@ -71,7 +71,8 @@ > > # > > # syntax: filter_0 [] > > # > > -filter_0 512 eth0 > > +filter_0 3003 dvb0 > > +filter_1 3003 !!!your_MAC!!! 48 > > # > > # other MPE filters (these are intended to filter multicast traffic). > > # > > ==================== end of dvbd3.patch > > ===================================== > > > -- ing. Andrei Boros mailto:andrei@srr.ro / +40-1-303-1865 Centrul pt. Tehnologia Informatiei Societatea Romana de Radiodifuziune