Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to build TBS6982 drivers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 474
Location: Cambridge, UK

PostPosted: Fri Jan 31, 2020 10:11 am    Post subject: Unable to build TBS6982 drivers Reply with quote

I'm not sure this is the right place to ask for help, but I cannot think of anywhere else and I'm really struggling with this issue.

I’ve been having issues building drivers for a TBS 6982 card. I’ve been having the issues for six months, but prior to that I had been building and using the card fine for years.

The drivers are available here:

https://github.com/tbsdtv/

I’m running on kernel 5.4.13 using an up to date unstable Gentoo system. The system is headless and is just used to run Mythtv, Motion and an internal Apache server.

I previously had a TBS6981 card and that had in kernel drivers, but the TBS6982 drivers have not yet made it in! Still it's a lot easier then when I had to download the binary drivers from TBS to install!

Anyway I use the following commands to build the drivers.

Code:
$mkdir TBS6982_drivers
$ cd TBS6982_drivers/
$ git clone https://github.com/tbsdtv/media_build.git
$ git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media
$ cd media_build/
$ make dir DIR=../media
$ make -j4


After about 30 minutes the final command fails with:

Code:
 LD [M]  /home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/em28xx.o
  LD [M]  /home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/em28xx-v4l.o
  LD [M]  /home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/em28xx-rc.o
  LD [M]  /home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/dvb-as102.o
  LD [M]  /home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/shark2.o
  LD [M]  /home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/altera-stapl.o
  Building modules, stage 2.
  MODPOST 682 modules
ERROR: "snd_pcm_period_elapsed" [/home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/tbs_pcie-dvb.ko] undefined!
ERROR: "snd_pcm_set_ops" [/home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/tbs_pcie-dvb.ko] undefined!
ERROR: "snd_pcm_lib_free_pages" [/home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/tbs_pcie-dvb.ko] undefined!
ERROR: "snd_pcm_lib_ioctl" [/home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/tbs_pcie-dvb.ko] undefined!
ERROR: "snd_pcm_lib_malloc_pages" [/home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/tbs_pcie-dvb.ko] undefined!
ERROR: "snd_card_new" [/home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/tbs_pcie-dvb.ko] undefined!
ERROR: "snd_pcm_hw_constraint_minmax" [/home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/tbs_pcie-dvb.ko] undefined!
ERROR: "snd_pcm_lib_preallocate_pages_for_all" [/home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/tbs_pcie-dvb.ko] undefined!
ERROR: "snd_card_free" [/home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/tbs_pcie-dvb.ko] undefined!
ERROR: "snd_card_register" [/home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/tbs_pcie-dvb.ko] undefined!
ERROR: "snd_pcm_new" [/home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l/tbs_pcie-dvb.ko] undefined!
make[3]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[2]: *** [Makefile:1609: modules] Error 2
make[2]: Leaving directory '/usr/src/linux-5.4.13-gentoo'
make[1]: *** [Makefile:53: default] Error 2
make[1]: Leaving directory '/home/chris/src/TBS6980/TBS6982_drivers/media_build/v4l'
make: *** [Makefile:26: all] Error 2


I'm really struggling to understand what the problem is. I realise it's something to do with ALSA (this is a headless server) but I cannot find any relevant API/LIBS packages on Gentoo to install. Plus the drivers built fine and I do not remember removing any packages.

So Help.....!! Any tips of where to look next would be very, very welcome!

Thanks!

Cheers,
Ferg
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 23504
Location: here

PostPosted: Fri Jan 31, 2020 10:52 am    Post subject: Reply with quote

snd_pcm_period_elapsed, snd_pcm_set_ops,... seems a kernel API, so you have enabled that in your kernel (grep SND_PCM /usr/src/linux/.config)?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 474
Location: Cambridge, UK

PostPosted: Fri Jan 31, 2020 11:47 am    Post subject: Reply with quote

Thanks for your reply.

I thought I'd already done that, but it appears that you have hit the nail on the head!

Code:
 #grep SND_PCM .config                                                                                                                                                                                                           
#
 # grep -i SND .config                                                                                                                                                                                             !
 CONFIG_SND is not set       


I've had to fight a little with "make menuconfig" but am recompiling at the moment. Will update.

Thanks!
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 474
Location: Cambridge, UK

PostPosted: Fri Jan 31, 2020 2:22 pm    Post subject: Reply with quote

yup that was it! I had to enable OSS emulation under ALSA and under that option was a OSS PCM (Digital Audio) API setting.

thanks a lot!
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum