Moderator Control Panel ]

TBS6285 and make not work

TBS6285 and make not work

Postby WhatIcanDo » Sat Jan 02, 2016 7:27 pm

Hi,

I have used TBS about year or two but now I have problem when I make this driver package.
Now I update my linux to latest Ubuntu LTS 14 and when I start make this driver package it only make 2 modules not more. Seems that when I run this make menuconfig and make changes there and save, then problems start. When I run make all command all is working but I need that staging modules too, so where is problem? And how I can help also TBSD to solve this?
WhatIcanDo
 
Posts: 10
Joined: Fri Apr 11, 2014 2:11 am

Re: TBS6285 and make not work

Postby SergioDanielG » Sat Jan 02, 2016 9:35 pm

Hi, can you put output of your make command when only make 2 modules?

Kind regards.
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina

Re: TBS6285 and make not work

Postby WhatIcanDo » Sat Jan 02, 2016 9:50 pm

Here for more information and commands

mkdir folder
cd folder
wget urltbsdrivers.zip
unzip tbsdrivers.zip
bzip2 -d linux-tbs-drivers.tar.bz2
tar xvf linux-tbs-drivers.tar
cd linux-tbs-drivers
find -type d -exec chmod 755 \{\} \;
find -type f -exec chmod 644 \{\} \;
find -name '*.sh' -exec chmod 755 \{\} \;
find -name '*.pl' -exec chmod 755 \{\} \;
./v4l/tbs-x86_64.sh
./v4l/tbs-dvbc-x86_64.sh
make menuconfig -> Activated wanted ir module in staging drivers section and save and exit
make

Code: Select All Code
user@vdr:~/folder/linux-tbs-drivers$ make
make -C /home/user/folder/linux-tbs-drivers/v4l
make[1]: Siirrytään hakemistoon "/home/user/folder/linux-tbs-drivers/v4l"
scripts/make_makefile.pl
./scripts/make_myconfig.pl
make[1]: Poistutaan hakemistosta "/home/user/folder/linux-tbs-drivers/v4l"
make[1]: Siirrytään hakemistoon "/home/user/folder/linux-tbs-drivers/v4l"
perl scripts/make_config_compat.pl /lib/modules/3.13.0-74-generic/build ./.myconfig ./config-compat.h
creating symbolic links...
make -C firmware prep
make[2]: Entering directory `/home/user/folder/linux-tbs-drivers/v4l/firmware'
make[2]: Leaving directory `/home/user/folder/linux-tbs-drivers/v4l/firmware'
make -C firmware
make[2]: Entering directory `/home/user/folder/linux-tbs-drivers/v4l/firmware'
  CC  ihex2fw
Generating vicam/firmware.fw
Generating dabusb/firmware.fw
Generating dabusb/bitstream.bin
Generating ttusb-budget/dspbootcode.bin
Generating cpia2/stv0672_vp4.bin
Generating av7110/bootcode.bin
make[2]: Leaving directory `/home/user/folder/linux-tbs-drivers/v4l/firmware'
Kernel build directory is /lib/modules/3.13.0-74-generic/build
make -C /lib/modules/3.13.0-74-generic/build SUBDIRS=/home/user/folder/linux-tbs-drivers/v4l  modules
make[2]: Entering directory `/usr/src/linux-headers-3.13.0-74-generic'
  CC [M]  /home/user/folder/linux-tbs-drivers/v4l/cx88-mpeg.o
  LD [M]  /home/user/folder/linux-tbs-drivers/v4l/cx8802.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/user/folder/linux-tbs-drivers/v4l/cx8802.mod.o
  LD [M]  /home/user/folder/linux-tbs-drivers/v4l/cx8802.ko
make[2]: Leaving directory `/usr/src/linux-headers-3.13.0-74-generic'
./scripts/rmmod.pl check
found 1 modules
make[1]: Poistutaan hakemistosta "/home/user/folder/linux-tbs-drivers/v4l"
user@vdr:~/folder/linux-tbs-drivers$



Kernel 3.13.0-74-generic, I read that this may is issue with kernel?
WhatIcanDo
 
Posts: 10
Joined: Fri Apr 11, 2014 2:11 am

Re: TBS6285 and make not work

Postby SergioDanielG » Sat Jan 02, 2016 10:12 pm

Are you sure make menuconfig select all modules and not onl ir?

tbs drivers works on all 3.* kerner serie, I'd tested id oportunelly.

Kind regards
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina

Re: TBS6285 and make not work

Postby WhatIcanDo » Sat Jan 02, 2016 11:03 pm

SergioDanielG Wrote:Are you sure make menuconfig select all modules and not onl ir?

tbs drivers works on all 3.* kerner serie, I'd tested id oportunelly.

Kind regards

Yes I all default modules are selected and only which I do is add this IR-module. Nothing else.

Yes I know that this is working 3. because before an old installation all worked.
WhatIcanDo
 
Posts: 10
Joined: Fri Apr 11, 2014 2:11 am

Re: TBS6285 and make not work

Postby WhatIcanDo » Sat Jan 02, 2016 11:53 pm

I am currently using yaVDR 0.6 (Ubuntu 14 LTS) and 0.5 use also 3. kernel which this make works fine.

Is there way to show this make command which config this use? Because all that information is in .config file?

Edit. When I make make config I got this error:
./scripts/fix_kconfig.pl
There's a known bug with the building system with this kernel. Working around.
WhatIcanDo
 
Posts: 10
Joined: Fri Apr 11, 2014 2:11 am

Re: TBS6285 and make not work

Postby cody » Tue Jan 05, 2016 9:40 am

i guess what you want to build from staging in lirc, there is simple workaround - on the steps you listed here:

viewtopic.php?f=153&t=9702#p34645

you skip the one where you run "make menuconfig", then after run "make" don't wait the build to finish, quit it with Ctrl+C, then:

open in text editor "./v4l/.config" and at the end copy and paste:

Code: Select All Code
CONFIG_STAGING=y

#
# Media devices in staging
#
# CONFIG_STAGING_BROKEN is not set
# CONFIG_VIDEO_GO7007 is not set
# CONFIG_VIDEO_CX25821 is not set
CONFIG_LIRC_STAGING=y
# CONFIG_LIRC_BT829 is not set
# CONFIG_LIRC_IGORPLUGUSB is not set
# CONFIG_LIRC_IMON is not set
# CONFIG_LIRC_PARALLEL is not set
# CONFIG_LIRC_SASEM is not set
# CONFIG_LIRC_SERIAL is not set
# CONFIG_LIRC_SIR is not set
# CONFIG_LIRC_TTUSBIR is not set
# CONFIG_LIRC_ZILOG is not set
# CONFIG_ALTERA_STAPL is not set
# CONFIG_DVB_CXD2099 is not set


after that run "make" and lirc will build. that same idea should work even if you want to build something else from staging, not lirc. so, i more or less use lirc as example. BTW, those missing config lines, you can take and copy&paste from the bad config when you used menuconfig. so, it's easy to make one broken build to get the necessary config lines and then paste them in the default config.
cody
 
Posts: 627
Joined: Tue Apr 13, 2010 11:20 pm

Re: TBS6285 and make not work

Postby WhatIcanDo » Tue Jan 05, 2016 11:41 pm

Thanks so if I want to build lirc serial I modified config like this?

Code: Select All Code
CONFIG_LIRC_SERIAL=y


Edit.
Correct mode is m not y.

Code: Select All Code
CONFIG_LIRC_SERIAL=m
WhatIcanDo
 
Posts: 10
Joined: Fri Apr 11, 2014 2:11 am

Re: TBS6285 and make not work

Postby WhatIcanDo » Thu Jan 07, 2016 7:30 am

This helped to make lirc but now card saying

Code: Select All Code
disagrees about version of symbol dvb_frontend_detach


Edit.
sudo rm -r -f /lib/modules/$(uname -r)/kernel/drivers/media and then install and that fixed.
WhatIcanDo
 
Posts: 10
Joined: Fri Apr 11, 2014 2:11 am


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest