Jump to content


Photo

astrometa tuner as dvb-c ?


  • Please log in to reply
1 reply to this topic

#1 kallquk

  • Senior Member
  • 38 posts

+1
Neutral

Posted 28 October 2020 - 15:56

hello,

 

May be widely discussed this theme here, anyway I didn't find exactly for my case

 

I have this cheap dongle tuner, recognized by box zgemma star s with openpli 7.3:

 

Bus 004 Device 004: ID 15f4:0131 HanfTekDevice Descriptor:

bLength 18bDescriptorType 1

bcdUSB 2.00bDeviceClass 0

bDeviceSubClass 0bDeviceProtocol 0

bMaxPacketSize0 64idVendor 0x15f4 HanfTek

idProduct 0x0131bcdDevice 1.00

iManufacturer 1 astrometadvbt2iProduct 2 dvbt2

iSerial 0bNumConfigurations 1

Configuration Descriptor:bLength 9

bDescriptorType 2wTotalLength 0x0022

bNumInterfaces 2bConfigurationValue 1

iConfiguration 4 USB2.0-Bulk&IsobmAttributes 0x80

(Bus Powered)MaxPower 500mA

Interface Descriptor:bLength 9

bDescriptorType 4bInterfaceNumber 0

bAlternateSetting 0bNumEndpoints 1

bInterfaceClass 255 Vendor Specific ClassbInterfaceSubClass 255 Vendor Specific Subclass

bInterfaceProtocol 255 Vendor Specific ProtocoliInterface 5 Bulk-In, Interface

Endpoint Descriptor:bLength 7

bDescriptorType 5bEndpointAddress 0x81 EP 1 IN

bmAttributes 2Transfer Type Bulk

Synch Type NoneUsage Type Data

wMaxPacketSize 0x0200 1x 512 bytes bInterval 0

Interface Descriptor:

bLength 9

bDescriptorType 4

bInterfaceNumber 1

bAlternateSetting 0

bNumEndpoints 0

bInterfaceClass 255 Vendor Specific Class

bInterfaceSubClass 255 Vendor Specific Subclass

bInterfaceProtocol 255 Vendor Specific Protocol

iInterface 5 Bulk-In, Interface

Device Qualifier (for other device speed):

bLength 10

bDescriptorType 6

bcdUSB 2.00

bDeviceClass 0

bDeviceSubClass 0

bDeviceProtocol 0

bMaxPacketSize0 64

bNumConfigurations 2

can't get debug descriptor: Resource temporarily unavailable

Device Status: 0x0000

(Bus Powered)

 

[    9.772000] Registered IR keymap rc-cec
[    9.773000] input: RC for hdmi_cec as /devices/platform/hdmi.0/rc/rc0/input4
[    9.776000] rc rc0: RC for hdmi_cec as /devices/platform/hdmi.0/rc/rc0
[   17.896000] usb 1-1: dvb_usb_v2: found a 'Astrometa DVB-T2' in warm state
[   17.984000] usb 1-1: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[   17.985000] dvbdev: DVB: registering new adapter (Astrometa DVB-T2)
[   18.111000] i2c i2c-7: Added multiplexed i2c bus 8
[   18.111000] rtl2832 7-0010: Realtek RTL2832 successfully attached
[   18.111000] usb 1-1: DVB: registering adapter 1 frontend 0 (Realtek RTL2832 (DVB-T))...
[   18.240000] r820t 8-003a: creating new instance
[   18.249000] r820t 8-003a: Rafael Micro r820t successfully identified
[   18.319000] Registered IR keymap rc-empty
[   18.320000] input: Astrometa DVB-T2 as /devices/platform/ehci-brcm.0/usb1/1-1/rc/rc1/input5
[   18.321000] rc rc1: Astrometa DVB-T2 as /devices/platform/ehci-brcm.0/usb1/1-1/rc/rc1
[   18.351000] usb 1-1: dvb_usb_v2: schedule remote query interval to 200 msecs
[   18.361000] usb 1-1: dvb_usb_v2: 'Astrometa DVB-T2' successfully initialized and connected
[   18.361000] usbcore: registered new interface driver dvb_usb_rtl28xxu

 

but as dvb-t/2, and I, desperately, need a dvb-c.

It, clearly, registers one frontend only. Refering to: https://linuxtv.org/...strometa_DVB-T2, I think that is model TVR801/R820T, where is specified, also, that may be not support dvb-c. I downloaded a latest kernel source and while browsing menuconfig, found at 'device drivers' - 'multimedia support' - 'Media ancillary drivers' - 'customize dvb frontends' where driver rtl2832 is exclusively under dvb-t section.

 

Saying these, I used this tuner as dvb-c in windows with altdvb working ok, in HD too:

USB\VID_15F4&PID_0131&MI_00\6&12B1B47A&0&0000

with drivers got at manufacturer website: http://www.astrometa...egrated_en.html.

There are separated windows drivers for dvb-t and dvb-c, not both, no support for linux, briefly mentioning that drivers are integrated in kernel.

 

Is there a happy end for using this tuner as dvb-c?

thanks in advance


 


Re: astrometa tuner as dvb-c ? #2 kallquk

  • Senior Member
  • 38 posts

+1
Neutral

Posted 2 November 2020 - 20:48

I attached tuner on pc debian64 with a custom kernel 5.9.1 and it was fully recognized and connected:

 

[ 3.018731] rtl2832 7-0010: Realtek RTL2832 successfully attached[ 3.019049] i2c i2c-7: client [rtl2832] registered with bus id 7-0010

[ 3.093186] i2c i2c-7: cxd2841er_attach(): I2C adapter (____ptrval____) SLVX addr 6e SLVT addr 6c[ 3.097573] i2c i2c-7: cxd2841er_attach(): attaching CXD2837ER DVB-C/T/T2 frontend

[ 3.097585] i2c i2c-7: cxd2841er_attach(): chip ID 0xb1 OK.[ 3.097589] usb 2-1.6: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))...

[ 3.097593] dvbdev: dvb_create_media_entity: media entity 'Realtek RTL2832 (DVB-T)' registered.[ 3.097645] usb 2-1.6: DVB: registering adapter 0 frontend 1 (Sony CXD2837ER DVB-T/T2/C demodulator)...

[ 3.097647] dvbdev: dvb_create_media_entity: media entity 'Sony CXD2837ER DVB-T/T2/C demodulator' registered.[ 3.109483] r820t 8-003a: creating new instance

[ 3.119906] r820t 8-003a: Rafael Micro r820t successfully identified[ 3.119913] r820t 8-003a: attaching existing instance

[ 3.160613] r820t 8-003a: Rafael Micro r820t successfully identified[ 3.191715] rtl2832_sdr rtl2832_sdr.2.auto: Registered as swradio0

 

 

Then I made a openembedded environment and build image for zgemma h7. I applied the patch here: https://patchwork.ke...445.GA1344@NMT/, then changed original cxd2841.c, cxd2841.h and cxd2841_priv.h of original kernel(4.10.12) with the same of kernel 5,9,1, after eleminating some errors, I can obtain cxd2841.ko, put it in the box, but it cannot boot if tuner is attached with kernel panic:

 

[ 72.029043] usb 2-1: dvb_usb_v2: found a 'Astrometa DVB-T2' in warm state

[ 72.174839] usb 2-1: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer

[ 72.184335] dvbdev: DVB: registering new adapter (Astrometa DVB-T2)

[ 72.202100] i2c i2c-8: Added multiplexed i2c bus 9

[ 72.206949] rtl2832 8-0010: Realtek RTL2832 successfully attached

[ 72.219535] i2c i2c-8: cxd2841er_attach(): I2C adapter d3179070 SLVX addr 6e SLVT addr 6c

[ 72.232253] i2c i2c-8: cxd2841er_attach(): attaching CXD2837ER DVB-C/T/T2 frontend

[ 72.239850] i2c i2c-8: cxd2841er_attach(): chip ID 0xb1 OK.

[ 72.245475] usb 2-1: DVB: registering adapter 1 frontend 0 (Realtek RTL2832 (DVB-T))...

[ 72.253722] usb 2-1: DVB: registering adapter 1 frontend 1 (Sony CXD2837ER DVB-T/T2/C demodulator)...

[ 72.270204] r820t 9-003a: creating new instance

[ 72.281762] r820t 9-003a: Rafael Micro r820t successfully identified

[ 72.288172] r820t 9-003a: attaching existing instance

[ 72.293273] Unable to handle kernel NULL pointer dereference at virtual address 00000008

[ 72.301414] pgd = d1d668c0

[ 72.304142] [00000008] *pgd=13b3e003, *pmd=13a09003, *pte=00000000

[ 72.310369] Internal error: Oops: 207 [#1] SMP ARM

[ 72.315167] Modules linked in: r820t cxd2841er rtl2832 dvb_usb_rtl28xxu(+) dvb_usb_v2 nfsd ipv6 h7(FO) h7_3(O) h7_2(O) h7_1(O)

[ 72.326593] CPU: 1 PID: 1962 Comm: modprobe Tainted: GF O 4.10.12 #1

[ 72.333996] Hardware name: Broadcom STB (Flattened Device Tree)

[ 72.339921] task: d3ae3180 task.stack: d3a14000

[ 72.344466] PC is at i2c_transfer+0x8/0xe4

[ 72.348579] LR is at cxd2841er_read_regs+0x64/0x120 [cxd2841er]

[ 72.354505] pc : [<c04d849c>] lr : [<bfa170a0>] psr: 60040013

[ 72.354505] sp : d3a15b70 ip : 00000000 fp : d31796cc

[ 72.365994] r10: 00000000 r9 : bfa2cb4c r8 : d3a15bde

[ 72.371223] r7 : 00000000 r6 : 00000001 r5 : d1f64800 r4 : 00000000

[ 72.377756] r3 : d3a15b9f r2 : 00000002 r1 : d3a15ba0 r0 : 00000000

[ 72.384291] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user

[ 72.391432] Control: 30c5387d Table: 11d668c0 DAC: 55555555

[ 72.397183] Process modprobe (pid: 1962, stack limit = 0xd3a14218)

[ 72.403370] Stack: (0xd3a15b70 to 0xd3a16000)

[ 72.407731] 5b60: 00000001 d1f64800 00000001 bfa170a0

[ 72.415917] 5b80: 00000000 c00662c4 00000000 00000000 00000000 00000000 c0939de2 08000029

[ 72.424102] 5ba0: 00000000 c0930001 d3a15b9f 00010000 00000001 d3a15bde 00000001 00000001

[ 72.432288] 5bc0: d1f64800 00000000 00000008 bfa17190 00000001 00000000 d31796cc c0066608

[ 72.440474] 5be0: d1f64800 00000001 bfa2cb60 d1d44000 bfa06218 bfa17218 00000001 bfa29f44

[ 72.448660] 5c00: bfa2c87c d1d03a80 d1da7400 bfa29f88 00000000 d3179000 bfa074e8 d31792b8

[ 72.456846] 5c20: d3179000 bfa074e8 d31792b8 d2730700 bfa29ebc 00000002 00000000 bfa04ac4

[ 72.465032] 5c40: 00000021 c0509c90 c07df9dc 00000001 c07dfae4 00000000 00000000 00000000

[ 72.473217] 5c60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 72.481402] 5c80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 c06d4bc4

[ 72.489587] 5ca0: 00000000 00000000 00000000 00000000 fffffffe 00000001 ffffffff 00000000

[ 72.497773] 5cc0: 00000000 00000000 c05148bc d31793a4 d3179000 d31792b8 bf9f8f34 d3179000

[ 72.505958] 5ce0: 00000002 bf9f98b0 bfa074d8 c07a3eb8 d2ca2c70 00000034 bf9fb668 bf9f8d7c

[ 72.514144] 5d00: d1d33400 bf9fc2d8 00000001 bf9fb99c bf9f8f34 d31793ec 00000000 c03ad644

[ 72.522328] 5d20: d1d33420 d1d33420 00000000 d2ca2c70 d2ca2c00 bfa07484 d1d33400 bfa06744

[ 72.530514] 5d40: ffffffed c0480e5c c0480d44 d1d33420 c0951544 c0918ef0 bfa07484 00000000

[ 72.538700] 5d60: 0000000b 00000000 00000024 c03a3404 bfa07484 c048050c d1d33420 d1d33454

[ 72.546886] 5d80: bfa07484 c08f65b8 00000000 00000001 00000000 c03a3784 00000000 bfa07484

[ 72.555071] 5da0: c03a3688 c03a15d8 d3067858 d3b3c034 bfa07484 d3b77480 c0918e18 c03a2888

[ 72.563257] 5dc0: bfa06f20 c08d5e00 bfa07484 c08f65b8 bfa06f20 bfa07484 bfa07900 c03a40f8

[ 72.571443] 5de0: bfa07450 c08f65b8 bfa06f20 c047fa14 ffffe000 bfa0a000 00000000 d1d67700

[ 72.579628] 5e00: d1d66264 c0009808 bfa07948 00000000 00000000 00000000 f43f0000 f43effff

[ 72.587815] 5e20: ffe00000 c0003020 d409de44 00011d49 c0913780 c0913780 00000000 00000000

[ 72.596000] 5e40: 00000000 a0080113 d1d67700 f43e4000 bfa07900 00000001 d1d66240 d1d66264

[ 72.604185] 5e60: 00000001 c00b52b4 bfa07900 d1d66264 00000001 d3a15f54 00000001 d1d66240

[ 72.612372] 5e80: bfa07900 c0091e38 bfa0790c 00007fff bfa07900 c008fa4c bfa07948 00000028

[ 72.620557] 5ea0: bfa07a14 bfa07abc f43eea88 bfa0790c c0682fd4 c0762c18 0000ab00 c010f45c

[ 72.628742] 5ec0: 0000ab00 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 72.636927] 5ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[ 72.645112] 5f00: 00000000 00000000 7fffffff 00000000 00000005 00029124 0000017b c00102e4

[ 72.653298] 5f20: d3a14000 00000000 000280cc c009264c 7fffffff 00000000 00000003 00000001

[ 72.661484] 5f40: d26a50c0 f43e4000 0000ab00 00000000 00000002 f43e4000 0000ab00 f43ee560

[ 72.669670] 5f60: f43ee3fc f43eb494 00004b04 00004ed4 bfa074e8 0000002b 00000000 00002aa4

[ 72.677855] 5f80: 00000021 00000022 00000019 0000001d 00000010 00000000 0003ce08 0003b210

[ 72.686042] 5fa0: 00000000 c0010140 0003ce08 0003b210 00000005 00029124 00000000 00000000

[ 72.694228] 5fc0: 0003ce08 0003b210 00000000 0000017b 00000000 00000000 00000000 000280cc

[ 72.702413] 5fe0: be8d6988 be8d6978 000205c8 b6eb5b00 600f0010 00000005 55b32039 4deb28dc

[ 72.710611] [<c04d849c>] (i2c_transfer) from [<bfa170a0>] (cxd2841er_read_regs+0x64/0x120 [cxd2841er])

[ 72.719941] [<bfa170a0>] (cxd2841er_read_regs [cxd2841er]) from [<bfa17190>] (cxd2841er_set_reg_bits+0x34/0x74 [cxd2841er])

[ 72.731087] [<bfa17190>] (cxd2841er_set_reg_bits [cxd2841er]) from [<bfa17218>] (cxd2841er_i2c_gate_ctrl+0x48/0x7c [cxd2841er])

[ 72.742581] [<bfa17218>] (cxd2841er_i2c_gate_ctrl [cxd2841er]) from [<bfa29f88>] (r820t_attach+0xcc/0x2c8 [r820t])

[ 72.752955] [<bfa29f88>] (r820t_attach [r820t]) from [<bfa04ac4>] (rtl2832u_tuner_attach+0x43c/0x77c [dvb_usb_rtl28xxu])

[ 72.763847] [<bfa04ac4>] (rtl2832u_tuner_attach [dvb_usb_rtl28xxu]) from [<bf9f98b0>] (dvb_usbv2_probe+0x68c/0x100c [dvb_usb_v2])

[ 72.775520] [<bf9f98b0>] (dvb_usbv2_probe [dvb_usb_v2]) from [<c0480e5c>] (usb_probe_interface+0x118/0x29c)

[ 72.785278] [<c0480e5c>] (usb_probe_interface) from [<c03a3404>] (driver_probe_device+0x1b8/0x43c)

[ 72.794250] [<c03a3404>] (driver_probe_device) from [<c03a3784>] (__driver_attach+0xfc/0x118)

[ 72.802785] [<c03a3784>] (__driver_attach) from [<c03a15d8>] (bus_for_each_dev+0x68/0x9c)

[ 72.810973] [<c03a15d8>] (bus_for_each_dev) from [<c03a2888>] (bus_add_driver+0x1ac/0x26c)

[ 72.819249] [<c03a2888>] (bus_add_driver) from [<c03a40f8>] (driver_register+0x78/0xf4)

[ 72.827261] [<c03a40f8>] (driver_register) from [<c047fa14>] (usb_register_driver+0x70/0x134)

[ 72.835799] [<c047fa14>] (usb_register_driver) from [<c0009808>] (do_one_initcall+0x44/0x168)

[ 72.844342] [<c0009808>] (do_one_initcall) from [<c00b52b4>] (do_init_module+0x60/0x3ac)

[ 72.852447] [<c00b52b4>] (do_init_module) from [<c0091e38>] (load_module+0x1d04/0x22dc)

[ 72.860462] [<c0091e38>] (load_module) from [<c009264c>] (SyS_finit_module+0xb4/0xf0)

[ 72.868304] [<c009264c>] (SyS_finit_module) from [<c0010140>] (ret_fast_syscall+0x0/0x34)

[ 72.876491] Code: ebffff43 eaffff93 e92d4070 e1a04000 (e5903008)

[ 72.882643] ---[ end trace f6afaba74c3eaf6e ]---

 

As Can see, all devices are recognized but then an error happens

Now, I don't know to continue, please help


Edited by kallquk, 2 November 2020 - 20:49.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users