Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

saa716xx_budget not created #156

Open
Krobar opened this issue May 8, 2017 · 12 comments
Open

saa716xx_budget not created #156

Krobar opened this issue May 8, 2017 · 12 comments

Comments

@Krobar
Copy link

Krobar commented May 8, 2017

Using Ubuntu 15.10 on the the newest 4.2 Kernel I don't seem to get the driver I need. Make output looks quite clean (Below is second run):

rob@TVHeadend:/media_build/v4l$ ls /lib/modules/4.2.0-42-generic//kernel/drivers/media/pci/saa716x/
saa716x_core.ko saa716x_ff.ko saa716x_hybrid.ko
rob@TVHeadend:
/media_build/v4l$ cd ..

rob@TVHeadend:~/media_build$ make
make -C /home/rob/media_build/v4l
make[1]: Entering directory '/home/rob/media_build/v4l'
creating symbolic links...
make -C firmware prep
make[2]: Entering directory '/home/rob/media_build/v4l/firmware'
make[2]: Leaving directory '/home/rob/media_build/v4l/firmware'
make -C firmware
make[2]: Entering directory '/home/rob/media_build/v4l/firmware'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/home/rob/media_build/v4l/firmware'
Kernel build directory is /lib/modules/4.2.0-42-generic/build
make -C ../linux apply_patches
make[2]: Entering directory '/home/rob/media_build/linux'
Syncing with dir ../../media
Patches for 4.2.0-42-generic already applied.
make[2]: Leaving directory '/home/rob/media_build/linux'
make -C /lib/modules/4.2.0-42-generic/build SUBDIRS=/home/rob/media_build/v4l modules
make[2]: Entering directory '/usr/src/linux-headers-4.2.0-42-generic'
Building modules, stage 2.
MODPOST 656 modules
WARNING: "frame_vector_to_pages" [/home/rob/media_build/v4l/videobuf2-vmalloc.ko] undefined!
WARNING: "frame_vector_to_pfns" [/home/rob/media_build/v4l/videobuf2-vmalloc.ko] undefined!
WARNING: "frame_vector_create" [/home/rob/media_build/v4l/videobuf2-memops.ko] undefined!
WARNING: "frame_vector_destroy" [/home/rob/media_build/v4l/videobuf2-memops.ko] undefined!
WARNING: "get_vaddr_frames" [/home/rob/media_build/v4l/videobuf2-memops.ko] undefined!
WARNING: "put_vaddr_frames" [/home/rob/media_build/v4l/videobuf2-memops.ko] undefined!
WARNING: "frame_vector_to_pages" [/home/rob/media_build/v4l/videobuf2-dma-sg.ko] undefined!
WARNING: "frame_vector_to_pages" [/home/rob/media_build/v4l/videobuf2-dma-contig.ko] undefined!
WARNING: "frame_vector_to_pfns" [/home/rob/media_build/v4l/videobuf2-dma-contig.ko] undefined!
make[2]: Leaving directory '/usr/src/linux-headers-4.2.0-42-generic'
./scripts/rmmod.pl check
found 656 modules
make[1]: Leaving directory '/home/rob/media_build/v4l'

Try to use this with a TBS6985, it compiled on the same system with code from May2015 a few years ago. Since upgraded the kernel (With headers) and now cant seem to get it to detect the card. Any help appreciated.

@Krobar
Copy link
Author

Krobar commented May 9, 2017

Ignore the above, it needs a newer kernel. 4.2 fails but 4.8 is ok.

@mochour
Copy link

mochour commented May 19, 2017

Hi,

I have the same problem but on Debian Jessie kernel 3.16.43-2. What is the resolution, when I don't want to upgrade kernel?

I'v followed the install instructions, but the result is always same the driver is not build.
My card is TBS6280 DVB-T2.

Thanks
M

@crazycat69
Copy link
Contributor

6280 require cxd2820r driver, so need at least 4.4 kernel.
install debian 9 with 4.9 kernel

@mochour
Copy link

mochour commented May 21, 2017

Ok, I've upgraded the kernel to 4.9 and the build was successful.

I can see a lot of continuity errors for one multiplex (others are ok). When I tune the multiplex directly on TV, there are no artifacts or visible problems.

Do you have any hint what to check? Can it be problem of DVB API?

Thanks

@crazycat69
Copy link
Contributor

What muxes you lock ? DVB-T, T2 or C ?

@mochour
Copy link

mochour commented May 21, 2017

DVB-T

Current parameters:
Frequency: 778000.000 kHz
Inversion: OFF
Bandwidth: 8 MHz
Stream code rate (hi prio): FEC 3/4
Stream code rate (lo prio): FEC 1/2
Modulation: QAM 64
Transmission mode: 8k mode
Guard interval: 1/8
Hierarchy: none

@crazycat69
Copy link
Contributor

Try drivers from my media_build
https://bitbucket.org/CrazyCat/media_build

This forked from this repo
https://github.com/crazycat69/linux_media

@mochour
Copy link

mochour commented May 21, 2017

I think, I used it ... according to install guide:

git clone https://github.com/ljalves/media_build.git
git clone --depth=1 https://github.com/ljalves/linux_media.git -b latest ./media
cd media_build
make dir DIR=../media
make distclean
make

@mochour
Copy link

mochour commented May 21, 2017

I am getting much better results when using your driver than proprietary TBS drivers, but this is only problem that bothers me :-(.

@Krobar
Copy link
Author

Krobar commented May 22, 2017

I get this continuity errors at times on 2/4 tuners on a 6985, slightly crappy hardware I think. TBS claim it is a motherboard compatibility issue, have tried 2 completely different motherboards and still get the problem. If it is a compatibility issues it seems common and other cards don't suffer the problem so no prizes for guessing where the blame is.

@mochour
Copy link

mochour commented May 22, 2017

I think, you are right. Before reinstall, I had similar problem as now, sometimes could not tune two channels from one multiplex. The problem is gone, but continuity error appeared.

Do you know how to use verbose parameter for the driver?

@eldonT
Copy link

eldonT commented Aug 22, 2017

is it the same problem (saa716x_budget not built) for TBS 6922 on a 4.4.0 kernel (ubuntu trusty) ?

i did see the cxd2820r 4.6 kernel limitation during make but the 6922 does not use that one so i was hoping it would work..

i'm trying to build again from scratch, as i had a perl error when executing :
make dir DIR=../media
saying "device out of space", while in fact my /usr/src is simply mounted on a different filesystem.

the second build also "skipped" saa716x_budget, let me know if there's a way to use it on a 4.4 kernel
thx

-- solved --
so i had to install a 4.6 kernel (and also gcc 4.9, trusty is really old) to get saa716x_budget to build.

the tuner seems to work fine with my tbs6922 card, also seems much faster than tbs
i noticed one tuning problem (scan done with tvheadend and tbs driver) we'll see it can be fixed by doing a new scan.

Also my tvheadend 4.0.9-16~g63c1034 doesn't seem to report the SNR (0%) and signal strength correctly (99%), not a real problem i believe.

and i yet have to test rmmod / suspend / modprobe
which apparently is broken with tbs v170330 & trusty 4.4.0 kernel.. tbs6922fe module shown being used by "-1" module and can't be rmmod, then saa716x_tdb-dvb can't be modprob (it used to work with and older tbs driver & kernel 3.18)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants