Moderator Control Panel ]

TBS5281 with raspberry pi 3 ...

TBS5281 with raspberry pi 3 ...

Postby gkar » Mon Jul 18, 2016 6:01 pm

Hi everybody,

My question is maybe simple but ... is it supposed to work ? because i donwload lastest drivers (on an raspian system (debian for raspberry pi) i can't compile them ... is it normal ?

Code: Select All Code
./v4l/tbs-x86_r3.sh
TBS drivers configured for x86_r3 platform.
root@gkar-pi3:/home/pi/Downloads/tbs# make
make -C /home/pi/Downloads/tbs/v4l
make[1]: Entering directory '/home/pi/Downloads/tbs/v4l'
creating symbolic links...
make -C firmware prep
make[2]: Entering directory '/home/pi/Downloads/tbs/v4l/firmware'
make[2]: Leaving directory '/home/pi/Downloads/tbs/v4l/firmware'
make -C firmware
make[2]: Entering directory '/home/pi/Downloads/tbs/v4l/firmware'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/home/pi/Downloads/tbs/v4l/firmware'
Kernel build directory is /lib/modules/4.4.13-v7+/build
make -C /lib/modules/4.4.13-v7+/build SUBDIRS=/home/pi/Downloads/tbs/v4l  modules
make[2]: Entering directory '/usr/src/linux-headers-4.4.13-v7+'
  LD [M]  /home/pi/Downloads/tbs/v4l/tbs6980fe.o
ld: /home/pi/Downloads/tbs/v4l/tbs6980fe_driver.o: Relocations in generic ELF (EM: 3)
ld: /home/pi/Downloads/tbs/v4l/tbs6980fe_driver.o: Relocations in generic ELF (EM: 3)
ld: /home/pi/Downloads/tbs/v4l/tbs6980fe_driver.o: Relocations in generic ELF (EM: 3)
ld: /home/pi/Downloads/tbs/v4l/tbs6980fe_driver.o: Relocations in generic ELF (EM: 3)
ld: /home/pi/Downloads/tbs/v4l/tbs6980fe_driver.o: Relocations in generic ELF (EM: 3)
ld: /home/pi/Downloads/tbs/v4l/tbs6980fe_driver.o: Relocations in generic ELF (EM: 3)
ld: /home/pi/Downloads/tbs/v4l/tbs6980fe_driver.o: Relocations in generic ELF (EM: 3)
ld: /home/pi/Downloads/tbs/v4l/tbs6980fe_driver.o: Relocations in generic ELF (EM: 3)
ld: /home/pi/Downloads/tbs/v4l/tbs6980fe_driver.o: Relocations in generic ELF (EM: 3)
ld: /home/pi/Downloads/tbs/v4l/tbs6980fe_driver.o: Relocations in generic ELF (EM: 3)
ld: /home/pi/Downloads/tbs/v4l/tbs6980fe_driver.o: Relocations in generic ELF (EM: 3)
/home/pi/Downloads/tbs/v4l/tbs6980fe_driver.o: error adding symbols: File in wrong format
scripts/Makefile.build:391: recipe for target '/home/pi/Downloads/tbs/v4l/tbs6980fe.o' failed
make[3]: *** [/home/pi/Downloads/tbs/v4l/tbs6980fe.o] Error 1
Makefile:1385: recipe for target '_module_/home/pi/Downloads/tbs/v4l' failed
make[2]: *** [_module_/home/pi/Downloads/tbs/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.4.13-v7+'
Makefile:51: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/home/pi/Downloads/tbs/v4l'
Makefile:26: recipe for target 'all' failed
make: *** [all] Error 2
gkar
 
Posts: 4
Joined: Sun Jul 17, 2016 6:50 pm

Re: TBS5281 with raspberry pi 3 ...

Postby crazycat » Tue Jul 19, 2016 1:01 am

Linux-tbs-drivers only for x86/x86_64.
Use open-source drivers from my media_build. But 5281 support need testing.
crazycat
 
Posts: 533
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkov

Re: TBS5281 with raspberry pi 3 ...

Postby gkar » Tue Jul 19, 2016 2:34 am

I've succeeded to compile your driver ... and install it ... some warning appeared

Code: Select All Code
***WARNING:*** You do not have the full kernel sources installed.
This does not prevent you from building the v4l-dvb tree if you have the
kernel headers, but the full kernel source may be required in order to use
make menuconfig / xconfig / qconfig.

If you are experiencing problems building the v4l-dvb tree, please try
building against a vanilla kernel before reporting a bug.

Vanilla kernels are available at http://kernel.org.
On most distros, this will compile a newly downloaded kernel:

cp /boot/config-`uname -r` <your kernel dir>/.config
cd <your kernel dir>
make all modules_install install

Please see your distro's web site for instructions to build a new kernel.

WARNING: This is the V4L/DVB backport tree, with experimental drivers
    backported to run on legacy kernels from the development tree at:
      http://git.linuxtv.org/media-tree.git.
    It is generally safe to use it for testing a new driver or
    feature, but its usage on production environments is risky.
    Don't use it in production. You've been warned.


during compiling some module
Code: Select All Code
  CC [M]  /home/pi/Downloads/tbs3/media_build/v4l/stv6120.o
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c: In function 'init_regs':
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:195:6: warning: unused variable 'bbmode' [-Wunused-variable]
  u32 bbmode = 0xffffffff;
      ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:194:6: warning: unused variable 'agcset' [-Wunused-variable]
  u32 agcset = 0xffffffff;
      ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:193:6: warning: unused variable 'agcref' [-Wunused-variable]
  u32 agcref = 2;
      ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:192:6: warning: unused variable 'agcmode' [-Wunused-variable]
  u32 agcmode = 0;
      ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:191:6: warning: unused variable 'clkdiv' [-Wunused-variable]
  u32 clkdiv = 0;
      ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c: In function 'set_lof':
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:324:6: warning: unused variable 'freq' [-Wunused-variable]
  u32 freq = Frequency;
      ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:322:10: warning: unused variable 'tmp' [-Wunused-variable]
  u8 Icp, tmp;
          ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:321:13: warning: unused variable 'psel' [-Wunused-variable]
  u32 p = 1, psel = 0, fvco, div, frac;
             ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:321:6: warning: unused variable 'p' [-Wunused-variable]
  u32 p = 1, psel = 0, fvco, div, frac;
      ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c: In function 'stv6120_attach':
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:547:6: warning: unused variable 'stat' [-Wunused-variable]
  int stat = 0;
      ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c: At top level:
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:145:12: warning: 'read_regs' defined but not used [-Wunused-function]
 static int read_regs(struct stv *state, u8 reg, u8 *val, int len)
            ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:445:12: warning: 'get_frequency' defined but not used [-Wunused-function]
 static int get_frequency(struct dvb_frontend *fe, u32 *frequency)
            ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:451:12: warning: 'AGC_Gain' defined but not used [-Wunused-variable]
 static u32 AGC_Gain[] = {
            ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:484:12: warning: 'get_rf_strength' defined but not used [-Wunused-function]
 static int get_rf_strength(struct dvb_frontend *fe, u16 *st)
            ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:502:12: warning: 'get_if' defined but not used [-Wunused-function]
 static int get_if(struct dvb_frontend *fe, u32 *frequency)
            ^
/home/pi/Downloads/tbs3/media_build/v4l/stv6120.c:508:12: warning: 'get_bandwidth' defined but not used [-Wunused-function]
 static int get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
            ^
  CC [M]  /home/pi/Downloads/tbs3/media_build/v4l/r848.o
/home/pi/Downloads/tbs3/media_build/v4l/r848.c: In function 'R848_SysFreq_Sel':
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DVB_T_6M' not handled in switch [-Wswitch]
     switch(R848_Standard) {
     ^
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DVB_T_7M' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DVB_T_8M' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DVB_C_8M' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DVB_C_6M' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_J83B' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_ISDB_T' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_ISDB_T_4570' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DTMB_4570' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DTMB_6000' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DTMB_6M_BW_IF_5M' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DTMB_6M_BW_IF_4500' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_ATSC' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DVB_S' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DVB_T_6M_IF_5M' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DVB_T_7M_IF_5M' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DVB_T_8M_IF_5M' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DVB_C_8M_IF_5M' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DVB_C_6M_IF_5M' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_J83B_IF_5M' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_ISDB_T_IF_5M' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_DTMB_IF_5M' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_ATSC_IF_5M' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_FM' not handled in switch [-Wswitch]
/home/pi/Downloads/tbs3/media_build/v4l/r848.c:2796:5: warning: enumeration value 'R848_STD_SIZE' not handled in switch [-Wswitch]
gkar
 
Posts: 4
Joined: Sun Jul 17, 2016 6:50 pm

Re: TBS5281 with raspberry pi 3 ...

Postby gkar » Tue Jul 19, 2016 2:38 am

and also
Code: Select All Code
  CC [M]  /home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.o
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c: In function 'config_ts':
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c:984:18: warning: unused variable 'mxl561_xpt_ts_valid' [-Wunused-variable]
  MXL_REG_FIELD_T mxl561_xpt_ts_valid[MXL_HYDRA_DEMOD_ID_6] = {
                  ^
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c:980:18: warning: unused variable 'mxl561_xpt_ts_sync' [-Wunused-variable]
  MXL_REG_FIELD_T mxl561_xpt_ts_sync[MXL_HYDRA_DEMOD_ID_6] = {
                  ^
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c: In function 'load_fw':
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c:1161:44: warning: passing argument 3 of 'firmware_download' discards 'const' qualifier from pointer target type
  stat = firmware_download(state, fw->size, fw->data);
                                            ^
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c:768:12: note: expected 'u8 *' but argument is of type 'const u8 * const'
 static int firmware_download(struct mxl *state, u32 mbinBufferSize,
            ^
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c:1149:6: warning: unused variable 'buf' [-Wunused-variable]
  u8 *buf;
      ^
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c:1147:21: warning: unused variable 'cfg' [-Wunused-variable]
  struct mxl5xx_cfg *cfg = state->base->cfg;
                     ^
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c: In function 'probe':
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c:1218:28: warning: unused variable 'mpegInterfaceCfg' [-Wunused-variable]
  MXL_HYDRA_MPEGOUT_PARAM_T mpegInterfaceCfg;
                            ^
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c:1217:18: warning: unused variable 'j' [-Wunused-variable]
  int fw, status, j;
                  ^
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c: At top level:
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c:154:12: warning: 'write_register_block' defined but not used [-Wunused-function]
 static int write_register_block(struct mxl *state, u32 reg, u32 size, u8 *data)
            ^
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c:223:12: warning: 'read_register_block' defined but not used [-Wunused-function]
 static int read_register_block(struct mxl *state, u32 reg, u32 size, u8 *data)
            ^
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c:278:13: warning: 'extract_from_mnemonic' defined but not used [-Wunused-function]
 static void extract_from_mnemonic(u32 regAddr, u8 lsbPos, u8 width,
             ^
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c:921:12: warning: 'config_ts' defined but not used [-Wunused-function]
 static int config_ts(struct mxl *state, MXL_HYDRA_DEMOD_ID_E demodId, MXL_HYDRA_MPEGOUT_PARAM_T *mpegOutParamPtr)
            ^
/home/pi/Downloads/tbs3/media_build/v4l/mxl5xx.c:1109:12: warning: 'config_mux' defined but not used [-Wunused-function]
 static int config_mux(struct mxl *state)
            ^


but after a reboot i only have this in my dmesg ...
Code: Select All Code
[lun. juil. 18 20:21:30 2016] usb 1-1.5: new high-speed USB device number 5 using dwc_otg
[lun. juil. 18 20:21:30 2016] usb 1-1.5: New USB device found, idVendor=734c, idProduct=5281
[lun. juil. 18 20:21:30 2016] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[lun. juil. 18 20:21:30 2016] usb 1-1.5: Manufacturer: Turbosight Technolog


Any idea ?

lsusb gives me that :
Code: Select All Code
Bus 001 Device 004: ID 734c:5281 TBS Technologies China
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
gkar
 
Posts: 4
Joined: Sun Jul 17, 2016 6:50 pm

Re: TBS5281 with raspberry pi 3 ...

Postby crazycat » Tue Jul 19, 2016 5:01 am

what kernel you have ? look like without i2c mux support, need for si2157/2168 drivers.
crazycat
 
Posts: 533
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkov

Re: TBS5281 with raspberry pi 3 ...

Postby steven » Tue Jul 19, 2016 11:04 am

Hi

For TBS5281's open source code driver we still on working now ,when we tested it ,we will release to the github.

Thanks

Kind Regards

steven
steven
 
Posts: 2239
Joined: Fri Aug 06, 2010 3:23 pm

Re: TBS5281 with raspberry pi 3 ...

Postby gkar » Tue Jul 19, 2016 3:09 pm

@crazycat : i use Raspian (debian for Rasp) with this version :
Code: Select All Code
pi@gkar-pi3:~ $ uname -a
Linux gkar-pi3 4.4.13-v7+ #894 SMP Mon Jun 13 13:13:27 BST 2016 armv7l GNU/Linux


I've tried to activate i2c support because it could be switch off in configuration menu of raspian but it doesn't modify the result ...

Result of my dmesg in this file

@steven : great news ... could you send me an email when it's done ... or make a reply there ?
gkar
 
Posts: 4
Joined: Sun Jul 17, 2016 6:50 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron