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

Error compiling on Ubuntu 5.6.13-050613-generic x86_64 #200

Closed
Nalyden opened this issue May 20, 2020 · 16 comments
Closed

Error compiling on Ubuntu 5.6.13-050613-generic x86_64 #200

Nalyden opened this issue May 20, 2020 · 16 comments

Comments

@Nalyden
Copy link

Nalyden commented May 20, 2020

Hi, I'm trying to compile on a Ubuntu system with a 5.6.13-050613-generic x86_64 kernel and I am getting the following errors when I run make:

LD [M] /home/dylan/tbsdriver/media_build/v4l/fm_drv.o
LD [M] /home/dylan/tbsdriver/media_build/v4l/altera-stapl.o
MODPOST 729 modules
ERROR: "fwnode_get_name" [/home/dylan/tbsdriver/media_build/v4l/v4l2-fwnode.ko] undefined!
scripts/Makefile.modpost:93: recipe for target '__modpost' failed
make[3]: *** [__modpost] Error 1
Makefile:1596: recipe for target 'modules' failed
make[2]: *** [modules] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.6.13-050613-generic'
Makefile:51: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/home/dylan/tbsdriver/media_build/v4l'
Makefile:26: recipe for target 'all' failed
make: *** [all] Error 2

@BytEvil
Copy link

BytEvil commented May 22, 2020

Hi. Same issue on Arch Linux kernel 5.6.13.

@Paco125689
Copy link

Paco125689 commented May 22, 2020

Hi. Same issue on Fedora 32 Linux kernel 5.6.13-300.fc32.x86_64
tbs6522

@Tnix76
Copy link

Tnix76 commented May 22, 2020

Hi.
Same issue on Debian Testing: 5.6.0-1-amd64 #1 SMP Debian 5.6.7-1 (2020-04-29) x86_64 GNU/Linux

@L-S-D
Copy link

L-S-D commented May 25, 2020

as a workaround edit media_build/v4l/compat.h and search for:
#ifdef NEED_FWNODE_GETNAME

remove the line you just searched and the following #endif

Working fine for me on 5.6.14

@Nalyden
Copy link
Author

Nalyden commented May 26, 2020

Cheers, that's got it compiling for me.

@Nalyden Nalyden closed this as completed May 26, 2020
@Tnix76
Copy link

Tnix76 commented May 26, 2020

Doesn't work for me in 5.6.0

@zhang111chao
Copy link

zhang111chao commented May 26, 2020 via email

@Tnix76
Copy link

Tnix76 commented May 26, 2020

As far as I know the TBS official drivers doesn't support satellite, it isn't?

@Tnix76
Copy link

Tnix76 commented May 26, 2020

hi , Please follow the steps below to install driver for tbs card . #wget https://www.tbsdtv.com/download/document/linux/media_build-2020-05-22.tar.bz2 #tar jxvf media_build-2020-05-22.tar.bz2 #cd media_build #./install.sh #reboot best regards! jack@tbsdtv.com From: Tnix76 Date: 2020-05-26 14:36 To: tbsdtv/linux_media CC: Subscribed Subject: Re: [tbsdtv/linux_media] Error compiling on Ubuntu 5.6.13-050613-generic x86_64 (#200) Doesn't work for me in 5.6.0 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Fails again to compile:

ERROR: "__devm_regmap_init_sccb" [/home/myuser/media_build/v4l/ov9650.ko] undefined!

@zhang111chao
Copy link

zhang111chao commented May 26, 2020 via email

@BytEvil
Copy link

BytEvil commented May 26, 2020

@L-S-D, problem NOT solved...

@L-S-D
Copy link

L-S-D commented May 26, 2020

well I assume the original problem from the log was solved, depending on the exact OS and kernel, there might be more errors, like Tnix76 ov9650.ko undefined.
Anyway, that was just a dirty workaround to pass the error mentioned, I assume a proper fix will be available soon from TBS.

@zhang111chao
Copy link

Please follow the steps below to install driver for tbs card .
#wget https://www.tbsdtv.com/download/document/linux/media_build-2020-05-22.tar.bz2
#tar jxvf media_build-2020-05-22.tar.bz2
#cd media_build
#./install.sh
#reboot

@Paco125689
Copy link

Paco125689 commented May 27, 2020

This works for me on 5.6.14-300.fc32.x86_64
Please follow the steps below to install driver for tbs card . #wget https://www.tbsdtv.com/download/document/linux/media_build-2020-05-22.tar.bz2 #tar jxvf media_build-2020-05-22.tar.bz2 #cd media_build #./install.sh #reboot
Thank you very much!

@jogrue
Copy link

jogrue commented Jun 9, 2020

Please follow the steps below to install driver for tbs card .
#wget https://www.tbsdtv.com/download/document/linux/media_build-2020-05-22.tar.bz2
#tar jxvf media_build-2020-05-22.tar.bz2
#cd media_build
#./install.sh
#reboot

I had to uncomment the memtype.h kernel patch (this line in patch-kernel.sh: #"v5.6_memtype_h.patch". Otherwise, I would receive this error:

media_build/v4l/ivtvfb.c:40:10: fatal error: asm/memtype.h: No such file or directory

After adding a few sudo calls in install.sh, I could build the driver again.

@zhang111chao
Copy link

#ifdef CONFIG_X86_64
//#include <asm/memtype.h>
#endif

  1. make
  2. make install

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

7 participants