Fórum Ubuntu CZ/SK

Ubuntu pro osobní počítače => Hardware => Téma založeno: Roman Vacho 14 Března 2009, 17:25:31

Název: TV karta Pinnacle PCTV Dual Hybrid Pro 3310ix
Přispěvatel: Roman Vacho 14 Března 2009, 17:25:31
Zdravím,
OS U 9.04. Je to dvoutunerová karta s čipama SAA7162. Rád bych na ní rozchodil DVB-T. Procházím internet, Wiki V4L, mám vývojářský driver, ale někde v postupu dělám chybu.
Kód: [Vybrat]
lshw
*-multimedia UNCLAIMED
                description: Multimedia controller
                product: Pinnacle PCTV 3010iX Dual Analog + DVB-T (VT8251 Ultra VLINK Controller)
                vendor: Philips Semiconductors
                physical id: 0
                bus info: pci@0000:03:00.0
                version: 01
                width: 64 bits
                clock: 33MHz
                capabilities: msi pciexpress pm bus_master cap_list
                configuration: latency=0

Driver jsem zkompiloval pomocí make a sudo make install. Co s tím dále? Měl jsem za to, že se to samo do systému nainstaluje a případně načte moduly.
Výpis při opakování kompilace.
Kód: [Vybrat]
dusan@dd:~/Plocha/saa716x-49bbc09cc27a$ make
make -C /home/dusan/Plocha/saa716x-49bbc09cc27a/v4l
make[1]: Entering directory `/home/dusan/Plocha/saa716x-49bbc09cc27a/v4l'
creating symbolic links...
Kernel build directory is /lib/modules/2.6.28-9-generic/build
make -C /lib/modules/2.6.28-9-generic/build SUBDIRS=/home/dusan/Plocha/saa716x-49bbc09cc27a/v4l  modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.28-9-generic'
  Building modules, stage 2.
  MODPOST 12 modules
make[2]: Leaving directory `/usr/src/linux-headers-2.6.28-9-generic'
./scripts/rmmod.pl check
found 12 modules
make[1]: Leaving directory `/home/dusan/Plocha/saa716x-49bbc09cc27a/v4l'
dusan@dd:~/Plocha/saa716x-49bbc09cc27a$ sudo make install
[sudo] password for dusan:
make -C /home/dusan/Plocha/saa716x-49bbc09cc27a/v4l install
make[1]: Entering directory `/home/dusan/Plocha/saa716x-49bbc09cc27a/v4l'
Stripping debug info from files
-e
Removing obsolete files from /lib/modules/2.6.28-9-generic/kernel/drivers/media/video:

Installing kernel modules under /lib/modules/2.6.28-9-generic/kernel/drivers/media/:
dvb/dvb-core/: dvb-core.ko
dvb/saa716x/: saa716x_ff.ko saa716x_hybrid.ko saa716x_budget.ko
saa716x_core.ko
dvb/frontends/: lgdt330x.ko zl10353.ko isl6423.ko
tda1004x.ko mb86a16.ko stv090x.ko
mt352.ko
/sbin/depmod -a 2.6.28-9-generic
make[1]: Leaving directory `/home/dusan/Plocha/saa716x-49bbc09cc27a/v4l'
Jinak kompilace pravděpodobně dopadla dobře. Jde mi o to, zda teda ten ovladač je v systému už nebo ne. A zda ten ovladač obsahuje všechny součásti co jsou potřeba nebo je ještě potřeba kompilovat něco jiného.

Moduly mi jdou načíst pomocí modprobe, ale jen když jsme v daném adresáři kde je modul. Ovšem karta stejně nejede.

Více/ménně na http://www.linuxtv.org/wiki/index.php/Saa7162_devices#Pinnacle_PCTV_Dual_Hybrid_Pro (http://www.linuxtv.org/wiki/index.php/Saa7162_devices#Pinnacle_PCTV_Dual_Hybrid_Pro).
Odtud mám driver: http://marc.info/?l=linux-dvb&m=122729999014286&w=2 (http://marc.info/?l=linux-dvb&m=122729999014286&w=2)
Název: Re: TV karta Pinnacle PCTV Dual Hybrid Pro 3310ix
Přispěvatel: Roman Vacho 21 Března 2009, 16:36:32
Snad to tu v budoucnu někdo/něco vyřeší. Dnes jsem prolízal internet a našel plno zoufalců jako jsem já :) Akorát nezkoušeli ani kompilovat ovladače. Posty byly i z letošního roku :(
Název: Re: TV karta Pinnacle PCTV Dual Hybrid Pro 3310ix
Přispěvatel: Martin Kiklhorn 06 Dubna 2009, 08:00:16
vidím že to používá i modul tda1004x,
Něco s čípem TDA10046 jsem nedavno rozcházel.
Máte stažené firmware? (resp. projděte si dmesg jestli o firmware něco nepíše)

Kód: [Vybrat]
nano /usr/src/linux/Documentation/dvb/get_dvb_firmwareupravit v něm cestu která je pro tda10046 nefunkční (změnit v sekci sub tda10046
Kód: [Vybrat]
        my $url = "http://technotrend-online.com/download/software/219/$sourcefile";na
Kód: [Vybrat]
        my $url = "http://www.tt-download.com/download/updates/219/$sourcefile";upravit práva skriptu, stáhnout a překopírovat do firmware
Kód: [Vybrat]
chmod +x /usr/src/linux/Documentation/dvb/get_dvb_firmware
/usr/src/linux/Documentation/dvb/get_dvb_firmware tda10046
/usr/src/linux/Documentation/dvb/get_dvb_firmware tda10045
cp dvb-fe-tda1004* /lib/firmware/


Citace
Moduly mi jdou načíst pomocí modprobe, ale jen když jsme v daném adresáři kde je modul.
to znamená v /lib/modules/2.6.28-9-generic/kernel/drivers/media/dvb/* ?
Nebo jste neměl práva pro zápis a staré moduly se nesmazaly a nové nenakopírovaly ?
Název: Re: TV karta Pinnacle PCTV Dual Hybrid Pro 3310ix
Přispěvatel: Roman Vacho 06 Dubna 2009, 21:14:39
Provázání:
http://forum.ubuntu.cz/index.php/topic,17860.0.html (http://forum.ubuntu.cz/index.php/topic,17860.0.html)
http://forum.ubuntu.cz/index.php/topic,18105.0.html (http://forum.ubuntu.cz/index.php/topic,18105.0.html)

Stažený fw nemám. Jen jsem četl něco o kuchání fw z windowsáckých ovladačů.
Mám zkompilovaný ten ovladač.
Manuálně načítám:
Kód: [Vybrat]
dusan@dusan-desktop:~$ sudo modprobe dvb-core
dusan@dusan-desktop:~$ sudo modprobe saa716x_ff
dusan@dusan-desktop:~$ sudo modprobe saa716x_hybrid
dusan@dusan-desktop:~$ sudo modprobe saa716x_budget
dusan@dusan-desktop:~$ sudo modprobe saa716x_core
dusan@dusan-desktop:~$ sudo modprobe lgdt330x
dusan@dusan-desktop:~$ sudo modprobe zl10353
dusan@dusan-desktop:~$ sudo modprobe isl6423
dusan@dusan-desktop:~$ sudo modprobe tda1004x
dusan@dusan-desktop:~$ sudo modprobe mb86a16
dusan@dusan-desktop:~$ sudo modprobe stv090x
dusan@dusan-desktop:~$ sudo modprobe mt352
dusan@dusan-desktop:~$ lsmod
Module                  Size  Used by
mt352                  14468  0
isl6423                10624  0
zl10353                15496  0
lgdt330x               16388  0
saa716x_budget         15624  0
mb86a16                28672  1 saa716x_budget
saa716x_hybrid         17800  0
tda1004x               24068  1 saa716x_hybrid
saa716x_ff             23688  0
saa716x_core           65460  3 saa716x_budget,saa716x_hybrid,saa716x_ff
stv090x                52884  1 saa716x_ff
dvb_core               96128  4 lgdt330x,saa716x_hybrid,saa716x_ff,saa716x_core
binfmt_misc            16776  1
ppdev                  15620  0
radeon                342816  2
drm                    96296  3 radeon
bridge                 56340  0
stp                    10500  1 bridge
bnep                   20224  2
input_polldev          11912  0
video                  25360  0
output                 11008  1 video
lp                     17156  0
parport                42220  2 ppdev,lp
snd_hda_intel         435636  3
snd_pcm_oss            46336  0
snd_mixer_oss          22656  1 snd_pcm_oss
snd_pcm                82948  2 snd_hda_intel,snd_pcm_oss
snd_seq_dummy          10756  0
snd_seq_oss            37760  0
snd_seq_midi           14336  0
snd_rawmidi            29696  1 snd_seq_midi
snd_seq_midi_event     15104  2 snd_seq_oss,snd_seq_midi
snd_seq                56880  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              29704  2 snd_pcm,snd_seq
snd_seq_device         14988  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd                    62628  15 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
pcspkr                 10496  0
iTCO_wdt               19108  0
iTCO_vendor_support    11652  1 iTCO_wdt
soundcore              15200  1 snd
snd_page_alloc         16904  2 snd_hda_intel,snd_pcm
intel_agp              34108  0
agpgart                42696  2 drm,intel_agp
usbhid                 42336  0
sky2                   54916  0
floppy                 64324  0
vesafb                 13828  1
fbcon                  46112  72
tileblit               10752  1 fbcon
font                   16384  1 fbcon
bitblit                13824  1 fbcon
softcursor              9984  1 bitblit

Dmesg grep saa nic.
V linux/verze_kernelu+Documentation žádný DVB adresář není.
Je tam:
Kód: [Vybrat]
dusan@dusan-desktop:/usr/src/linux-headers-2.6.28-11$ dir
arch Documentation  fs ipc lib  net   security  usr
block drivers        include Kbuild Makefile  samples  sound
crypto firmware       init kernel mm  scripts  ubuntu
dusan@dusan-desktop:/usr/src/linux-headers-2.6.28-11$ cd ..
dusan@dusan-desktop:/usr/src$ cd linux-headers-2.6.28-11-generic
dusan@dusan-desktop:/usr/src/linux-headers-2.6.28-11-generic$ dir
arch       drivers init lib net   sound
block       firmware  ipc Makefile samples   ubuntu
crypto       fs Kbuild  mm scripts   usr
Documentation  include kernel  Module.symvers  security
dusan@dusan-desktop:/usr/src/linux-headers-2.6.28-11-generic$

Ve firmware adresáři je jen makefile.



vidím že to používá i modul tda1004x,
Něco s čípem TDA10046 jsem nedavno rozcházel.
Máte stažené firmware? (resp. projděte si dmesg jestli o firmware něco nepíše)

Kód: [Vybrat]
nano /usr/src/linux/Documentation/dvb/get_dvb_firmwareupravit v něm cestu která je pro tda10046 nefunkční (změnit v sekci sub tda10046
Kód: [Vybrat]
       my $url = "http://technotrend-online.com/download/software/219/$sourcefile";na
Kód: [Vybrat]
       my $url = "http://www.tt-download.com/download/updates/219/$sourcefile";upravit práva skriptu, stáhnout a překopírovat do firmware
Kód: [Vybrat]
chmod +x /usr/src/linux/Documentation/dvb/get_dvb_firmware
/usr/src/linux/Documentation/dvb/get_dvb_firmware tda10046
/usr/src/linux/Documentation/dvb/get_dvb_firmware tda10045
cp dvb-fe-tda1004* /lib/firmware/


Citace
Moduly mi jdou načíst pomocí modprobe, ale jen když jsme v daném adresáři kde je modul.
to znamená v /lib/modules/2.6.28-9-generic/kernel/drivers/media/dvb/* ?
Nebo jste neměl práva pro zápis a staré moduly se nesmazaly a nové nenakopírovaly ?
Toto již není třeba řešit. Na vině byla patrně opakovaná rekompilace a nekorektní odinstalování.

Mohu všech těch 12 modulů dát do načítání při startu OS? Mezi lp, fuse atd
Název: Re: TV karta Pinnacle PCTV Dual Hybrid Pro 3310ix
Přispěvatel: Martin Kiklhorn 06 Dubna 2009, 23:39:43
Dmesg grep saa nic.
V linux/verze_kernelu+Documentation žádný DVB adresář není.
Je tam:
dusan@dusan-desktop:/usr/src/linux-headers-2.6.28-11$ dir
máte tam jen hlavičkové soubory, nechcete-li instalovat zdrojáky (linix-source) tak už opravený skript dávám sem.
Kód: [Vybrat]
a3-ntb% cat /usr/src/linux-source-2.6.24/Documentation/dvb/get_dvb_firmware
#!/usr/bin/perl
#     DVB firmware extractor
#
#     (c) 2004 Andrew de Quincey
#
#     This program is free software; you can redistribute it and/or modify
#       it under the terms of the GNU General Public License as published by
#       the Free Software Foundation; either version 2 of the License, or
#       (at your option) any later version.
#
#     This program is distributed in the hope that it will be useful,
#       but WITHOUT ANY WARRANTY; without even the implied warranty of
#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#
#     GNU General Public License for more details.
#
#     You should have received a copy of the GNU General Public License
#       along with this program; if not, write to the Free Software
#       Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

use File::Temp qw/ tempdir /;
use IO::Handle;

@components = ( "sp8870", "sp887x", "tda10045", "tda10046",
                "tda10046lifeview", "av7110", "dec2000t", "dec2540t",
                "dec3000s", "vp7041", "dibusb", "nxt2002", "nxt2004",
                "or51211", "or51132_qam", "or51132_vsb", "bluebird",
                "opera1");

# Check args
syntax() if (scalar(@ARGV) != 1);
$cid = $ARGV[0];

# Do it!
for ($i=0; $i < scalar(@components); $i++) {
    if ($cid eq $components[$i]) {
        $outfile = eval($cid);
        die $@ if $@;
        print STDERR <<EOF;
Firmware $outfile extracted successfully.
Now copy it to either /usr/lib/hotplug/firmware or /lib/firmware
(depending on configuration of firmware hotplug).
EOF
        exit(0);
    }
}

# If we get here, it wasn't found
print STDERR "Unknown component \"$cid\"\n";
syntax();




# ---------------------------------------------------------------
# Firmware-specific extraction subroutines

sub sp8870 {
    my $sourcefile = "tt_Premium_217g.zip";
    my $url = "http://www.softwarepatch.pl/9999ccd06a4813cb827dbb0005071c71/$sourcefile";
    my $hash = "53970ec17a538945a6d8cb608a7b3899";
    my $outfile = "dvb-fe-sp8870.fw";
    my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);

    checkstandard();

    wgetfile($sourcefile, $url);
    unzip($sourcefile, $tmpdir);
    verify("$tmpdir/software/OEM/HE/App/boot/SC_MAIN.MC", $hash);
    copy("$tmpdir/software/OEM/HE/App/boot/SC_MAIN.MC", $outfile);

    $outfile;
}

sub sp887x {
    my $sourcefile = "Dvbt1.3.57.6.zip";
    my $url = "http://www.avermedia.com/software/$sourcefile";
    my $cabfile = "DVBT Net  Ver1.3.57.6/disk1/data1.cab";
    my $hash = "237938d53a7f834c05c42b894ca68ac3";
    my $outfile = "dvb-fe-sp887x.fw";
    my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);

    checkstandard();
    checkunshield();

    wgetfile($sourcefile, $url);
    unzip($sourcefile, $tmpdir);
    unshield("$tmpdir/$cabfile", $tmpdir);
    verify("$tmpdir/ZEnglish/sc_main.mc", $hash);
    copy("$tmpdir/ZEnglish/sc_main.mc", $outfile);

    $outfile;
}

sub tda10045 {
    my $sourcefile = "tt_budget_217g.zip";
    my $url = "http://www.technotrend.de/new/217g/$sourcefile";
    my $hash = "2105fd5bf37842fbcdfa4bfd58f3594a";
    my $outfile = "dvb-fe-tda10045.fw";
    my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);

    checkstandard();

    wgetfile($sourcefile, $url);
    unzip($sourcefile, $tmpdir);
    extract("$tmpdir/software/OEM/PCI/App/ttlcdacc.dll", 0x37ef9, 30555, "$tmpdir/fwtmp");
    verify("$tmpdir/fwtmp", $hash);
    copy("$tmpdir/fwtmp", $outfile);

    $outfile;
}

sub tda10046 {
        my $sourcefile = "TT_PCI_2.19h_28_11_2006.zip";
        my $url = "http://www.tt-download.com/download/updates/219/$sourcefile";
        my $hash = "6a7e1e2f2644b162ff0502367553c72d";
        my $outfile = "dvb-fe-tda10046.fw";
        my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);

        checkstandard();

        wgetfile($sourcefile, $url);
        unzip($sourcefile, $tmpdir);
        extract("$tmpdir/TT_PCI_2.19h_28_11_2006/software/OEM/PCI/App/ttlcdacc.dll", 0x65389, 24478, "$tmpdir/fwtmp");
        verify("$tmpdir/fwtmp", $hash);
        copy("$tmpdir/fwtmp", $outfile);

        $outfile;
}

sub tda10046lifeview {
    my $sourcefile = "Drv_2.11.02.zip";
    my $url = "http://www.lifeview.com.tw/drivers/pci_card/FlyDVB-T/$sourcefile";
    my $hash = "1ea24dee4eea8fe971686981f34fd2e0";
    my $outfile = "dvb-fe-tda10046.fw";
    my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);

    checkstandard();

    wgetfile($sourcefile, $url);
    unzip($sourcefile, $tmpdir);
    extract("$tmpdir/LVHybrid.sys", 0x8b088, 24602, "$tmpdir/fwtmp");
    verify("$tmpdir/fwtmp", $hash);
    copy("$tmpdir/fwtmp", $outfile);

    $outfile;
}

sub av7110 {
    my $sourcefile = "dvb-ttpci-01.fw-261d";
    my $url = "http://www.linuxtv.org/downloads/firmware/$sourcefile";
    my $hash = "603431b6259715a8e88f376a53b64e2f";
    my $outfile = "dvb-ttpci-01.fw";

    checkstandard();

    wgetfile($sourcefile, $url);
    verify($sourcefile, $hash);
    copy($sourcefile, $outfile);

    $outfile;
}

sub dec2000t {
    my $sourcefile = "dec217g.exe";
    my $url = "http://hauppauge.lightpath.net/de/$sourcefile";
    my $hash = "bd86f458cee4a8f0a8ce2d20c66215a9";
    my $outfile = "dvb-ttusb-dec-2000t.fw";
    my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);

    checkstandard();

    wgetfile($sourcefile, $url);
    unzip($sourcefile, $tmpdir);
    verify("$tmpdir/software/OEM/STB/App/Boot/STB_PC_T.bin", $hash);
    copy("$tmpdir/software/OEM/STB/App/Boot/STB_PC_T.bin", $outfile);

    $outfile;
}

sub dec2540t {
    my $sourcefile = "dec217g.exe";
    my $url = "http://hauppauge.lightpath.net/de/$sourcefile";
    my $hash = "53e58f4f5b5c2930beee74a7681fed92";
    my $outfile = "dvb-ttusb-dec-2540t.fw";
    my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);

    checkstandard();

    wgetfile($sourcefile, $url);
    unzip($sourcefile, $tmpdir);
    verify("$tmpdir/software/OEM/STB/App/Boot/STB_PC_X.bin", $hash);
    copy("$tmpdir/software/OEM/STB/App/Boot/STB_PC_X.bin", $outfile);

    $outfile;
}

sub dec3000s {
    my $sourcefile = "dec217g.exe";
    my $url = "http://hauppauge.lightpath.net/de/$sourcefile";
    my $hash = "b013ececea83f4d6d8d2a29ac7c1b448";
    my $outfile = "dvb-ttusb-dec-3000s.fw";
    my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);

    checkstandard();

    wgetfile($sourcefile, $url);
    unzip($sourcefile, $tmpdir);
    verify("$tmpdir/software/OEM/STB/App/Boot/STB_PC_S.bin", $hash);
    copy("$tmpdir/software/OEM/STB/App/Boot/STB_PC_S.bin", $outfile);

    $outfile;
}
sub opera1{
        my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 0);

        checkstandard();
        my $fwfile1="dvb-usb-opera1-fpga-01.fw";
        my $fwfile2="dvb-usb-opera-01.fw";
        extract("2830SCap2.sys", 0x62e8, 55024, "$tmpdir/opera1-fpga.fw");
        extract("2830SLoad2.sys",0x3178,0x3685-0x3178,"$tmpdir/fw1part1");
        extract("2830SLoad2.sys",0x0980,0x3150-0x0980,"$tmpdir/fw1part2");
        delzero("$tmpdir/fw1part1","$tmpdir/fw1part1-1");
        delzero("$tmpdir/fw1part2","$tmpdir/fw1part2-1");
        verify("$tmpdir/fw1part1-1","5e0909858fdf0b5b09ad48b9fe622e70");
        verify("$tmpdir/fw1part2-1","d6e146f321427e931df2c6fcadac37a1");
        verify("$tmpdir/opera1-fpga.fw","0f8133f5e9051f5f3c1928f7e5a1b07d");

        my $RES1="\x01\x92\x7f\x00\x01\x00";
        my $RES0="\x01\x92\x7f\x00\x00\x00";
        my $DAT1="\x01\x00\xe6\x00\x01\x00";
        my $DAT0="\x01\x00\xe6\x00\x00\x00";
        open FW,">$tmpdir/opera.fw";
        print FW "$RES1";
        print FW "$DAT1";
        print FW "$RES1";
        print FW "$DAT1";
        appendfile(FW,"$tmpdir/fw1part1-1");
        print FW "$RES0";
        print FW "$DAT0";
        print FW "$RES1";
        print FW "$DAT1";
        appendfile(FW,"$tmpdir/fw1part2-1");
        print FW "$RES1";
        print FW "$DAT1";
        print FW "$RES0";
        print FW "$DAT0";
        copy ("$tmpdir/opera1-fpga.fw",$fwfile1);
        copy ("$tmpdir/opera.fw",$fwfile2);

        $fwfile1.",".$fwfile2;
}

sub vp7041 {
    my $sourcefile = "2.422.zip";
    my $url = "http://www.twinhan.com/files/driver/USB-Ter/$sourcefile";
    my $hash = "e88c9372d1f66609a3e7b072c53fbcfe";
    my $outfile = "dvb-vp7041-2.422.fw";
    my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);

    checkstandard();

    wgetfile($sourcefile, $url);
    unzip($sourcefile, $tmpdir);
    extract("$tmpdir/VisionDTV/Drivers/Win2K&XP/UDTTload.sys", 12503, 3036, "$tmpdir/fwtmp1");
    extract("$tmpdir/VisionDTV/Drivers/Win2K&XP/UDTTload.sys", 2207, 10274, "$tmpdir/fwtmp2");

    my $CMD = "\000\001\000\222\177\000";
    my $PAD = "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000";
    my ($FW);
    open $FW, ">$tmpdir/fwtmp3";
    print $FW "$CMD\001$PAD";
    print $FW "$CMD\001$PAD";
    appendfile($FW, "$tmpdir/fwtmp1");
    print $FW "$CMD\000$PAD";
    print $FW "$CMD\001$PAD";
    appendfile($FW, "$tmpdir/fwtmp2");
    print $FW "$CMD\001$PAD";
    print $FW "$CMD\000$PAD";
    close($FW);

    verify("$tmpdir/fwtmp3", $hash);
    copy("$tmpdir/fwtmp3", $outfile);

    $outfile;
}

sub dibusb {
        my $url = "http://www.linuxtv.org/downloads/firmware/dvb-usb-dibusb-5.0.0.11.fw";
        my $outfile = "dvb-dibusb-5.0.0.11.fw";
        my $hash = "fa490295a527360ca16dcdf3224ca243";

        checkstandard();

        wgetfile($outfile, $url);
        verify($outfile,$hash);

        $outfile;
}

sub nxt2002 {
    my $sourcefile = "Technisat_DVB-PC_4_4_COMPACT.zip";
    my $url = "http://www.bbti.us/download/windows/$sourcefile";
    my $hash = "476befae8c7c1bb9648954060b1eec1f";
    my $outfile = "dvb-fe-nxt2002.fw";
    my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);

    checkstandard();

    wgetfile($sourcefile, $url);
    unzip($sourcefile, $tmpdir);
    verify("$tmpdir/SkyNET.sys", $hash);
    extract("$tmpdir/SkyNET.sys", 331624, 5908, $outfile);

    $outfile;
}

sub nxt2004 {
    my $sourcefile = "AVerTVHD_MCE_A180_Drv_v1.2.2.16.zip";
    my $url = "http://www.aver.com/support/Drivers/$sourcefile";
    my $hash = "111cb885b1e009188346d72acfed024c";
    my $outfile = "dvb-fe-nxt2004.fw";
    my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);

    checkstandard();

    wgetfile($sourcefile, $url);
    unzip($sourcefile, $tmpdir);
    verify("$tmpdir/3xHybrid.sys", $hash);
    extract("$tmpdir/3xHybrid.sys", 465304, 9584, $outfile);

    $outfile;
}

sub or51211 {
    my $fwfile = "dvb-fe-or51211.fw";
    my $url = "http://linuxtv.org/downloads/firmware/$fwfile";
    my $hash = "d830949c771a289505bf9eafc225d491";

    checkstandard();

    wgetfile($fwfile, $url);
    verify($fwfile, $hash);

    $fwfile;
}

sub or51132_qam {
    my $fwfile = "dvb-fe-or51132-qam.fw";
    my $url = "http://linuxtv.org/downloads/firmware/$fwfile";
    my $hash = "7702e8938612de46ccadfe9b413cb3b5";

    checkstandard();

    wgetfile($fwfile, $url);
    verify($fwfile, $hash);

    $fwfile;
}

sub or51132_vsb {
    my $fwfile = "dvb-fe-or51132-vsb.fw";
    my $url = "http://linuxtv.org/downloads/firmware/$fwfile";
    my $hash = "c16208e02f36fc439a557ad4c613364a";

    checkstandard();

    wgetfile($fwfile, $url);
    verify($fwfile, $hash);

    $fwfile;
}

sub bluebird {
        my $url = "http://www.linuxtv.org/download/dvb/firmware/dvb-usb-bluebird-01.fw";
        my $outfile = "dvb-usb-bluebird-01.fw";
        my $hash = "658397cb9eba9101af9031302671f49d";

        checkstandard();

        wgetfile($outfile, $url);
        verify($outfile,$hash);

        $outfile;
}

# ---------------------------------------------------------------
# Utilities

sub checkstandard {
    if (system("which unzip > /dev/null 2>&1")) {
        die "This firmware requires the unzip command - see ftp://ftp.info-zip.org/pub/infozip/UnZip.html\n";
    }
    if (system("which md5sum > /dev/null 2>&1")) {
        die "This firmware requires the md5sum command - see http://www.gnu.org/software/coreutils/\n";
    }
    if (system("which wget > /dev/null 2>&1")) {
        die "This firmware requires the wget command - see http://wget.sunsite.dk/\n";
    }
}

sub checkunshield {
    if (system("which unshield > /dev/null 2>&1")) {
        die "This firmware requires the unshield command - see http://sourceforge.net/projects/synce/\n";
    }
}

sub wgetfile {
    my ($sourcefile, $url) = @_;

    if (! -f $sourcefile) {
        system("wget -O \"$sourcefile\" \"$url\"") and die "wget failed - unable to download firmware";
    }
}

sub unzip {
    my ($sourcefile, $todir) = @_;

    $status = system("unzip -q -o -d \"$todir\" \"$sourcefile\" 2>/dev/null" );
    if ((($status >> 8) > 2) || (($status & 0xff) != 0)) {
        die ("unzip failed - unable to extract firmware");
    }
}

sub unshield {
    my ($sourcefile, $todir) = @_;

    system("unshield x -d \"$todir\" \"$sourcefile\" > /dev/null" ) and die ("unshield failed - unable to extract firmware");
}

sub verify {
    my ($filename, $hash) = @_;
    my ($testhash);

    open(CMD, "md5sum \"$filename\"|");
    $testhash = <CMD>;
    $testhash =~ /([a-zA-Z0-9]*)/;
    $testhash = $1;
    close CMD;
    die "Hash of extracted file does not match!\n" if ($testhash ne $hash);
}

sub copy {
    my ($from, $to) = @_;

    system("cp -f \"$from\" \"$to\"") and die ("cp failed");
}

sub extract {
    my ($infile, $offset, $length, $outfile) = @_;
    my ($chunklength, $buf, $rcount);

    open INFILE, "<$infile";
    open OUTFILE, ">$outfile";
    sysseek(INFILE, $offset, SEEK_SET);
    while($length > 0) {
        # Calc chunk size
        $chunklength = 2048;
        $chunklength = $length if ($chunklength > $length);

        $rcount = sysread(INFILE, $buf, $chunklength);
        die "Ran out of data\n" if ($rcount != $chunklength);
        syswrite(OUTFILE, $buf);
        $length -= $rcount;
    }
    close INFILE;
    close OUTFILE;
}

sub appendfile {
    my ($FH, $infile) = @_;
    my ($buf);

    open INFILE, "<$infile";
    while(1) {
        $rcount = sysread(INFILE, $buf, 2048);
        last if ($rcount == 0);
        print $FH $buf;
    }
    close(INFILE);
}

sub delzero{
        my ($infile,$outfile) =@_;

        open INFILE,"<$infile";
        open OUTFILE,">$outfile";
        while (1){
                $rcount=sysread(INFILE,$buf,22);
                $len=ord(substr($buf,0,1));
                print OUTFILE substr($buf,0,1);
                print OUTFILE substr($buf,2,$len+3);
        last if ($rcount<1);
        printf OUTFILE "%c",0;
#print $len." ".length($buf)."\n";

        }
        close(INFILE);
        close(OUTFILE);
}

sub syntax() {
    print STDERR "syntax: get_dvb_firmware <component>\n";
    print STDERR "Supported components:\n";
    for($i=0; $i < scalar(@components); $i++) {
        print STDERR "\t" . $components[$i] . "\n";
    }
    exit(1);
}


Mohu všech těch 12 modulů dát do načítání při startu OS? Mezi lp, fuse atd
Kód: [Vybrat]
a3-ntb% cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

loop
lp
fuse
uinput
pciehp

# Generated by sensors-detect on Mon Nov  3 02:28:18 2008
# Chip drivers
coretemp
a projděte si i /etc/modprobe.d/*
Název: Re: TV karta Pinnacle PCTV Dual Hybrid Pro 3310ix
Přispěvatel: Paulos 11 Dubna 2009, 14:03:36
Jsem z toho trošku zmatený. Moduly jsem do /etc/modules zapsal, spouštějí se. Firmware pro tda1004x asi mám (stáhnul a nainstaloval jsem jej), ale stejně nic nefunguje. Žádný televizní program nedokáže detekovat kartu., /dev/dvb neexistuje a já jsem v tomhle lama ;D Bohužel jsem žádné přijatelné řešení nenašel, dmesg je hluchoněmý, lspci píše pořád to samé a výsledek nikde :(

viz. http://forum.ubuntu.cz/index.php/topic,18105.0.html
Název: Re: TV karta Pinnacle PCTV Dual Hybrid Pro 3310ix
Přispěvatel: Roman Vacho 09 Června 2009, 18:36:06
Před 2 dny v developmentu vyšla nová verze driveru.
Jak je to s firmwarem nevím. Budu moci testovat až o víkendu.
Název: Re: TV karta Pinnacle PCTV Dual Hybrid Pro 3310ix
Přispěvatel: Jirka RCK 31 Března 2011, 17:41:58
Dobrý den, vídím, že je to už přes rok staré vlákno, tak bych to chtěl obnovit a zeptat se, jestli "se" to už nějak nevyřešilo :-)  V Linuxech jsem začátečník a neoživená TV karta je poslední věc, která mě nutí spolu s Ubuntu vydržovat wokna...je to opravdu škoda... :-(
Název: Re: TV karta Pinnacle PCTV Dual Hybrid Pro 3310ix
Přispěvatel: kola12345 31 Března 2011, 19:09:54
mam kartu pctv pci 310i, bez problemu vsetko ide  parada, samozrejme cez me tv + epg
cau
Název: Re: TV karta Pinnacle PCTV Dual Hybrid Pro 3310ix
Přispěvatel: Roman Vacho 02 Dubna 2011, 21:51:23
mam kartu pctv pci 310i, bez problemu vsetko ide  parada, samozrejme cez me tv + epg
cau

Máš úplně jiný typ karty.

Nemám již 3310iX...nevím.