Moderator Control Panel ]

Compile error on 3.10.0-862.14.4.el7.x86_64

Compile error on 3.10.0-862.14.4.el7.x86_64

Postby lionelbarker » Tue Nov 06, 2018 6:22 am

I have PC running Linux Centos 7 with a TBS6982SE and TV headend for a few years now.

Every few months I do a yum update, recompile the TBS drivers (currently I am on v170330) and keep going.

On the last update the kernel moved from 3.10.0-693.21.1.el7.x86_64 to 3.10.0-862.14.4.el7.x86_64 and I got this error

'struct i2c_client' has no member named 'driver'

I rolled back the kernel to 3.10.0-693.21.1.el7.x86_64 and I am operable again. (I sorry I did write down the source file the error was in)

I did find this:-

ftp://rpmfind.net/linux/RPM/centos/7.5. ... 86_64.html which has

- [i2c] Remove redundant 'driver' field from the i2c_client struct (Gopal Tiwari) [1456705]
- [media] core: Don't use i2c_client->driver (Gopal Tiwari) [1456705]

I also found this:-

https://lists.freedesktop.org/archives/ ... 46219.html

The 'driver' field of the i2c_client struct is redundant and is going to be
removed. The results of the expressions 'client->driver.driver->field' and
'client->dev.driver->field' are identical, so replace all occurrences of the
former with the later.
...
-#define PREFIX (t->i2c->driver->driver.name)
+#define PREFIX (t->i2c->dev.driver->name)

So I have a working system, I just can't move forward. I can roll the kernel forward and attempt to update the tbs driver myself with the suggestion above.

But if Turbosight was going to do this anyway - I'll wait..
lionelbarker
 
Posts: 2
Joined: Sun Nov 04, 2018 10:30 pm

Re: Compile error on 3.10.0-862.14.4.el7.x86_64

Postby steven » Tue Nov 06, 2018 3:38 pm

Hi

You can have a try update the kernel to 4.x then try with this package again :
#sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/
1.wget http://www.tbsiptv.com/download/common/ ... 170330.zip
2.unzip tbs-linux-drivers_v170330.zip
3. tar jxvf linux-tbs-drivers.tar.bz2
4. cd linux-tbs-drivers
5. ./v4l/tbs-x86_64.sh
6. make -j4
7.make install
8.restart

Thanks

Kind Regards

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


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron