Moderator Control Panel ]

failed setup driver

failed setup driver

Postby admsasha » Wed May 15, 2019 3:58 pm

Code: Select all
# uname -a
Linux videoserver 4.9.155-nrj-desktop-1rosa-x86_64 #1 SMP PREEMPT Fri Feb 8 12:09:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


Code: Select all
02:00.0 Multimedia controller [0480]: Philips Semiconductors SAA7160 [1131:7160] (rev 03)
        Subsystem: Device [6221:0001]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at dc500000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: [40] MSI: Enable- Count=1/32 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [50] Express (v1) Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <256ns, L1 <1us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset-
                DevCtl: Report errors: Correctable+ Non-Fatal+ Fatal+ Unsupported-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 128 bytes
                DevSta: CorrErr- UncorrErr+ FatalErr- UnsuppReq+ AuxPwr- TransPend-
                LnkCap: Port #1, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <4us, L1 <64us
                        ClockPM- Surprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
        Capabilities: [74] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [80] Vendor Specific Information: Len=50 <?>
        Capabilities: [100 v1] Vendor Specific Information: ID=0000 Rev=0 Len=088 <?>
        Kernel modules: saa716x_tbs_dvb


if install https://www.tbsiptv.com/download/common ... 170330.zip, then driver is successfully installed but not loaded.

Code: Select all
# modprobe saa716x_tbs_dvb
modprobe: ERROR: could not insert 'saa716x_tbs_dvb': Invalid argument


Code: Select all
#dmesg
[ 3666.343562] saa716x_core: disagrees about version of symbol dvb_dmxdev_init
[ 3666.343567] saa716x_core: Unknown symbol dvb_dmxdev_init (err -22)
[ 3666.343626] saa716x_core: disagrees about version of symbol dvb_register_adapter
[ 3666.343628] saa716x_core: Unknown symbol dvb_register_adapter (err -22)
[ 3666.343670] saa716x_core: disagrees about version of symbol dvb_dmx_release
[ 3666.343672] saa716x_core: Unknown symbol dvb_dmx_release (err -22)
[ 3666.343705] saa716x_core: disagrees about version of symbol dvb_net_init
[ 3666.343707] saa716x_core: Unknown symbol dvb_net_init (err -22)
[ 3666.343737] saa716x_core: disagrees about version of symbol dvb_dmxdev_release
[ 3666.343738] saa716x_core: Unknown symbol dvb_dmxdev_release (err -22)
[ 3666.343770] saa716x_core: disagrees about version of symbol dvb_frontend_detach
[ 3666.343771] saa716x_core: Unknown symbol dvb_frontend_detach (err -22)
[ 3666.343799] saa716x_core: disagrees about version of symbol dvb_net_release
[ 3666.343800] saa716x_core: Unknown symbol dvb_net_release (err -22)
[ 3666.343830] saa716x_core: disagrees about version of symbol dvb_unregister_frontend
[ 3666.343831] saa716x_core: Unknown symbol dvb_unregister_frontend (err -22)
[ 3666.343862] saa716x_core: disagrees about version of symbol dvb_register_frontend
[ 3666.343864] saa716x_core: Unknown symbol dvb_register_frontend (err -22)
[ 3666.343891] saa716x_core: disagrees about version of symbol dvb_unregister_adapter
[ 3666.343892] saa716x_core: Unknown symbol dvb_unregister_adapter (err -22)
[ 3666.343918] saa716x_core: disagrees about version of symbol dvb_dmx_init
[ 3666.343920] saa716x_core: Unknown symbol dvb_dmx_init (err -22)



if try with our latest open source driver (https://github.com/tbsdtv/linux_media/wiki)
Code: Select all
Patches for 4.9.155-nrj-desktop-1rosa-x86_64 already applied.
make[2]: Leaving directory '/home/user/drivers/media_build/linux'
make -C /lib/modules/4.9.155-nrj-desktop-1rosa-x86_64/build SUBDIRS=/home/user/drivers/media_build/v4l  modules
make[2]: Entering directory '/usr/src/linux-4.9.155-nrj-desktop-1rosa-x86_64'
  CC [M]  /home/user/drivers/media_build/v4l/cec-gpio.o
/home/user/drivers/media_build/v4l/cec-gpio.c: In function 'cec_gpio_probe':
/home/user/drivers/media_build/v4l/cec-gpio.c:199:45: error: 'GPIOD_OUT_HIGH_OPEN_DRAIN' undeclared (first use in this function)
  cec->cec_gpio = devm_gpiod_get(dev, "cec", GPIOD_OUT_HIGH_OPEN_DRAIN);
                                             ^
/home/user/drivers/media_build/v4l/cec-gpio.c:199:45: note: each undeclared identifier is reported only once for each function it appears in
/home/user/drivers/media_build/v4l/cec-gpio.c: At top level:
cc1: warning: unrecognized command line option '-Wno-format-truncation'
make[3]: *** [scripts/Makefile.build:311: /home/user/drivers/media_build/v4l/cec-gpio.o] Ошибка 1
make[2]: *** [Makefile:1523: _module_/home/user/drivers/media_build/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-4.9.155-nrj-desktop-1rosa-x86_64'
make[1]: *** [Makefile:53: default] Ошибка 2
make[1]: выход из каталога «/home/user/drivers/media_build/v4l»
make: *** [Makefile:26: all] Ошибка 2
admsasha
 
Posts: 10
Joined: Thu Sep 18, 2014 7:30 am

Re: failed setup driver

Postby steven » Wed May 15, 2019 4:58 pm

Hi

For the 0330 package please try like this :
#sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/
1.wget http://www.tbsiptv.com/download/common/ ... 170330.zip
2.unzip tbs-linux-drivers_v170330.zip
3. tar jxvf linux-tbs-drivers.tar.bz2
4. cd linux-tbs-drivers
5. ./v4l/tbs-x86_64.sh
6. make -j4
7.make install
8.restart

Thanks


Kind Regards

steven
steven
 
Posts: 1974
Joined: Fri Aug 06, 2010 3:23 pm

Re: failed setup driver

Postby admsasha » Thu May 16, 2019 8:01 am

I did.

Code: Select all
# modprobe saa716x_tbs_dvb
modprobe: ERROR: could not insert 'saa716x_tbs_dvb': Invalid argument



Code: Select all
#dmesg
[ 3666.343562] saa716x_core: disagrees about version of symbol dvb_dmxdev_init
[ 3666.343567] saa716x_core: Unknown symbol dvb_dmxdev_init (err -22)
[ 3666.343626] saa716x_core: disagrees about version of symbol dvb_register_adapter
[ 3666.343628] saa716x_core: Unknown symbol dvb_register_adapter (err -22)
[ 3666.343670] saa716x_core: disagrees about version of symbol dvb_dmx_release
[ 3666.343672] saa716x_core: Unknown symbol dvb_dmx_release (err -22)
[ 3666.343705] saa716x_core: disagrees about version of symbol dvb_net_init
[ 3666.343707] saa716x_core: Unknown symbol dvb_net_init (err -22)
[ 3666.343737] saa716x_core: disagrees about version of symbol dvb_dmxdev_release
[ 3666.343738] saa716x_core: Unknown symbol dvb_dmxdev_release (err -22)
[ 3666.343770] saa716x_core: disagrees about version of symbol dvb_frontend_detach
[ 3666.343771] saa716x_core: Unknown symbol dvb_frontend_detach (err -22)
[ 3666.343799] saa716x_core: disagrees about version of symbol dvb_net_release
[ 3666.343800] saa716x_core: Unknown symbol dvb_net_release (err -22)
[ 3666.343830] saa716x_core: disagrees about version of symbol dvb_unregister_frontend
[ 3666.343831] saa716x_core: Unknown symbol dvb_unregister_frontend (err -22)
[ 3666.343862] saa716x_core: disagrees about version of symbol dvb_register_frontend
[ 3666.343864] saa716x_core: Unknown symbol dvb_register_frontend (err -22)
[ 3666.343891] saa716x_core: disagrees about version of symbol dvb_unregister_adapter
[ 3666.343892] saa716x_core: Unknown symbol dvb_unregister_adapter (err -22)
[ 3666.343918] saa716x_core: disagrees about version of symbol dvb_dmx_init
[ 3666.343920] saa716x_core: Unknown symbol dvb_dmx_init (err -22)

admsasha
 
Posts: 10
Joined: Thu Sep 18, 2014 7:30 am

Re: failed setup driver

Postby admsasha » Thu May 16, 2019 8:13 am

try for ubuntu 18.04. Driver don`t build.

Code: Select all
Linux sasha-virtual-machine 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


Code: Select all
  CC [M]  /root/drivers/linux-tbs-drivers/v4l/tda18218.o
  CC [M]  /root/drivers/linux-tbs-drivers/v4l/tda18212.o
  CC [M]  /root/drivers/linux-tbs-drivers/v4l/saa7146_i2c.o
  CC [M]  /root/drivers/linux-tbs-drivers/v4l/saa7146_core.o
  LD [M]  /root/drivers/linux-tbs-drivers/v4l/saa7146.o
  CC [M]  /root/drivers/linux-tbs-drivers/v4l/saa7146_fops.o
  CC [M]  /root/drivers/linux-tbs-drivers/v4l/saa7146_video.o
/root/drivers/linux-tbs-drivers/v4l/saa7146_video.c: In function 'video_init':
/root/drivers/linux-tbs-drivers/v4l/saa7146_video.c:1307:2: error: implicit declaration of function 'init_timer'; did you mean 'init_timers'? [-Werror=implicit-function-declaration]
  init_timer(&vv->video_q.timeout);
  ^~~~~~~~~~
  init_timers
/root/drivers/linux-tbs-drivers/v4l/saa7146_video.c:1308:31: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
  vv->video_q.timeout.function = saa7146_buffer_timeout;
                               ^
/root/drivers/linux-tbs-drivers/v4l/saa7146_video.c:1309:21: error: 'struct timer_list' has no member named 'data'
  vv->video_q.timeout.data     = (unsigned long)(&vv->video_q);
                     ^
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/root/drivers/linux-tbs-drivers/v4l/saa7146_video.o' failed
make[3]: *** [/root/drivers/linux-tbs-drivers/v4l/saa7146_video.o] Error 1
Makefile:1552: recipe for target '_module_/root/drivers/linux-tbs-drivers/v4l' failed
make[2]: *** [_module_/root/drivers/linux-tbs-drivers/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.15.0-20-generic'
Makefile:51: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: выход из каталога «/root/drivers/linux-tbs-drivers/v4l»
Makefile:26: recipe for target 'all' failed
make: *** [all] Error 2
admsasha
 
Posts: 10
Joined: Thu Sep 18, 2014 7:30 am

Re: failed setup driver

Postby admsasha » Thu May 16, 2019 9:45 am

sorry. The driver is installed, but now there are no drivers from other media devices.
admsasha
 
Posts: 10
Joined: Thu Sep 18, 2014 7:30 am

Re: failed setup driver

Postby admsasha » Thu May 16, 2019 10:12 am

kernel 4.15.0-desktop-47.2rosa-x86_64 and https://github.com/tbsdtv/linux_media/wiki That is all right :D

all thanks
admsasha
 
Posts: 10
Joined: Thu Sep 18, 2014 7:30 am


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron