Hjälp med installation av Twinhan DVB-T + Ci

I detta forum diskuterar vi frågor relaterade till fysisk hårdvara.
Ubunturelaterade frågor ska ställas i Hårdvara
Kategoriregler
I detta forum diskuterar vi frågor relaterade till fysisk hårdvara.
Ubunturelaterade frågor ska ställas i Hårdvara
Gryvel
Inlägg: 2
Blev medlem: 22 apr 2008, 22:49
OS: Ubuntu
Utgåva: 12.04 Precise Pangolin LTS

Hjälp med installation av Twinhan DVB-T + Ci

Inlägg av Gryvel »

Hej!

Totalt grön på linux tänkte jag prova mythtv. Sagt och gjort införskaffade jag 2 st Twinhan DVB-T kort AD-TP300(3030) och laddade ner AZLinux_v1.4.2_CI_FC6 från http://www.twinhan.com/download_driver&software.asp.

I readmefilen står detta:
1) Install Linux DVB API applications and utilities
$ cd dvb-apps-997424a1799e
$ make clean
$ make
$ make install
$ cd ..

2) Install Azurewave card driver
$ cd linuxdriver
$ make rmmod
$ make insmod

Resultatet av /dvb-apps-997424a1799e$ make
blir:
----------------------------------------------------------------------------------------------
make -C lib all
make[1]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib'
make -C libdvbapi all
make[2]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib/libdvbapi'
CC dvbaudio.o
CC dvbca.o
CC dvbdemux.o
CC dvbfe.o
CC dvbnet.o
CC dvbvideo.o
I fil inkluderad från dvbvideo.c:28:
../../include/linux/dvb/video.h:27:28: varning: linux/compiler.h: Filen eller katalogen finns inte
LD libdvbapi.so
AR libdvbapi.a
make[2]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib/libdvbapi'
make -C libdvbsec all
make[2]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib/libdvbsec'
CC dvbsec_api.o
CC dvbsec_cfg.o
LD libdvbsec.so
AR libdvbsec.a
make[2]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib/libdvbsec'
make -C libdvbcfg all
make[2]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib/libdvbcfg'
CC dvbcfg_zapchannel.o
LD libdvbcfg.so
AR libdvbcfg.a
make[2]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib/libdvbcfg'
make -C libdvben50221 all
make[2]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib/libdvben50221'
CC asn_1.o
CC en50221_app_ai.o
CC en50221_app_auth.o
CC en50221_app_ca.o
CC en50221_app_datetime.o
CC en50221_app_dvb.o
CC en50221_app_epg.o
CC en50221_app_lowspeed.o
CC en50221_app_mmi.o
CC en50221_app_rm.o
CC en50221_app_smartcard.o
CC en50221_app_teletext.o
CC en50221_app_utils.o
CC en50221_session.o
CC en50221_stdcam.o
CC en50221_stdcam_hlci.o
CC en50221_stdcam_llci.o
CC en50221_transport.o
LD libdvben50221.so
AR libdvben50221.a
make[2]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib/libdvben50221'
make -C libucsi all
make[2]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib/libucsi'
CC crc32.o
CC section_buf.o
CC transport_packet.o
CC atsc/atsc_text.o
CC atsc/cvct_section.o
CC atsc/dccsct_section.o
CC atsc/dcct_section.o
CC atsc/eit_section.o
CC atsc/ett_section.o
CC atsc/mgt_section.o
CC atsc/rrt_section.o
CC atsc/stt_section.o
CC atsc/tvct_section.o
CC atsc/types.o
CC dvb/bat_section.o
CC dvb/dit_section.o
CC dvb/eit_section.o
CC dvb/int_section.o
CC dvb/nit_section.o
CC dvb/rst_section.o
CC dvb/sdt_section.o
CC dvb/sit_section.o
CC dvb/st_section.o
CC dvb/tdt_section.o
CC dvb/tot_section.o
CC dvb/tva_container_section.o
CC dvb/types.o
CC mpeg/cat_section.o
CC mpeg/metadata_section.o
CC mpeg/odsmt_section.o
CC mpeg/pat_section.o
CC mpeg/pmt_section.o
CC mpeg/tsdt_section.o
LD libucsi.so
AR libucsi.a
make[2]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib/libucsi'
make[1]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib'
make -C test all
make[1]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/test'
CC hex_dump.o
CC diseqc
CC sendburst
CC set22k
CC setpid
CC setvoltage
CC test_av
I fil inkluderad från test_av.c:34:
../include/linux/dvb/video.h:27:28: varning: linux/compiler.h: Filen eller katalogen finns inte
CC test_av_play
I fil inkluderad från test_av_play.c:46:
../include/linux/dvb/video.h:27:28: varning: linux/compiler.h: Filen eller katalogen finns inte
CC test_dvr
CC test_dvr_play
CC test_pes
CC test_sec_ne
CC test_sections
CC test_stc
CC test_stillimage
I fil inkluderad från test_stillimage.c:24:
../include/linux/dvb/video.h:27:28: varning: linux/compiler.h: Filen eller katalogen finns inte
CC test_tt
CC test_vevent
I fil inkluderad från test_vevent.c:32:
../include/linux/dvb/video.h:27:28: varning: linux/compiler.h: Filen eller katalogen finns inte
CC video
make -C libdvbcfg all
make[2]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/test/libdvbcfg'
CC dvbcfg_test
make[2]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/test/libdvbcfg'
make -C libdvben50221 all
make[2]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/test/libdvben50221'
CC test-app
CC test-session
CC test-transport
make[2]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/test/libdvben50221'
make -C libucsi all
make[2]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/test/libucsi'
CC testucsi
make[2]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/test/libucsi'
make[1]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/test'
make -C util all
make[1]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/util'
make -C av7110_loadkeys all
make[2]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/util/av7110_loadkeys'
/bin/sh generate-keynames.sh input_keynames.h
generate input_keynames.h...
CC av7110_loadkeys
CC evtest
make[2]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/util/av7110_loadkeys'
make -C dib3000-watch all
make[2]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/util/dib3000-watch'
CC dib3000-watch
make[2]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/util/dib3000-watch'
make -C dst-utils all
make[2]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/util/dst-utils'
CC dst_test
make[2]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/util/dst-utils'
make -C dvbdate all
make[2]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/util/dvbdate'
CC dvbdate
/usr/bin/ld: dvbdate: hidden symbol `__stack_chk_fail_local' in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returnerade avslutningsstatus 1
make[2]: *** [dvbdate] Fel 1
make[2]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/util/dvbdate'
make[1]: *** [all] Fel 2
make[1]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/util'
make: *** [all] Fel 2

----------------------------------------------------------------------------------------------

Med hopp om att det räcker med bara drivrutinen för att korten skall funka i mythtv provar jag att installera drivrutinen:
niklas@ubuntu:~/AZLinux_v1.4.2_CI_FC6/linuxdriver$ make rmmod
make -C /home/niklas/AZLinux_v1.4.2_CI_FC6/linuxdriver/v4l rmmod
make[1]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/linuxdriver/v4l'
scripts/make_makefile.pl /lib/modules/2.6.18-1.2798.fc6/build
scripts/rmmod.pl unload
found 35 modules
make[1]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/linuxdriver/v4l'

Och sen insmod:
niklas@ubuntu:~/AZLinux_v1.4.2_CI_FC6/linuxdriver$ sudo make insmod
[sudo] password for niklas:
make -C /home/niklas/AZLinux_v1.4.2_CI_FC6/linuxdriver/v4l insmod
make[1]: Entering directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/linuxdriver/v4l'
scripts/make_makefile.pl /lib/modules/2.6.18-1.2798.fc6/build
scripts/rmmod.pl load
found 35 modules
/sbin/modprobe i2c-algo-bit
/sbin/modprobe lgdt330x
/sbin/modprobe i2c-core
/sbin/modprobe nxt200x
/sbin/insmod ./zl10353.ko
insmod: error inserting './zl10353.ko': -1 Invalid module format
/sbin/insmod ./mb86a16.ko
insmod: error inserting './mb86a16.ko': -1 Invalid module format
/sbin/insmod ./btcx-risc.ko
insmod: error inserting './btcx-risc.ko': -1 Invalid module format
/sbin/insmod ./ir-common.ko
insmod: error inserting './ir-common.ko': -1 Invalid module format
/sbin/insmod ./cu1216.ko
insmod: error inserting './cu1216.ko': -1 Invalid module format
/sbin/insmod ./isl6421.ko
insmod: error inserting './isl6421.ko': -1 Invalid module format
/sbin/insmod ./nxt6000.ko
insmod: error inserting './nxt6000.ko': -1 Invalid module format
/sbin/insmod ./tveeprom.ko
insmod: error inserting './tveeprom.ko': -1 Invalid module format
/sbin/insmod ./or51211.ko
insmod: error inserting './or51211.ko': -1 Invalid module format
/sbin/insmod ./dvb-core.ko
insmod: error inserting './dvb-core.ko': -1 Invalid module format
/sbin/insmod ./cx24123.ko
insmod: error inserting './cx24123.ko': -1 Invalid module format
/sbin/insmod ./v4l1-compat.ko
insmod: error inserting './v4l1-compat.ko': -1 Invalid module format
/sbin/insmod ./sp8870.ko
insmod: error inserting './sp8870.ko': -1 Invalid module format
/sbin/insmod ./mt352.ko
insmod: error inserting './mt352.ko': -1 Invalid module format
/sbin/insmod ./video-buf.ko
insmod: error inserting './video-buf.ko': -1 Invalid module format
/sbin/insmod ./compat_ioctl32.ko
insmod: error inserting './compat_ioctl32.ko': -1 Invalid module format
/sbin/insmod ./cx22700.ko
insmod: error inserting './cx22700.ko': -1 Invalid module format
/sbin/insmod ./cx22702.ko
insmod: error inserting './cx22702.ko': -1 Invalid module format
/sbin/insmod ./dvb-pll.ko
insmod: error inserting './dvb-pll.ko': -1 Invalid module format
/sbin/insmod ./sp887x.ko
insmod: error inserting './sp887x.ko': -1 Invalid module format
/sbin/insmod ./stb0899.ko
insmod: error inserting './stb0899.ko': -1 Invalid module format
/sbin/insmod ./or51132.ko
insmod: error inserting './or51132.ko': -1 Invalid module format
/sbin/insmod ./v4l2-common.ko
insmod: error inserting './v4l2-common.ko': -1 Invalid module format
/sbin/insmod ./cx24110.ko
insmod: error inserting './cx24110.ko': -1 Invalid module format
/sbin/insmod ./video-buf-dvb.ko
insmod: error inserting './video-buf-dvb.ko': -1 Invalid module format
/sbin/insmod ./mantis_ci.ko
insmod: error inserting './mantis_ci.ko': -1 Invalid module format
/sbin/insmod ./tuner.ko
insmod: error inserting './tuner.ko': -1 Invalid module format
/sbin/insmod ./stv0299.ko
insmod: error inserting './stv0299.ko': -1 Invalid module format
/sbin/insmod ./videodev.ko
insmod: error inserting './videodev.ko': -1 Invalid module format
/sbin/insmod ./msp3400.ko
insmod: error inserting './msp3400.ko': -1 Invalid module format
/sbin/insmod ./mantis.ko
insmod: error inserting './mantis.ko': -1 Invalid module format
/sbin/insmod ./cx88xx.ko
insmod: error inserting './cx88xx.ko': -1 Invalid module format
/sbin/insmod ./cx8802.ko
insmod: error inserting './cx8802.ko': -1 Invalid module format
/sbin/insmod ./cx8800.ko
insmod: error inserting './cx8800.ko': -1 Invalid module format
/sbin/insmod ./cx88-dvb.ko
insmod: error inserting './cx88-dvb.ko': -1 Invalid module format
make[1]: Leaving directory `/home/niklas/AZLinux_v1.4.2_CI_FC6/linuxdriver/v4l'


Vad betyder -1 Invalid module format och vad kan jag göra åt detta?
Jag är som sagt grön på linux så all hjälp är välkommen!

/Niklas
Lars
Inlägg: 6191
Blev medlem: 14 jan 2007, 19:31
OS: Ubuntu
Utgåva: 22.10 Kinetic Kudu
Ort: Stockholm

Re: Hjälp med installation av Twinhan DVB-T + Ci

Inlägg av Lars »

Hej, välkommen till Ubuntu-se :)

"Invalid module format" verkar ju vara ett tydligt tecken på att kompileringen gick fel. Det går säkert att fixa, men jag tänker rekommendera en annan lösning istället. På torsdag så släpps Ubuntu 8.04 och där finns den här drivrutinen med från start. Om du kan vänta några dagar så blir du upplyst om att det finns en ny utgåva tillgänglig, eller så kan du uppgradera redan nu genom att trycka alt+F2 och köra update-manager -d.
Användarvisningsbild
Daniel Nylander
Inlägg: 1002
Blev medlem: 21 aug 2006, 14:57
OS: Ubuntu
Utgåva: 23.10 Mantic Minotaur
Ort: Stockholm
Kontakt:

Re: Hjälp med installation av Twinhan DVB-T + Ci

Inlägg av Daniel Nylander »

Är du säker på att det kortet fungerar? FC6 betyder väl Fedore Core 6 (stenålder)?
Läst in modulen dvb_bt8xx?
bjoost61
Inlägg: 411
Blev medlem: 20 aug 2007, 07:11
OS: Ubuntu
Utgåva: 20.04 Focal Fossa LTS
Ort: Slite, Gotland

Re: Hjälp med installation av Twinhan DVB-T + Ci

Inlägg av bjoost61 »

Linux DVB API...... kan du få via synaptic istället, dvb-utils heter den där.
Gryvel
Inlägg: 2
Blev medlem: 22 apr 2008, 22:49
OS: Ubuntu
Utgåva: 12.04 Precise Pangolin LTS

Re: Hjälp med installation av Twinhan DVB-T + Ci

Inlägg av Gryvel »

Tack för tipsen. Nu har jag uppdaterat till 8.04, men mythtv backend setup hittar inte något av de två korten.

niklas@ubuntu:/dev$ lspci -v
00:09.0 Multimedia controller: Twinhan Technology Co. Ltd Mantis DTV PCI Bridge Controller [Ver 1.0] (rev 01)
Subsystem: Twinhan Technology Co. Ltd Unknown device 0024
Flags: bus master, medium devsel, latency 32, IRQ 5
Memory at e9004000 (32-bit, prefetchable) [size=4K]

00:0b.0 Multimedia controller: Twinhan Technology Co. Ltd Mantis DTV PCI Bridge Controller [Ver 1.0] (rev 01)
Subsystem: Twinhan Technology Co. Ltd Unknown device 0024
Flags: bus master, medium devsel, latency 32, IRQ 11
Memory at e9005000 (32-bit, prefetchable) [size=4K]


Har även testat modprobe dvb_bt8xx, men korten dyker forfarande inte upp. Vad kan jag försöka härnäst?

/Niklas
bacchus
Inlägg: 5
Blev medlem: 13 jun 2008, 23:57
OS: Ubuntu
Utgåva: 12.04 Precise Pangolin LTS

Re: Hjälp med installation av Twinhan DVB-T + Ci

Inlägg av bacchus »

Ber att få stämma in i klagosången. Har ett 3030 kort från Twinhand som på pappret är utmärkt (DVB.T med plats för en CA modul).

Har installerat MythBuntu och den version jag har bygger väl på 8.04. Är väl inget Linuxfenomen direkt men har laddat ned drivisar, packade upp (till min desktop) och följde samma instruktioner. Jag fick dock större problem tror jag det ser ut som:

make -C lib all
make[1]: Entering directory `/home/bacchus/Desktop/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib'
make -C libdvbapi all
make[2]: Entering directory `/home/bacchus/Desktop/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib/libdvbapi'
CC dvbaudio.o
make[2]: cc: Command not found
make[2]: *** [dvbaudio.o] Error 127
make[2]: Leaving directory `/home/bacchus/Desktop/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib/libdvbapi'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/bacchus/Desktop/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/lib'
make: *** [all] Error 2


/Pontus
Användarvisningsbild
Daniel Nylander
Inlägg: 1002
Blev medlem: 21 aug 2006, 14:57
OS: Ubuntu
Utgåva: 23.10 Mantic Minotaur
Ort: Stockholm
Kontakt:

Re: Hjälp med installation av Twinhan DVB-T + Ci

Inlägg av Daniel Nylander »

Du har ingen kompilator.

Kör sudo apt-get install build-essential
NickeZ
Inlägg: 6
Blev medlem: 13 jul 2008, 15:35
OS: Ubuntu
Utgåva: 22.04 Jammy Jellyfish LTS

Re: Hjälp med installation av Twinhan DVB-T + Ci

Inlägg av NickeZ »

Jag har exakt samma kort och vill också installera det..
med hwinfo hittar jag detta avsnittet om kortet. Vad ska man göra för att den ska känna igen enheten? är det någon drivrutin som ska installeras?

Dessutom är jag ganska säker på att den drivrutinen som twinhan erbjuder är för fedora core 6 precis som Daniel Nylander skrev. Så den är nog inte mycket till hjälp.

Om någon kan berätta eller tipsa om hur man modprobar så skulle jag gärna vilja veta det.

btw är detta det ultimata kortet annars.. fungerar hur bra som helst i windows och med inbyggd CI-enhet kan man se så mycket betalkanaler man vill.

Kod: Markera allt

14: PCI 20a.0: 0480 Multimedia controller
  [Created at pci.296]
  UDI: /org/freedesktop/Hal/devices/pci_1822_4e35
  Unique ID: y9as.KqrOs7VvOiA
  Parent ID: 6NW+.92zbjSp4ZgF
  SysFS ID: /devices/pci0000:00/0000:00:1e.0/0000:02:0a.0
  SysFS BusID: 0000:02:0a.0
  Hardware Class: unknown
  Model: "Twinhan Mantis DTV PCI Bridge Controller [Ver 1.0]"
  Vendor: pci 0x1822 "Twinhan Technology Co. Ltd"
  Device: pci 0x4e35 "Mantis DTV PCI Bridge Controller [Ver 1.0]"
  SubVendor: pci 0x1822 "Twinhan Technology Co. Ltd"
  SubDevice: pci 0x0024 
  Revision: 0x01
  Memory Range: 0xdf000000-0xdf000fff (rw,prefetchable,disabled)
  Module Alias: "pci:v00001822d00004E35sv00001822sd00000024bc04sc80i00"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #24 (PCI bridge)
edit: kan inte någon flytta denna tråden till rätt forumdel? alltså en kategori upp.

edit2: Lars påstår att drivrutinen finns med i senaste ison, men jag har mythbuntu 8.04.1. så problemet kvarstår.
bacchus
Inlägg: 5
Blev medlem: 13 jun 2008, 23:57
OS: Ubuntu
Utgåva: 12.04 Precise Pangolin LTS

Re: Hjälp med installation av Twinhan DVB-T + Ci

Inlägg av bacchus »

Howdy!

Det har runnit vatten under broarna, men på denna sida har inget hänt. Har fortfarande ett Twinhan kort som på pappret ser kalas ut, men som i verkligheten inte funkar i min set-up.

Efter idogt googlande hittar jag en massa tips, som alla kokar ner till:
* Obegripliga (finska, nej tack!)
* Obegripliga (jag går vilse efter 15 sidor bit pillande i Linux disten)
* Obegripliga (personen som indtruerar är ett pedagogiskt missfoster)

Min slutsat;
- Jag har köpt ett kort värdelöst kort
- Jag har förslösat en del av min ungdom med att försöka sätta upp en HTPC baserat på Linux

Något av det - förmodligen båda - måste vara sant. :(

/Pontus
Användarvisningsbild
Daniel Nylander
Inlägg: 1002
Blev medlem: 21 aug 2006, 14:57
OS: Ubuntu
Utgåva: 23.10 Mantic Minotaur
Ort: Stockholm
Kontakt:

Re: Hjälp med installation av Twinhan DVB-T + Ci

Inlägg av Daniel Nylander »

Jag tror tyvärr att dina kort är både gamla och usla.
Sälj dom på Blocket till nån som har Windows.

http://www.linuxtv.org/wiki/index.php/DVB-T_PCI_Cards
bacchus
Inlägg: 5
Blev medlem: 13 jun 2008, 23:57
OS: Ubuntu
Utgåva: 12.04 Precise Pangolin LTS

Re: Hjälp med installation av Twinhan DVB-T + Ci

Inlägg av bacchus »

Jag har DualBoot, så alternativet som är glödhett är att ge upp Linux spåret och köra MediaPortal på min XP partition. Det funkar ju i alla fall ;-)

Hittade dock denna gamla tråd:
http://ubuntuforums.org/archive/index.php/t-450761.html

Om man kombinerar informationen i mitten och slutet så kommer man fram till ett script som der ut så här:
cd /tmp
#make sure_ krenel sources are installed
sudo apt-get install build-essential linux-headers-`uname -r`
#downloading driver
wget -c http://jusst.de/hg/mantis/archive/tip.tar.bz2

#unpacking driver
tar -xf tip.tar.bz2
#copying new dvb_net to correct directory
cp /tmp/dvb_net.c /tmp/v4l-dvb/linux/drivers/media/dvb/dvb-core/dvb_net.c
cd v4l-dvb
#run installation
make distclean
make release VER=`uname -r`
make
sudo make install


Och det gick ju förstås inte heller. Se nedan. Den gnäller något i mitten om att jag skall bygga mot vanillakärnan, vilket jag hämtade den fulla sourcen på kernel.org men typ där börjar jag tycka att hela grejen är att försöka få rullstosburna att bestiga K2 med argumentet att delar av vägen är asfalterad - denna delen var dett uppenbarligen inte :-P

bacchus@cement:~$ cd /tmp
bacchus@cement:/tmp$ sudo apt-get install build-essential linux-headers-`uname -r`
sudo: unable to resolve host cement
Läser paketlistor... Färdig
Bygger beroendeträd
Läser tillståndsinformation... Färdig
build-essential är redan den senaste versionen.
linux-headers-2.6.24-19-generic är redan den senaste versionen.
Följande paket har installerats automatiskt och är inte längre nödvändiga:
intltool-debian smbfs libdns32 libvncserver0 po-debconf gettext
localechooser-data libdebconfclient0
Använd "apt-get autoremove" för att ta bort dem.
0 uppgraderade, 0 nyinstallerade, 0 att ta bort och 0 ej uppgraderade.
bacchus@cement:/tmp$ wget -c http://jusst.de/hg/mantis/archive/tip.tar.bz2
--23:07:30-- http://jusst.de/hg/mantis/archive/tip.tar.bz2
=> `tip.tar.bz2'
Resolving jusst.de... 88.198.17.7
Connecting to jusst.de|88.198.17.7|:80... connected.
HTTP request sent, awaiting response... 200 Script output follows
Length: unspecified [application/x-tar]

100%[====================================>] 2 389 127 370.73K/s ETA 00:00

23:07:37 (367.42 KB/s) - `tip.tar.bz2' saved [2389127]

bacchus@cement:/tmp$ tar -xf tip.tar.bz2
bacchus@cement:/tmp$ cp /tmp/dvb_net.c /tmp/v4l-dvb/linux/drivers/media/dvb/dvb-core/dvb_net.c
bacchus@cement:/tmp$ cd v4l-dvb
bacchus@cement:/tmp/v4l-dvb$ make distclean
make -C /tmp/v4l-dvb/v4l distclean
make[1]: Entering directory `/tmp/v4l-dvb/v4l'
rm -f *~ *.o *.ko .*.o.cmd .*.ko.cmd *.mod.c av7110_firm.h fdump \
ivtv-svnversion.h config-compat.h
rm -f .version .*.o.flags .*.o.d Makefile.media \
Kconfig Kconfig.kern .config .config.cmd .myconfig \
.kconfig.dep
rm -rf .tmp_versions
rm -f scripts/lxdialog scripts/kconfig oss
make[1]: Leaving directory `/tmp/v4l-dvb/v4l'
bacchus@cement:/tmp/v4l-dvb$ make release VER=`uname -r`
make -C /tmp/v4l-dvb/v4l release
make[1]: Entering directory `/tmp/v4l-dvb/v4l'
No version yet.
make[1]: Leaving directory `/tmp/v4l-dvb/v4l'
make[1]: Entering directory `/tmp/v4l-dvb/v4l'
Forcing compiling to version 2.6.24-19-generic.
make[1]: Leaving directory `/tmp/v4l-dvb/v4l'
bacchus@cement:/tmp/v4l-dvb$ make
make -C /tmp/v4l-dvb/v4l
make[1]: Entering directory `/tmp/v4l-dvb/v4l'
scripts/make_makefile.pl
Updating/Creating .config
Preparing to compile for kernel version 2.6.24

***WARNING:*** You do not have the full kernel sources installed.
This does not prevent you from building the v4l-dvb tree if you have the
kernel headers, but the full kernel source may be required in order to use
make menuconfig / xconfig / qconfig.

If you are experiencing problems building the v4l-dvb tree, please try
building against a vanilla kernel before reporting a bug.

Vanilla kernels are available at http://kernel.org.
On most distros, this will compile a newly downloaded kernel:

cp /boot/config-`uname -r` <your kernel dir>/.config
cd <your kernel dir>
make all modules_install install

Please see your distro's web site for instructions to build a new kernel.

VIDEO_PLANB: Requires at least kernel 2.6.99
Created default (all yes) .config file
./scripts/make_myconfig.pl
make[1]: Leaving directory `/tmp/v4l-dvb/v4l'
make[1]: Entering directory `/tmp/v4l-dvb/v4l'
creating symbolic links...
ln -sf . oss
make -C /lib/modules/2.6.24-19-generic/build SUBDIRS=/tmp/v4l-dvb/v4l modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.24-19-generic'
CC [M] /tmp/v4l-dvb/v4l/flexcop-pci.o
CC [M] /tmp/v4l-dvb/v4l/flexcop-usb.o
CC [M] /tmp/v4l-dvb/v4l/flexcop.o
CC [M] /tmp/v4l-dvb/v4l/flexcop-fe-tuner.o
CC [M] /tmp/v4l-dvb/v4l/flexcop-i2c.o
CC [M] /tmp/v4l-dvb/v4l/flexcop-sram.o
CC [M] /tmp/v4l-dvb/v4l/flexcop-eeprom.o
CC [M] /tmp/v4l-dvb/v4l/flexcop-misc.o
CC [M] /tmp/v4l-dvb/v4l/flexcop-hw-filter.o
CC [M] /tmp/v4l-dvb/v4l/flexcop-dma.o
CC [M] /tmp/v4l-dvb/v4l/bttv-driver.o
In file included from /tmp/v4l-dvb/v4l/bttv-driver.c:41:
/tmp/v4l-dvb/v4l/bttvp.h:52:29: error: media/video-buf.h: No such file or directory
In file included from /tmp/v4l-dvb/v4l/bttv-driver.c:41:
/tmp/v4l-dvb/v4l/bttvp.h:143: error: field 'vb' has incomplete type
/tmp/v4l-dvb/v4l/bttvp.h:211: error: field 'cap' has incomplete type
/tmp/v4l-dvb/v4l/bttvp.h:224: error: field 'vbi' has incomplete type
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'show_card':
/tmp/v4l-dvb/v4l/bttv-driver.c:172: warning: initialization from incompatible pointer type
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_switch_overlay':
/tmp/v4l-dvb/v4l/bttv-driver.c:1735: error: 'STATE_DONE' undeclared (first use in this function)
/tmp/v4l-dvb/v4l/bttv-driver.c:1735: error: (Each undeclared identifier is reported only once
/tmp/v4l-dvb/v4l/bttv-driver.c:1735: error: for each function it appears in.)
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_prepare_buffer':
/tmp/v4l-dvb/v4l/bttv-driver.c:1762: error: dereferencing pointer to incomplete type
/tmp/v4l-dvb/v4l/bttv-driver.c:1846: error: 'STATE_NEEDS_INIT' undeclared (first use in this function)
/tmp/v4l-dvb/v4l/bttv-driver.c:1848: error: implicit declaration of function 'videobuf_iolock'
/tmp/v4l-dvb/v4l/bttv-driver.c:1856: error: 'STATE_PREPARED' undeclared (first use in this function)
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'buffer_setup':
/tmp/v4l-dvb/v4l/bttv-driver.c:1867: error: dereferencing pointer to incomplete type
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'buffer_prepare':
/tmp/v4l-dvb/v4l/bttv-driver.c:1881: warning: type defaults to 'int' in declaration of '__mptr'
/tmp/v4l-dvb/v4l/bttv-driver.c:1881: warning: initialization from incompatible pointer type
/tmp/v4l-dvb/v4l/bttv-driver.c:1882: error: dereferencing pointer to incomplete type
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'buffer_queue':
/tmp/v4l-dvb/v4l/bttv-driver.c:1891: warning: type defaults to 'int' in declaration of '__mptr'
/tmp/v4l-dvb/v4l/bttv-driver.c:1891: warning: initialization from incompatible pointer type
/tmp/v4l-dvb/v4l/bttv-driver.c:1892: error: dereferencing pointer to incomplete type
/tmp/v4l-dvb/v4l/bttv-driver.c:1895: error: 'STATE_QUEUED' undeclared (first use in this function)
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'buffer_release':
/tmp/v4l-dvb/v4l/bttv-driver.c:1905: warning: type defaults to 'int' in declaration of '__mptr'
/tmp/v4l-dvb/v4l/bttv-driver.c:1905: warning: initialization from incompatible pointer type
/tmp/v4l-dvb/v4l/bttv-driver.c:1906: error: dereferencing pointer to incomplete type
/tmp/v4l-dvb/v4l/bttv-driver.c: At top level:
/tmp/v4l-dvb/v4l/bttv-driver.c:1911: error: variable 'bttv_video_qops' has initializer but incomplete type
/tmp/v4l-dvb/v4l/bttv-driver.c:1912: error: unknown field 'buf_setup' specified in initializer
/tmp/v4l-dvb/v4l/bttv-driver.c:1912: warning: excess elements in struct initializer
/tmp/v4l-dvb/v4l/bttv-driver.c:1912: warning: (near initialization for 'bttv_video_qops')
/tmp/v4l-dvb/v4l/bttv-driver.c:1913: error: unknown field 'buf_prepare' specified in initializer
/tmp/v4l-dvb/v4l/bttv-driver.c:1913: warning: excess elements in struct initializer
/tmp/v4l-dvb/v4l/bttv-driver.c:1913: warning: (near initialization for 'bttv_video_qops')
/tmp/v4l-dvb/v4l/bttv-driver.c:1914: error: unknown field 'buf_queue' specified in initializer
/tmp/v4l-dvb/v4l/bttv-driver.c:1914: warning: excess elements in struct initializer
/tmp/v4l-dvb/v4l/bttv-driver.c:1914: warning: (near initialization for 'bttv_video_qops')
/tmp/v4l-dvb/v4l/bttv-driver.c:1915: error: unknown field 'buf_release' specified in initializer
/tmp/v4l-dvb/v4l/bttv-driver.c:1915: warning: excess elements in struct initializer
/tmp/v4l-dvb/v4l/bttv-driver.c:1915: warning: (near initialization for 'bttv_video_qops')
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'setup_window':
/tmp/v4l-dvb/v4l/bttv-driver.c:2568: error: implicit declaration of function 'videobuf_alloc'
/tmp/v4l-dvb/v4l/bttv-driver.c:2568: warning: assignment makes pointer from integer without a cast
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_switch_type':
/tmp/v4l-dvb/v4l/bttv-driver.c:2620: error: implicit declaration of function 'videobuf_queue_is_busy'
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_do_ioctl':
/tmp/v4l-dvb/v4l/bttv-driver.c:3034: warning: assignment makes pointer from integer without a cast
/tmp/v4l-dvb/v4l/bttv-driver.c:3053: error: implicit declaration of function 'videobuf_mmap_setup'
/tmp/v4l-dvb/v4l/bttv-driver.c:3087: error: 'STATE_QUEUED' undeclared (first use in this function)
/tmp/v4l-dvb/v4l/bttv-driver.c:3088: error: 'STATE_ACTIVE' undeclared (first use in this function)
/tmp/v4l-dvb/v4l/bttv-driver.c:3119: error: implicit declaration of function 'videobuf_waiton'
/tmp/v4l-dvb/v4l/bttv-driver.c:3123: error: 'STATE_ERROR' undeclared (first use in this function)
/tmp/v4l-dvb/v4l/bttv-driver.c:3126: error: 'STATE_DONE' undeclared (first use in this function)
/tmp/v4l-dvb/v4l/bttv-driver.c:3127: error: implicit declaration of function 'videobuf_dma_sync'
/tmp/v4l-dvb/v4l/bttv-driver.c:3323: warning: assignment makes pointer from integer without a cast
/tmp/v4l-dvb/v4l/bttv-driver.c:3334: error: implicit declaration of function 'videobuf_reqbufs'
/tmp/v4l-dvb/v4l/bttv-driver.c:3337: error: implicit declaration of function 'videobuf_querybuf'
/tmp/v4l-dvb/v4l/bttv-driver.c:3345: error: implicit declaration of function 'videobuf_qbuf'
/tmp/v4l-dvb/v4l/bttv-driver.c:3349: error: implicit declaration of function 'videobuf_dqbuf'
/tmp/v4l-dvb/v4l/bttv-driver.c:3358: error: implicit declaration of function 'videobuf_streamon'
/tmp/v4l-dvb/v4l/bttv-driver.c:3364: error: implicit declaration of function 'videobuf_streamoff'
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_read':
/tmp/v4l-dvb/v4l/bttv-driver.c:3638: error: implicit declaration of function 'videobuf_read_one'
/tmp/v4l-dvb/v4l/bttv-driver.c:3645: error: implicit declaration of function 'videobuf_read_stream'
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_poll':
/tmp/v4l-dvb/v4l/bttv-driver.c:3663: error: implicit declaration of function 'videobuf_poll_stream'
/tmp/v4l-dvb/v4l/bttv-driver.c:3670: warning: type defaults to 'int' in declaration of '__mptr'
/tmp/v4l-dvb/v4l/bttv-driver.c:3686: error: implicit declaration of function 'videobuf_next_field'
/tmp/v4l-dvb/v4l/bttv-driver.c:3701: error: 'STATE_DONE' undeclared (first use in this function)
/tmp/v4l-dvb/v4l/bttv-driver.c:3702: error: 'STATE_ERROR' undeclared (first use in this function)
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_open':
/tmp/v4l-dvb/v4l/bttv-driver.c:3747: error: implicit declaration of function 'videobuf_queue_init'
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_release':
/tmp/v4l-dvb/v4l/bttv-driver.c:3810: error: implicit declaration of function 'videobuf_read_stop'
/tmp/v4l-dvb/v4l/bttv-driver.c:3815: error: implicit declaration of function 'videobuf_mmap_free'
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_mmap':
/tmp/v4l-dvb/v4l/bttv-driver.c:3834: error: implicit declaration of function 'videobuf_mmap_mapper'
/tmp/v4l-dvb/v4l/bttv-driver.c: At top level:
/tmp/v4l-dvb/v4l/bttv-driver.c:3857: error: unknown field 'hardware' specified in initializer
/tmp/v4l-dvb/v4l/bttv-driver.c:3857: error: 'VID_HARDWARE_BT848' undeclared here (not in a function)
/tmp/v4l-dvb/v4l/bttv-driver.c:3866: error: unknown field 'hardware' specified in initializer
/tmp/v4l-dvb/v4l/bttv-driver.c:4012: error: unknown field 'hardware' specified in initializer
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_irq_next_video':
/tmp/v4l-dvb/v4l/bttv-driver.c:4163: warning: type defaults to 'int' in declaration of '__mptr'
/tmp/v4l-dvb/v4l/bttv-driver.c:4163: warning: initialization from incompatible pointer type
/tmp/v4l-dvb/v4l/bttv-driver.c:4172: warning: type defaults to 'int' in declaration of '__mptr'
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_irq_timeout':
/tmp/v4l-dvb/v4l/bttv-driver.c:4296: error: 'STATE_ERROR' undeclared (first use in this function)
/tmp/v4l-dvb/v4l/bttv-driver.c:4301: warning: type defaults to 'int' in declaration of '__mptr'
/tmp/v4l-dvb/v4l/bttv-driver.c:4301: warning: initialization from incompatible pointer type
/tmp/v4l-dvb/v4l/bttv-driver.c:4307: warning: type defaults to 'int' in declaration of '__mptr'
/tmp/v4l-dvb/v4l/bttv-driver.c:4307: warning: initialization from incompatible pointer type
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_irq_wakeup_top':
/tmp/v4l-dvb/v4l/bttv-driver.c:4332: error: 'STATE_DONE' undeclared (first use in this function)
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_irq_switch_video':
/tmp/v4l-dvb/v4l/bttv-driver.c:4381: error: 'STATE_DONE' undeclared (first use in this function)
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_irq_switch_vbi':
/tmp/v4l-dvb/v4l/bttv-driver.c:4395: warning: type defaults to 'int' in declaration of '__mptr'
/tmp/v4l-dvb/v4l/bttv-driver.c:4395: warning: initialization from incompatible pointer type
/tmp/v4l-dvb/v4l/bttv-driver.c:4414: error: 'STATE_DONE' undeclared (first use in this function)
/tmp/v4l-dvb/v4l/bttv-driver.c: In function 'bttv_register_video':
/tmp/v4l-dvb/v4l/bttv-driver.c:4607: warning: passing argument 1 of 'class_device_create_file' from incompatible pointer type
make[3]: *** [/tmp/v4l-dvb/v4l/bttv-driver.o] Error 1
make[2]: *** [_module_/tmp/v4l-dvb/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-19-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/tmp/v4l-dvb/v4l'
make: *** [all] Error 2
bacchus@cement:/tmp/v4l-dvb$ sudo make install
sudo: unable to resolve host cement
make -C /tmp/v4l-dvb/v4l install
make[1]: Entering directory `/tmp/v4l-dvb/v4l'
Stripping debug info from files:
Usage: strip <option(s)> in-file(s)
Removes symbols and sections from files
The options are:
-I --input-target=<bfdname> Assume input file is in format <bfdname>
-O --output-target=<bfdname> Create an output file in format <bfdname>
-F --target=<bfdname> Set both input and output format to <bfdname>
-p --preserve-dates Copy modified/access timestamps to the output
-R --remove-section=<name> Remove section <name> from the output
-s --strip-all Remove all symbol and relocation information
-g -S -d --strip-debug Remove all debugging symbols & sections
--strip-unneeded Remove all symbols not needed by relocations
--only-keep-debug Strip everything but the debug information
-N --strip-symbol=<name> Do not copy symbol <name>
-K --keep-symbol=<name> Do not strip symbol <name>
--keep-file-symbols Do not strip file symbol(s)
-w --wildcard Permit wildcard in symbol comparison
-x --discard-all Remove all non-global symbols
-X --discard-locals Remove any compiler-generated symbols
-v --verbose List all object files modified
-V --version Display this program's version number
-h --help Display this output
--info List object formats & architectures supported
-o <file> Place stripped output into <file>
strip: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32 elf32-little elf32-big elf64-x86-64 efi-app-x86_64 elf64-little elf64-big srec symbolsrec tekhex binary ihex trad-core
make[1]: *** [media-install] Error 1
make[1]: Leaving directory `/tmp/v4l-dvb/v4l'
make: *** [install] Error 2
bacchus@cement:/tmp/v4l-dvb$
bacchus
Inlägg: 5
Blev medlem: 13 jun 2008, 23:57
OS: Ubuntu
Utgåva: 12.04 Precise Pangolin LTS

Re: Hjälp med installation av Twinhan DVB-T + Ci

Inlägg av bacchus »

Det verkar som min justering av scriptet var lite skev. Bifigar därför en uppdaterad variant... Testat på egen risk - jag är inte klar med installationen ännu så vi får väl se hur det går. Jag hämtade kernel sources med Synaptic innan jag började, eftersom det verkade vara felet tidigare... Återkommer när jag testat hela ...

cd /tmp
#make sure_ krenel sources are installed
sudo apt-get install build-essential linux-headers-`uname -r`
#downloading driver
wget -c http://jusst.de/hg/mantis/archive/tip.tar.bz2

#unpacking driver
tar -xf tip.tar.bz2
#copying new dvb_net to correct directory
cd mantis-83e2af36efe7
#run installation
make
sudo make install
sudo INSTALL
bacchus
Inlägg: 5
Blev medlem: 13 jun 2008, 23:57
OS: Ubuntu
Utgåva: 12.04 Precise Pangolin LTS

Re: Hjälp med installation av Twinhan DVB-T + Ci

Inlägg av bacchus »

Gissa om det funkade ... :-P

Utanför ämnet:

Spenderade därför några timmar med att få igång MediaPortal under Windows.

Kortet funkar ju direkt - inga problem.
MediaPortal funkar direkt - inga problem (stabiliteten i mjukvaran kan man kanske prata en stund om men det är ju en RC2 så det finns väl lite stabilitetsfrågot kvar)
MDAPI hittade jag till slut och kunde installera.
WinCSC hittade jag också och installerade för att ansluta mig till en server utrustad med ett Boxer kort.

Summa summarum: Bye, bye Mythbuntu!
[/OT warning]

/Pontus
NickeZ
Inlägg: 6
Blev medlem: 13 jul 2008, 15:35
OS: Ubuntu
Utgåva: 22.04 Jammy Jellyfish LTS

Re: Hjälp med installation av Twinhan DVB-T + Ci

Inlägg av NickeZ »

Har hittat en länk om ämnet http://www.verbraak.org/wiki/index.php/ ... tis_driver han har tagit en drivrutin från http://www.jusst.de/hg/mantis som fortfarande utvecklas verkar det som... Men det verkar ju vara helt omöjligt att få in drivrutinen utan att kompilera om hela kärnan. Och kompilera om kärnan är nog överkurs för mig..
Skriv svar

Återgå till "Hårdvara som hårdvara"