tbsdtv / linux_media

TBS linux open source drivers
https://github.com/tbsdtv/linux_media/wiki
Other
169 stars 79 forks source link

kernel 5.16 Compile error #311

Closed elkizana closed 1 year ago

elkizana commented 1 year ago

home/idoom/media_build/v4l/ov2740.c:1204:8: error: type defaults to 'int' in declaration of 'DEFINE_SIMPLE_DEV_PM_OPS' [-Werror=implicit-int] 1204 | static DEFINE_SIMPLE_DEV_PM_OPS(ov2740_pm_ops, ov2740_suspend, ov2740_resume); | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/idoom/media_build/v4l/ov2740.c:1204:1: warning: parameter names (without types) in function declaration 1204 | static DEFINE_SIMPLE_DEV_PM_OPS(ov2740_pm_ops, ov2740_suspend, ov2740_resume); | ^~~~~~ /home/idoom/media_build/v4l/ov2740.c:1216:23: error: implicit declaration of function 'pm_sleep_ptr' [-Werror=implicit-function-declaration] 1216 | .pm = pm_sleep_ptr(&ov2740_pm_ops), | ^~~~~~~~~~~~ /home/idoom/media_build/v4l/ov2740.c:1216:37: error: 'ov2740_pm_ops' undeclared here (not in a function); did you mean 'ov2740_pad_ops'? 1216 | .pm = pm_sleep_ptr(&ov2740_pm_ops), | ^~~~~~~~~~~~~ | ov2740_pad_ops /home/idoom/media_build/v4l/ov2740.c:1204:8: warning: 'DEFINE_SIMPLE_DEV_PM_OPS' declared 'static' but never defined [-Wunused-function] 1204 | static DEFINE_SIMPLE_DEV_PM_OPS(ov2740_pm_ops, ov2740_suspend, ov2740_resume); | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/idoom/media_build/v4l/ov2740.c:839:12: warning: 'ov2740_resume' defined but not used [-Wunused-function] 839 | static int ov2740_resume(struct device *dev) | ^~~~~~~~~~~~~ /home/idoom/media_build/v4l/ov2740.c:825:12: warning: 'ov2740_suspend' defined but not used [-Wunused-function] 825 | static int ov2740_suspend(struct device *dev) | ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:287: /home/idoom/media_build/v4l/ov2740.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [Makefile:1852: /home/idoom/media_build/v4l] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-5.16.20-051620-generic' make[1]: *** [Makefile:53: default] Error 2 make[1]: Leaving directory '/home/idoom/media_build/v4l' make: *** [Makefile:26: all] Error 2

crazycat69 commented 1 year ago

media_build updated Update blacklist for <5.19

elkizana commented 1 year ago

thanks how can update the the media_folder ?

elkizana commented 1 year ago

got this Screenshot from 2023-04-28 15-10-39

crazycat69 commented 1 year ago

another update, tested with 5.16.20-051620-generic

elkizana commented 1 year ago

compiled but unfortunately the graphics are broken, nouveau doesn't seem to work

Screenshot from 2023-04-28 19-52-12

crazycat69 commented 1 year ago

Use install.sh script

elkizana commented 1 year ago

did it the problem still even the sound is gone

crazycat69 commented 1 year ago

Maybe you delete kernel media modules before install ?

elkizana commented 1 year ago

Maybe you delete kernel media modules before install ?

with a fresh kernel :

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 distclean make -j4 make install reboot

crazycat69 commented 1 year ago

what dvb device used ?

elkizana commented 1 year ago

TechniSat SkyStar 2 eXpress HD I have tested several kernels; kernels 5.10 and below work fine. The ones above 5.10 install but broke the graphics.

crazycat69 commented 1 year ago

Compile/install with install.sh and try: modinfo saa716x_tbs_dvb modprobe saa716x_tbs_dvb dmesg

elkizana commented 1 year ago

dmesg.txt

elkizana commented 1 year ago

it's working now. I installed it with the the and executed the commands. Strange.

crazycat69 commented 1 year ago

ok you use old mainline unsupported kernels 5.16, 5.18 instead current ubuntu kernels ?

elkizana commented 1 year ago

Now i'm using 5.18.0 (or below) because I have WiFi card that neither works out of the box in the 6.x kernels nor could I install the driver I'm using for it now. Thank you for the work you are doing for the community @crazycat69