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

Usb Tuner TBS5930 dvb s2x with E2 system linux (Dreambox) #374

Open
fairbird opened this issue Dec 23, 2024 · 16 comments
Open

Usb Tuner TBS5930 dvb s2x with E2 system linux (Dreambox) #374

fairbird opened this issue Dec 23, 2024 · 16 comments

Comments

@fairbird
Copy link

fairbird commented Dec 23, 2024

I'm tring to support Usb Tuner TBS5930 with E2 devices such as dreambox.
I have cherry-pick the codes and files from your source and created this patch with some edit to make it compatible with E2 system kernel 3.14.
fairbird/openpli-dreambox-oe-core@eafe53a
and
fairbird/openpli-dreambox-oe-core@cdcc40a

And also sent drivers (dvb-usb-id5930 + dvb-demod-m88rs6060.fw) to (/lib/firmware)

But the tuner does not appear on tuner screen option ...
And here the dmesg result !
dmesg.txt

@crazycat69
Copy link

crazycat69 commented Dec 23, 2024

modprobe dvb-usb-tbs5930

@fairbird
Copy link
Author

fairbird commented Dec 23, 2024

As he sent to me the result is ...

root@dm900:~# modprobe dvb-usb-tbs5930
modprobe: FATAL: Module dvb-usb-tbs5930 not found in directory /lib/modules/3.14-1.17-dm900

should be

root@dm900:# modprobe dvb-usb-tbsusb
root@dm900:#
root@dm900:# modprobe dvb-usb
root@dm900:#

root@dm900:~# ls -n /lib/firmware/dvb-*
-rw-rw-r-- 1 0 0 12436 Dec 23 22:22 /lib/firmware/dvb-demod-m88rs6060.fw
-rw-rw-r-- 1 0 0 8192 Dec 23 22:22 /lib/firmware/dvb-usb-id5930.fw
-rw-r--r-- 1 0 0 8192 Apr 6 2011 /lib/firmware/dvb-usb-tbsqbox-id5925.fw
-rw-r--r-- 1 0 0 8192 Apr 6 2011 /lib/firmware/dvb-usb-tbsqbox-id5980.fw

root@dm900:# ls -n /lib/modules/3.14-1.17-dm920/kernel/drivers/media/usb/dvb-usb
-rw-r--r-- 1 0 0 32576 Mar 31 2014 dvb-usb-tbsusb.ko
-rw-r--r-- 1 0 0 24760 Mar 31 2014 dvb-usb.ko

P.s: With this patch Tuner of (TBS5980 TBS5928 TBS5925 TBS5921 TBS5920 TBS5910) work on Dreambox but even if I add support of TBS5930 the tuner does not appear ...
https://github.com/fairbird/openpli-dreambox-oe-core/blob/develop/meta-dreambox/recipes-linux/linux-dreambox-3.14/0001-Support-TBS-USB-drivers.patch

@crazycat69
Copy link

so 5930 driver not installed

@fairbird
Copy link
Author

No need drive I think as like (TBS5980 TBS5928 TBS5925 TBS5921 TBS5920 TBS5910)
I think need to update this patch
https://github.com/fairbird/openpli-dreambox-oe-core/blob/develop/meta-dreambox/recipes-linux/linux-dreambox-3.14/0001-Support-TBS-USB-drivers.patch
but the information I do not know exactly such as this code what is correct code huld I have add for 5930 is it like 5980 or 5928 or 5910 ?!!
https://github.com/fairbird/openpli-dreambox-oe-core/blob/develop/meta-dreambox/recipes-linux/linux-dreambox-3.14/0001-Support-TBS-USB-drivers.patch#L630-L765

@crazycat69
Copy link

Look like 5930, m88rs6060 modules not compiled.
Need add to defconfig for each STB (DM900, 920)
https://github.com/fairbird/openpli-dreambox-oe-core/blob/develop/meta-dreambox/recipes-linux/linux-dreambox-3.14/dm900/defconfig
https://github.com/fairbird/openpli-dreambox-oe-core/blob/develop/meta-dreambox/recipes-linux/linux-dreambox-3.14/dm920/defconfig

@fairbird
Copy link
Author

I have it already
https://github.com/fairbird/openpli-dreambox-oe-core/blob/develop/meta-dreambox/recipes-linux/linux-dreambox-3.14/dm900/defconfig#L2978

But I think as I wrote we need to update this patch with correct codes
https://github.com/fairbird/openpli-dreambox-oe-core/blob/develop/meta-dreambox/recipes-linux/linux-dreambox-3.14/0001-Support-TBS-USB-drivers.patch

And we have only these drivers for TBS-USB but what driver should be work with 5930. So I can update the patch depend on it correct driver. This is the point.

root@dm900:# ls -n /lib/modules/3.14-1.17-dm920/kernel/drivers/media/dvb-frontends
-rw-r--r-- 1 0 0 21436 Mar 31 2014 cx24116.ko
-rw-r--r-- 1 0 0 5844 Mar 31 2014 stb6000.ko
-rw-r--r-- 1 0 0 9096 Mar 31 2014 stb6100.ko
-rw-r--r-- 1 0 0 11248 Mar 31 2014 stv0288.ko
-rw-r--r-- 1 0 0 64352 Mar 31 2014 stv090x.ko
-rw-r--r-- 1 0 0 12856 Mar 31 2014 tda10071.ko

@crazycat69
Copy link

crazycat69 commented Dec 24, 2024

ok CONFIG_DVB_M88RS6060 present, but need CONFIG_DVB_USB_TBS5930 also :)

P.S. "unified" tbs-usb driver not support 5930

@fairbird
Copy link
Author

fairbird commented Dec 24, 2024

Ok .. I will test also CONFIG_DVB_USB_TBS5930 !
But have you look in this patch ?!
TBS tuner on E2 device as patch shown using other drivers available in E2
https://github.com/fairbird/openpli-dreambox-oe-core/blob/develop/meta-dreambox/recipes-linux/linux-dreambox-3.14/0001-Support-TBS-USB-drivers.patch#L233-L251

So I think we need just update the patch and add TBS5930 ! with correct code informations ?!

@fairbird
Copy link
Author

fairbird commented Dec 25, 2024

@crazycat69
After Adding (CONFIG_DVB_M88RS6060 and CONFIG_DVB_USB_TBS5930) in defconfig and compiled driver ...
https://github.com/fairbird/openpli-dreambox-oe-core/blob/develop/meta-dreambox/recipes-linux/linux-dreambox-3.14/dm900/defconfig#L2979
https://github.com/fairbird/openpli-dreambox-oe-core/blob/develop/meta-dreambox/recipes-linux/linux-dreambox-3.14/dm900/defconfig#L2610
The deives (Dm900) does not boot (freezing in boot) and after remove usb tuner the device boot again normally .
So the driver of dvb-usb-tbs5930 does not work probable!
The patch I think not correctly !
https://github.com/fairbird/openpli-dreambox-oe-core/blob/develop/meta-dreambox/recipes-linux/linux-dreambox-3.14/0001-add-support-for-tbs5930.patch

So I will create the new patch and I will never edit if I get errors. First I will send the errors here to look on it and What your advice to fix errors !

@fairbird
Copy link
Author

fairbird commented Dec 26, 2024

@crazycat69

Here is new the patch based on your files from this source without change any codes
0001-add-support-for-tbs5930.patch.txt

And here is what I have got from errors !
Any advice ?!

/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/usb/dvb-usb/tbs5930.c:171:9: error: implicit declaration of function 'strscpy'; did you mean 'strlcpy'? [-Werror=implicit-function-declaration]
171 | strscpy(info.type, "m88rs6060", I2C_NAME_SIZE);
| ^~~~~~~
| strlcpy
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/usb/dvb-usb/tbs5930.c:175:18: error: implicit declaration of function 'i2c_new_client_device'; did you mean 'i2c_new_probed_device'? [-Werror=implicit-function-declaration]
175 | client = i2c_new_client_device(&d->i2c_adap,&info);
| ^~~~~~~~~~~~~~~~~~~~~
| i2c_new_probed_device
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/usb/dvb-usb/tbs5930.c:175:16: warning: assignment to 'struct i2c_client *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
175 | client = i2c_new_client_device(&d->i2c_adap,&info);
| ^
LD [M] drivers/media/usb/dvb-usb-v2/dvb-usb-mxl111sf.o
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/usb/dvb-usb/tbs5930.c:176:13: error: implicit declaration of function 'i2c_client_has_driver' [-Werror=implicit-function-declaration]
176 | if(!i2c_client_has_driver(client))
| ^~~~~~~~~~~~~~~~~~~~~
CC [M] net/netfilter/xt_esp.o
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:1932:42: error: array type has incomplete element type 'struct reg_sequence'
1932 | static const struct reg_sequence reset_buf[] = {
| ^~~~~~~~~
CC [M] drivers/net/wireless/ti/wlcore/main.o
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:2129:14: error: 'struct dtv_frontend_properties' has no member named 'scrambling_sequence_index'
2129 | if (c->scrambling_sequence_index) {
| ^~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:2131:29: error: 'struct dtv_frontend_properties' has no member named 'scrambling_sequence_index'
2131 | pls_code = c->scrambling_sequence_index;
| ^~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:1932:42: warning: unused variable 'reset_buf' [-Wunused-variable]
1932 | static const struct reg_sequence reset_buf[] = {
|
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3201:33: error: 'APSK_64' undeclared (first use in this function); did you mean 'APSK_32'?
3201 | p->modulation = APSK_64; break;
| ^~~~~~~
| APSK_32
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3201:33: note: each undeclared identifier is reported only once for each function it appears in
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3207:72: error: 'FEC_1_4' undeclared (first use in this function); did you mean 'FEC_3_4'?
3207 | case MtFeCodeRate_1_4: p->fec_inner = FEC_1_4; break;
| ^~~~~~~
| FEC_3_4
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3208:72: error: 'FEC_1_3' undeclared (first use in this function); did you mean 'FEC_2_3'?
3208 | case MtFeCodeRate_1_3: p->fec_inner = FEC_1_3; break;
| ^~~~~~~
| FEC_2_3
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3218:72: error: 'FEC_5_9' undeclared (first use in this function); did you mean 'FEC_8_9'?
3218 | case MtFeCodeRate_5_9: p->fec_inner = FEC_5_9; break;
| ^~~~~~~
| FEC_8_9
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3219:72: error: 'FEC_7_9' undeclared (first use in this function); did you mean 'FEC_8_9'?
3219 | case MtFeCodeRate_7_9: p->fec_inner = FEC_7_9; break;
| ^~~~~~~
| FEC_8_9
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3220:64: error: 'FEC_4_15' undeclared (first use in this function); did you mean 'FEC_4_5'?
3220 | case MtFeCodeRate_4_15: p->fec_inner = FEC_4_15; break;
| ^~~~~~~~
| FEC_4_5
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3221:64: error: 'FEC_7_15' undeclared (first use in this function); did you mean 'FEC_2_5'?
3221 | case MtFeCodeRate_7_15: p->fec_inner = FEC_7_15; break;
| ^~~~~~~~
| FEC_2_5
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3222:64: error: 'FEC_8_15' undeclared (first use in this function); did you mean 'FEC_2_5'?
3222 | case MtFeCodeRate_8_15: p->fec_inner = FEC_8_15; break;
| ^~~~~~~~
| FEC_2_5
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3223:72: error: 'FEC_11_15' undeclared (first use in this function); did you mean 'FEC_2_5'?
3223 | case MtFeCodeRate_11_15: p->fec_inner = FEC_11_15; break;
| ^~~~~~~~~
| FEC_2_5
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3224:72: error: 'FEC_13_18' undeclared (first use in this function); did you mean 'FEC_9_10'?
3224 | case MtFeCodeRate_13_18: p->fec_inner = FEC_13_18; break;
| ^~~~~~~~~
| FEC_9_10
CC [M] drivers/net/wireless/rtlwifi/rtl8192ce/hw.o
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3225:64: error: 'FEC_9_20' undeclared (first use in this function); did you mean 'FEC_9_10'?
3225 | case MtFeCodeRate_9_20: p->fec_inner = FEC_9_20; break;
| ^~~~~~~~
| FEC_9_10
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3226:72: error: 'FEC_11_20' undeclared (first use in this function); did you mean 'FEC_1_2'?
3226 | case MtFeCodeRate_11_20: p->fec_inner = FEC_11_20; break;
| ^~~~~~~~~
| FEC_1_2
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3227:72: error: 'FEC_23_36' undeclared (first use in this function); did you mean 'FEC_2_3'?
3227 | case MtFeCodeRate_23_36: p->fec_inner = FEC_23_36; break;
| ^~~~~~~~~
| FEC_2_3
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3228:72: error: 'FEC_25_36' undeclared (first use in this function); did you mean 'FEC_5_6'?
3228 | case MtFeCodeRate_25_36: p->fec_inner = FEC_25_36; break;
| ^~~~~~~~~
| FEC_5_6
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3229:72: error: 'FEC_11_45' undeclared (first use in this function); did you mean 'FEC_2_5'?
3229 | case MtFeCodeRate_11_45: p->fec_inner = FEC_11_45; break;
| ^~~~~~~~~
| FEC_2_5
LD [M] drivers/net/wireless/ath/carl9170/carl9170.o
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3230:72: error: 'FEC_13_45' undeclared (first use in this function); did you mean 'FEC_3_5'?
3230 | case MtFeCodeRate_13_45: p->fec_inner = FEC_13_45; break;
| ^~~~~~~~~
| FEC_3_5
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3231:72: error: 'FEC_14_45' undeclared (first use in this function); did you mean 'FEC_4_5'?
3231 | case MtFeCodeRate_14_45: p->fec_inner = FEC_14_45; break;
| ^~~~~~~~~
| FEC_4_5
CC [M] net/netfilter/ipset/ip_set_hash_ipportip.o
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3232:72: error: 'FEC_26_45' undeclared (first use in this function); did you mean 'FEC_2_5'?
3232 | case MtFeCodeRate_26_45: p->fec_inner = FEC_26_45; break;
| ^~~~~~~~~
| FEC_2_5
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3233:72: error: 'FEC_28_45' undeclared (first use in this function); did you mean 'FEC_2_5'?
3233 | case MtFeCodeRate_28_45: p->fec_inner = FEC_28_45; break;
| ^~~~~~~~~
| FEC_2_5
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3234:72: error: 'FEC_29_45' undeclared (first use in this function); did you mean 'FEC_2_5'?
3234 | case MtFeCodeRate_29_45: p->fec_inner = FEC_29_45; break;
| ^~~~~~~~~
| FEC_2_5
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3235:72: error: 'FEC_31_45' undeclared (first use in this function); did you mean 'FEC_3_5'?
3235 | case MtFeCodeRate_31_45: p->fec_inner = FEC_31_45; break;
| ^~~~~~~~~
| FEC_3_5
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3236:72: error: 'FEC_32_45' undeclared (first use in this function); did you mean 'FEC_2_5'?
3236 | case MtFeCodeRate_32_45: p->fec_inner = FEC_32_45; break;
| ^~~~~~~~~
| FEC_2_5
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3237:72: error: 'FEC_77_90' undeclared (first use in this function); did you mean 'FEC_9_10'?
3237 | case MtFeCodeRate_77_90: p->fec_inner = FEC_77_90; break;
| ^~~~~~~~~
| FEC_9_10
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3249:46: error: 'ROLLOFF_15' undeclared (first use in this function); did you mean 'ROLLOFF_25'?
3249 | p->rolloff = ROLLOFF_15;break;
| ^~~~~~~~~~
| ROLLOFF_25
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3251:46: error: 'ROLLOFF_10' undeclared (first use in this function); did you mean 'ROLLOFF_20'?
3251 | p->rolloff = ROLLOFF_10;break;
| ^~~~~~~~~~
| ROLLOFF_20
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3253:46: error: 'ROLLOFF_5' undeclared (first use in this function); did you mean 'ROLLOFF_25'?
3253 | p->rolloff = ROLLOFF_5;break;
| ^~~~~~~~~
| ROLLOFF_25
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3269:57: error: invalid use of undefined type 'struct ecp3_info'
3269 | dev->config.read_properties(i2c, ecp3inf->reg,
| ^~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3270:47: error: invalid use of undefined type 'struct ecp3_info'
3270 | &(ecp3inf->data));
| ^~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c: At top level:
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3276:40: warning: 'struct ecp3_info' declared inside parameter list will not be visible outside of this definition or declaration
3276 | struct ecp3_info ecp3inf)
| ^~~~~~~~~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c: In function 'm88rs6060_spi_write':
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3283:58: error: invalid use of undefined type 'struct ecp3_info'
3283 | dev->config.write_properties(i2c, ecp3inf->reg,
| ^~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3284:46: error: invalid use of undefined type 'struct ecp3_info'
3284 | ecp3inf->data);
| ^~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3295:52: error: invalid use of undefined type 'struct eeprom_info'
3295 | dev->config.read_eeprom(i2c, eepinf->reg,
| ^~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3296:47: error: invalid use of undefined type 'struct eeprom_info'
3296 | &(eepinf->data));
| ^~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3307:53: error: invalid use of undefined type 'struct eeprom_info'
3307 | dev->config.write_eeprom(i2c, eepinf->reg,
| ^~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3308:45: error: invalid use of undefined type 'struct eeprom_info'
3308 | eepinf->data);
| ^~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c: At top level:
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3316:19: error: 'struct dvb_frontend_info' has no member named 'frequency_min_hz'; did you mean 'frequency_min'?
3316 | .frequency_min_hz = 950 * MHz,
| ^~~~~~~~~~~~~~~~
| frequency_min
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3316:44: error: 'MHz' undeclared here (not in a function)
3316 | .frequency_min_hz = 950 * MHz,
| ^~~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3317:19: error: 'struct dvb_frontend_info' has no member named 'frequency_max_hz'; did you mean 'frequency_max'?
3317 | .frequency_max_hz = 2150 * MHz,
| ^~~~~~~~~~~~~~~~
| frequency_max
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3335:28: note: (near initialization for 'm88rs6060_ops.get_frontend')
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3344:10: error: 'const struct dvb_frontend_ops' has no member named 'spi_read'
3344 | .spi_read = m88rs6060_spi_read,
| ^~~~~~~~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3344:21: warning: initialization of 'int (
)(struct dvb_frontend *, struct dvb_diseqc_slave_reply )' from incompatible pointer type 'void ()(struct dvb_frontend *, struct ecp3_info )' [-Wincompatible-pointer-types]
3344 | .spi_read = m88rs6060_spi_read,
| ^~~~~~~~~~~~~~~~~~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3344:21: note: (near initialization for 'm88rs6060_ops.diseqc_recv_slave_reply')
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3345:10: error: 'const struct dvb_frontend_ops' has no member named 'spi_write'
3345 | .spi_write = m88rs6060_spi_write,
| ^~~~~~~~~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3345:22: warning: initialization of 'int (
)(struct dvb_frontend , fe_sec_mini_cmd_t)' {aka 'int ()(struct dvb_frontend , enum fe_sec_mini_cmd)'} from incompatible pointer type 'void ()(struct dvb_frontend *, struct ecp3_info )' [-Wincompatible-pointer-types]
3345 | .spi_write = m88rs6060_spi_write,
| ^~~~~~~~~~~~~~~~~~~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3345:22: note: (near initialization for 'm88rs6060_ops.diseqc_send_burst')
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3346:10: error: 'const struct dvb_frontend_ops' has no member named 'eeprom_read'
3346 | .eeprom_read = m88rs6060_eeprom_read,
| ^~~~~~~~~~~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3346:24: warning: initialization of 'int (
)(struct dvb_frontend , fe_sec_tone_mode_t)' {aka 'int ()(struct dvb_frontend , enum fe_sec_tone_mode)'} from incompatible pointer type 'void ()(struct dvb_frontend *, struct eeprom_info *)' [-Wincompatible-pointer-types]
3346 | .eeprom_read = m88rs6060_eeprom_read,
| ^~~~~~~~~~~~~~~~~~~~~
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3346:24: note: (near initialization for 'm88rs6060_ops.set_tone')
/home/raed/build_image/My-Openpli/openpli-dreambox-oe-core/build/tmp/work-shared/dm900/kernel-source/drivers/media/dvb-frontends/m88rs6060.c:3347:10: error: 'const struct dvb_frontend_ops' has no member named 'eeprom_write'
3347 | .eeprom_write = m88rs6060_eeprom_write,
| ^~~~~~~~~~~~

@crazycat69
Copy link

Need backport this drivers to 3.14 kernel

@fairbird
Copy link
Author

How. Any patches ?!

@fairbird
Copy link
Author

@crazycat69
Finally the tuner appear but the problem is (Empty) >>> Is it from drivers ?!

screenshot_20241230111540

@crazycat69
Copy link

show kernel log

@fairbird
Copy link
Author

fairbird commented Jan 1, 2025

@crazycat69
Here the log of dmesg
dmesg.txt

And do you think I need to add TSB-5930 code here ?!
https://github.com/fairbird/enigma2-dreambox/blob/develop/lib/dvb/frontend.cpp#L1282
if yes what you suggestion about this code ?!
https://github.com/fairbird/enigma2-dreambox/blob/develop/lib/dvb/frontend.cpp#L1283-L1286

@crazycat69
Copy link

Look like some wrong with frontend name reading in eDVBUsbAdapter::eDVBUsbAdapter()
https://github.com/fairbird/enigma2-dreambox/blob/develop/lib/dvb/dvb.cpp#L305

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

2 participants