Kirjoittaja Aihe: Twinhan dvb-s2 ajurin kääntö  (Luettu 6196 kertaa)

redu

  • Käyttäjä
  • Viestejä: 487
    • Profiili
Twinhan dvb-s2 ajurin kääntö
« : 30.09.07 - klo:18.40 »
Twinhan DVB-S2-satelliittikortin beta-ajuri ja API on täällä:
http://www.twinhan.com/product_satellite_s2_CI.asp

AZLinux_v1.4.2_CI_PC6.tar.gz
Yritän kääntää tätä, mutta homma tökkää dvbdate-kohtaan.
Mikä mahtaa olla PC6?
Mikä mahtaa olla FC6? Fedora core?
Mikä ihmeen hidden symbol? Skriptissä? Hakemiston oikeuksissa?

make -C dvbdate all
make[2]: Entering directory `/srv/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 returned 1 exit status
make[2]: *** [dvbdate] Error 1
make[2]: Leaving directory `/srv/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/util/dvbdate'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/srv/AZLinux_v1.4.2_CI_FC6/dvb-apps-997424a1799e/util'
make: *** [all] Error 2
Ubuntua 98%, Winkua 2%

redu

  • Käyttäjä
  • Viestejä: 487
    • Profiili
Vs: Twinhan dvb-s2 ajurin kääntö
« Vastaus #1 : 01.10.07 - klo:18.21 »
No joo,
kyseessä taitaa olla Ubuntun gcc4.1 ominaisuus?
Miten tehdään: "compiling with -fno-stack-protector"?

Ref:

Thursday, February 08, 2007
Ubuntu's GCC 4.1 and -fstack-protector
Ubuntu quietly made -fstack-protector (i.e., ProPolice support) the default in their GCC 4.1 binary. (I think it's also the default in OpenBSD.) Unfortunately, this breaks some builds, especially (I think) if you're trying to build a kernel module. If you get an error that mentions the symbol __stack_chk_fail_local, like the one below, you got bit by this bug.


/usr/bin/ld: .libs/cr_checkpoint: 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 returned 1 exit status


Either re-build your libraries with -fstack-protector or add -fno-stack-protector to CFLAGS. If this doesn't work, you can try gcc-4.0, which predates the introduction of ProPolice, but this probably won't work if you're compiling a kernel module, because they have to be compiled with the same compiler as the kernel.

Try compiling with -fno-stack-protector, that might help.
Ubuntua 98%, Winkua 2%

eDIT

  • Käyttäjä
  • Viestejä: 319
    • Profiili
Vs: Twinhan dvb-s2 ajurin kääntö
« Vastaus #2 : 02.10.07 - klo:00.30 »
Saanen kysyä mistä löysit tuon "PC6" paketin?

EDIT:

Empä sitten tiedä, kun kun tuo "-fno-stack-protector" pitäisi ilmeisesti valita configure scriptin avulla, jota ei pikavilkaisulla noista paketeista löytynyt, eli siis:

Koodia: [Valitse]
./configure --enable-stack-protector
Melko mutu tietoa kyllä tämäkin, kun en ole sen pahemmin kääntämiseen perehtynyt.
« Viimeksi muokattu: 02.10.07 - klo:00.46 kirjoittanut eDIT »

redu

  • Käyttäjä
  • Viestejä: 487
    • Profiili
Vs: Twinhan dvb-s2 ajurin kääntö
« Vastaus #3 : 02.10.07 - klo:14.12 »
Kiitos eDIT,
johdatit oikealle polulle.
Mutta kun ei configure-filua ole ollenkaan?

Sain gcc4.1:n kuitenkin kääntämään, kun lisäsin kaikkiin
(hierarkinen puu) Makefile:isiin:
CFLAGS =: -fno-stack-protector

Hienoa, API taisi siis kääntyä,
mutta ajurikääntö eionnistu
« Viimeksi muokattu: 06.10.07 - klo:17.45 kirjoittanut redu »
Ubuntua 98%, Winkua 2%

redu

  • Käyttäjä
  • Viestejä: 487
    • Profiili
Vs: Twinhan dvb-s2 ajurin kääntö
« Vastaus #4 : 06.10.07 - klo:18.07 »

Ref:
http://www.twinhan.com/download_driver&software.asp
V1.4.2
AZLinux_v1.4.2_CI_PC6.tar.gz
Lausunto eräällä foorumilla:
>
There is a binary package at the Twinhan (download page) website which does support the CI but the modules were compiled for the first Fedore Core 6 kernel on a i586 platform.
>
Kääntö Feistyyn lienee siis ainakin harrastelijalle mahdotonta! Kortin
ostaja huijataan näin uskomaan, että oikea Linux-ajuri olisi olemassa.

DigitalRisen kotisuvulla on:
http://www.digitalrise.biz/support/downloads/index.php?action=file&id=186
AZLinux_v1.4.2_no_CI.tar.gz
Tämä on jonkinmoinen viilattu versio tuosta FedoraCore-sourcesta, ilman
CI-osaa.

Mutta vaikeuksia tuli tuonkin kanssa:
Ohje:
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
      $ rm v4l/.version
        $ make menuconfig (use default)
      $ make clean
      $ make
      $ make install
       $ make rmmod
       $ make insmod

Mutta "make menuconfig"    antaa virheilmoituksen:

redu@roklotin:/srv/AZLinux_v1.4.2_no_CI/linuxdriver$ make menuconfig
make -C /srv/AZLinux_v1.4.2_no_CI/linuxdriver/v4l menuconfig
make[1]: Entering directory `/srv/AZLinux_v1.4.2_no_CI/linuxdriver/v4l'
No version yet.
scripts/make_makefile.pl /lib/modules/2.6.20-16-generic/build
creating symbolic links...
make -C /lib/modules/2.6.20-16-generic/build -f /srv/AZLinux_v1.4.2_no_CI/linuxdriver/v4l/Makefile.kernel config-targets=1 mixed-targets=0 dot-config=0 v4l-mconf
make[2]: Entering directory `/usr/src/linux-headers-2.6.20-16-generic'
make -f scripts/Makefile.build obj=scripts/kconfig scripts/kconfig/mconf
make[3]: *** No rule to make target `scripts/kconfig/mconf'.  Stop.
make[2]: *** [v4l-mconf] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.20-16-generic'
make[1]: *** [/lib/modules/2.6.20-16-generic/build/scripts/kconfig/mconf] Error 2
make[1]: Leaving directory `/srv/AZLinux_v1.4.2_no_CI/linuxdriver/v4l'
make: *** [menuconfig] Error 2

uname -r antaa:
redu@roklotin:~$ uname -r
2.6.20-16-generic
redu@roklotin:~$

Mikä mättää?
Ubuntua 98%, Winkua 2%

redu

  • Käyttäjä
  • Viestejä: 487
    • Profiili
Vs: Twinhan dvb-s2 ajurin kääntö
« Vastaus #5 : 30.11.08 - klo:08.11 »
http://www.linuxtv.org/wiki/index.php/Azurewave_AD_SP400_CI_%28VP-1041%29

Täällä sanotaan:
>
S2API driver
It has been decided that DVB-S2 support in the Linux kernel will be provided by S2API (and not multiproto) and will be included in version 2.6.28. Work is underway to port the Twinhan and multiproto drivers described below to the new API and improve upon them. Preliminary S2API support for stb0899 and mantis exists and is described at S2API.
>

Tällä hetkellä 8.10:ssa näkyy olevan kerneli 26.6.27.9. Ei ole pitkä matka versioon 26.6.28? Kannattaako nyt odotella uutta kerneliä versioon 8.10, ennenkuin alkaa ropeltaa Azurewave AD SP400 CI (VP-1041)-ajuria Ubuntuun?

redu


Ubuntua 98%, Winkua 2%

redu

  • Käyttäjä
  • Viestejä: 487
    • Profiili
Vs: Twinhan dvb-s2 ajurin kääntö
« Vastaus #6 : 10.06.09 - klo:17.55 »
http://www.linuxtv.org/wiki/index.php/Azurewave_AD_SP400_CI_%28VP-1041%29

Täällä sanotaan:
>
S2API driver
It has been decided that DVB-S2 support in the Linux kernel will be provided by S2API (and not multiproto) and will be included in version 2.6.28. Work is underway to port the Twinhan and multiproto drivers described below to the new API and improve upon them. Preliminary S2API support for stb0899 and mantis exists and is described at S2API.
>
Tällä hetkellä 8.10:ssa näkyy olevan kerneli 26.6.27.9. Ei ole pitkä matka versioon 26.6.28? Kannattaako nyt odotella uutta kerneliä versioon 8.10, ennenkuin alkaa ropeltaa Azurewave AD SP400 CI (VP-1041)-ajuria Ubuntuun?
redu

Nonni,
nyt sain vihdoin dvb-s2-ajurin käännetyksi! Melkein kaksi vuotta on ekasta yrityksestä. Jauntyssahan on nyt 26.6.28-kerneli, jossa on valmiina S2API. Mutta ei ole kuitenkaan ajuria? Onneksi ajuri kääntyi heittämällä näillä ohjeilla (liplianin-sources):
>
http://www.linuxtv.org/wiki/index.php/Azurewave_AD_SP400_CI_(VP-1041)#Drivers

Mantis/S2API driver
DVB-S2 support in the Linux kernel is provided by API version 5.0, also known as S2API (and not multiproto). This API was released in kernel version 2.6.28 (but a driver for this card was not). For this reason a driver with S2API (rather than multiproto) support is strongly recommended. An S2API-based driver for the Azurewave AD-SP 400/Technisat Skystar HD2 may be installed as follows:

hg clone http://mercurial.intuxication.org/hg/s2-liplianin
ln -s s2-liplianin s2   [the scan-s2 and szap-s2 Makefiles expect this]
cd s2-liplianin
make
sudo make install
sudo reboot
>

Huom:
H264 ja DVB-S2 tarvitaan tietenkin FullHD-kanavien katseluun, mutta yhä useampia SD-kanaviakin on satelliiteissa h264-koodattuina. Jo oli siis aikakin saada tämä kortti käyttöön Ubuntussa.

Edit:
But for Karmic, fist reconfigure menuconfig:
sudo make menuconfig
und wähle dort das firedtv Modul ab...
-> Multimedia Support -> DVB/ATSC Adapter -> Firedtv/Floppydtv
Nach dem Abwählen des Moduls, abspeichern und mit make fortfahren...

redu
« Viimeksi muokattu: 30.12.09 - klo:08.11 kirjoittanut redu »
Ubuntua 98%, Winkua 2%

boy007

  • Käyttäjä
  • Viestejä: 10
    • Profiili
Vs: Twinhan dvb-s2 ajurin kääntö
« Vastaus #7 : 23.02.12 - klo:15.25 »


Nonni,
nyt sain vihdoin dvb-s2-ajurin käännetyksi! Melkein kaksi vuotta on ekasta yrityksestä. Jauntyssahan on nyt 26.6.28-kerneli, jossa on valmiina S2API. Mutta ei ole kuitenkaan ajuria? Onneksi ajuri kääntyi heittämällä näillä ohjeilla (liplianin-sources):

redu

Miten ootte asentanut , kääntäneet 1034 / twinhan / mantis ajurit Ubuntu 11.10 / 12.4 sella,...
... ne pitäis olla kernelissä mut kun ei pelitä!

joni
boy007
the@boy007.dy.fi