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

TBS 5930 (m88rs6060) + Radxa ROCK3 Model A boot fail #310

Open
yurym opened this issue Apr 23, 2023 · 25 comments
Open

TBS 5930 (m88rs6060) + Radxa ROCK3 Model A boot fail #310

yurym opened this issue Apr 23, 2023 · 25 comments

Comments

@yurym
Copy link

yurym commented Apr 23, 2023

If I first turn on the TBS 5930 connected to the Rock 3 board and then turn on the board, then an error appears during the board boot. But if I turn on the TBS 5930 and connect to the Rock 3 board when my board is already on, then everything works fine.

Apr 23 12:17:07 rock-3a kernel: [   11.345472] mc: loading out-of-tree module taints kernel.
Apr 23 12:17:07 rock-3a kernel: [   11.345635] mc: module verification failed: signature and/or required key missing - tainting kernel
Apr 23 12:17:07 rock-3a kernel: [   11.346878] mc: Linux media interface: v0.10
Apr 23 12:17:07 rock-3a kernel: [   11.383403] videodev: Linux video capture interface: v2.00
Apr 23 12:17:07 rock-3a kernel: [   11.383421] WARNING: You are using an experimental version of the media stack.
Apr 23 12:17:07 rock-3a kernel: [   11.383421] 	As the driver is backported to an older kernel, it doesn't offer
Apr 23 12:17:07 rock-3a kernel: [   11.383421] 	enough quality for its usage in production.
Apr 23 12:17:07 rock-3a kernel: [   11.383421] 	Use it with care.
Apr 23 12:17:07 rock-3a kernel: [   11.383421] Latest git patches (needed if you report a bug to linux-media@vger.kernel.org):
Apr 23 12:17:07 rock-3a kernel: [   11.383421] 	d94513e97be429847a8bf6ba6bcf74492d3d24d9 media: dvb-frontends/m88rs6060: Fix modcode table.
Apr 23 12:17:07 rock-3a kernel: [   11.389027] WARNING: You are using an experimental version of the media stack.
Apr 23 12:17:07 rock-3a kernel: [   11.389027] 	As the driver is backported to an older kernel, it doesn't offer
Apr 23 12:17:07 rock-3a kernel: [   11.389027] 	enough quality for its usage in production.
Apr 23 12:17:07 rock-3a kernel: [   11.389027] 	Use it with care.
Apr 23 12:17:07 rock-3a kernel: [   11.389027] Latest git patches (needed if you report a bug to linux-media@vger.kernel.org):
Apr 23 12:17:07 rock-3a kernel: [   11.389027] 	d94513e97be429847a8bf6ba6bcf74492d3d24d9 media: dvb-frontends/m88rs6060: Fix modcode table.
Apr 23 12:17:07 rock-3a kernel: [   11.397860] dvb-usb: found a 'TurboSight TBS 5930 DVB-S/S2/S2x' in cold state, will try to load a firmware
Apr 23 12:17:07 rock-3a kernel: [   11.411241] dvb-usb: downloading firmware from file 'dvb-usb-id5930.fw'
Apr 23 12:17:07 rock-3a kernel: [   11.411271] tbs5930: start downloading TBS5930 firmware
Apr 23 12:17:07 rock-3a kernel: [   11.413976] cfg80211: Loading compiled-in X.509 certificates for regulatory database
Apr 23 12:17:07 rock-3a kernel: [   11.420365] usb 7-1: USB disconnect, device number 2
Apr 23 12:17:07 rock-3a kernel: [   11.421955] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
Apr 23 12:17:07 rock-3a kernel: [   11.432511] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
Apr 23 12:17:07 rock-3a kernel: [   11.434394] hantro-vpu fdea0000.video-codec: Adding to iommu group 0
Apr 23 12:17:07 rock-3a kernel: [   11.434990] hantro-vpu fdea0000.video-codec: registered rockchip,rk3568-vpu-dec as /dev/video0
Apr 23 12:17:07 rock-3a kernel: [   11.435428] hantro-vpu fdee0000.video-codec: Adding to iommu group 1
Apr 23 12:17:07 rock-3a kernel: [   11.436165] hantro-vpu fdee0000.video-codec: registered rockchip,rk3568-vepu-enc as /dev/video1
Apr 23 12:17:07 rock-3a kernel: [   11.474789] Bluetooth: Core ver 2.22
Apr 23 12:17:07 rock-3a kernel: [   11.474931] NET: Registered PF_BLUETOOTH protocol family
Apr 23 12:17:07 rock-3a kernel: [   11.474939] Bluetooth: HCI device and connection manager initialized
Apr 23 12:17:07 rock-3a kernel: [   11.474958] Bluetooth: HCI socket layer initialized
Apr 23 12:17:07 rock-3a kernel: [   11.474966] Bluetooth: L2CAP socket layer initialized
Apr 23 12:17:07 rock-3a kernel: [   11.474987] Bluetooth: SCO socket layer initialized
Apr 23 12:17:07 rock-3a kernel: [   11.513685] Intel(R) Wireless WiFi driver for Linux
Apr 23 12:17:07 rock-3a kernel: [   11.513870] pci 0000:00:00.0: of_irq_parse_pci: failed with rc=-22
Apr 23 12:17:07 rock-3a kernel: [   11.513928] iwlwifi 0000:01:00.0: enabling device (0000 -> 0002)
Apr 23 12:17:07 rock-3a kernel: [   11.525219] dvb-usb: found a 'TurboSight TBS 5930 DVB-S/S2/S2x' in warm state.
Apr 23 12:17:07 rock-3a kernel: [   11.542744] iwlwifi 0000:01:00.0: api flags index 2 larger than supported by driver
Apr 23 12:17:07 rock-3a kernel: [   11.542821] iwlwifi 0000:01:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 0.0.2.36
Apr 23 12:17:07 rock-3a kernel: [   11.545826] iwlwifi 0000:01:00.0: loaded firmware version 72.daa05125.0 ty-a0-gf-a0-72.ucode op_mode iwlmvm
Apr 23 12:17:07 rock-3a kernel: [   11.577171] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
Apr 23 12:17:07 rock-3a kernel: [   11.577278] dvbdev: DVB: registering new adapter (TurboSight TBS 5930 DVB-S/S2/S2x)
Apr 23 12:17:07 rock-3a kernel: [   11.577289] tbs5930: read eeprom failed.
Apr 23 12:17:07 rock-3a kernel: [   11.577293] dvb-usb: MAC address reading failed.
Apr 23 12:17:07 rock-3a kernel: [   11.633693] rockchip-pinctrl pinctrl: pin gpio1-9 already requested by vcc-cam; cannot claim for fe410000.i2s
Apr 23 12:17:07 rock-3a kernel: [   11.633710] rockchip-pinctrl pinctrl: pin-41 (fe410000.i2s) status -22
Apr 23 12:17:07 rock-3a kernel: [   11.633717] rockchip-pinctrl pinctrl: could not request pin 41 (gpio1-9) from group i2s1m0-sdi2  on device rockchip-pinctrl
Apr 23 12:17:07 rock-3a kernel: [   11.633724] rockchip-i2s-tdm fe410000.i2s: Error applying setting, reverse things back
Apr 23 12:17:07 rock-3a kernel: [   11.637215] m88rs6060 7-0069: probe failed = 0
Apr 23 12:17:07 rock-3a kernel: [   11.637489] usbcore: registered new interface driver btusb
Apr 23 12:17:07 rock-3a kernel: [   11.656747] Bluetooth: hci0: Device revision is 0
Apr 23 12:17:07 rock-3a kernel: [   11.656771] Bluetooth: hci0: Secure boot is enabled
Apr 23 12:17:07 rock-3a kernel: [   11.656776] Bluetooth: hci0: OTP lock is enabled
Apr 23 12:17:07 rock-3a kernel: [   11.656779] Bluetooth: hci0: API lock is enabled
Apr 23 12:17:07 rock-3a kernel: [   11.656783] Bluetooth: hci0: Debug lock is disabled
Apr 23 12:17:07 rock-3a kernel: [   11.656786] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
Apr 23 12:17:07 rock-3a kernel: [   11.656793] Bluetooth: hci0: Bootloader timestamp 2019.40 buildtype 1 build 38
Apr 23 12:17:07 rock-3a kernel: [   11.657179] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
Apr 23 12:17:07 rock-3a kernel: [   11.657197] Mem abort info:
Apr 23 12:17:07 rock-3a kernel: [   11.657200]   ESR = 0x0000000096000044
Apr 23 12:17:07 rock-3a kernel: [   11.657204]   EC = 0x25: DABT (current EL), IL = 32 bits
Apr 23 12:17:07 rock-3a kernel: [   11.657209]   SET = 0, FnV = 0
Apr 23 12:17:07 rock-3a kernel: [   11.657212]   EA = 0, S1PTW = 0
Apr 23 12:17:07 rock-3a kernel: [   11.657214]   FSC = 0x04: level 0 translation fault
Apr 23 12:17:07 rock-3a kernel: [   11.657217] Data abort info:
Apr 23 12:17:07 rock-3a kernel: [   11.657220]   ISV = 0, ISS = 0x00000044
Apr 23 12:17:07 rock-3a kernel: [   11.657222]   CM = 0, WnR = 1
Apr 23 12:17:07 rock-3a kernel: [   11.657226] user pgtable: 4k pages, 48-bit VAs, pgdp=00000000080e6000
Apr 23 12:17:07 rock-3a kernel: [   11.657230] [0000000000000008] pgd=0000000000000000, p4d=0000000000000000
Apr 23 12:17:07 rock-3a kernel: [   11.657241] Internal error: Oops: 0000000096000044 [#1] PREEMPT SMP
Apr 23 12:17:07 rock-3a kernel: [   11.657815] Modules linked in: mac80211(+) m88rs6060(OE) snd_soc_rockchip_i2s_tdm btusb snd_soc_rk817 snd_soc_core btrtl libarc4 btbcm snd_compress btintel snd_pcm_dmaengine snd_pcm snd_timer snd btmtk iwlwifi bluetooth soundcore hantro_vpu(OE) v4l2_vp9(OE) videobuf2_dma_contig(OE) cfg80211 v4l2_h264(OE) dvb_usb_tbs5930(OE+) v4l2_mem2mem(OE) dvb_usb(OE) videobuf2_v4l2(OE) dvb_core(OE) rc_core videodev(OE) videobuf2_vmalloc(OE) videobuf2_memops(OE) videobuf2_common(OE) mc(OE) rfkill cpufreq_dt sunrpc ip_tables x_tables autofs4 realtek display_connector spi_rockchip_sfc panfrost dwmac_rk stmmac_platform stmmac gpu_sched dw_hdmi_i2s_audio dw_hdmi_cec pcs_xpcs drm_shmem_helper
Apr 23 12:17:07 rock-3a kernel: [   11.663169] CPU: 2 PID: 394 Comm: systemd-udevd Tainted: G           OE      6.1.11-rk35xx #23.02.2
Apr 23 12:17:07 rock-3a kernel: [   11.663975] Hardware name: Radxa ROCK3 Model A (DT)
Apr 23 12:17:07 rock-3a kernel: [   11.664411] pstate: 20400009 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Apr 23 12:17:07 rock-3a kernel: [   11.665035] pc : __memcpy+0x2c/0x240
Apr 23 12:17:07 rock-3a kernel: [   11.665382] lr : tbs5930_frontend_attach+0x170/0x1c0 [dvb_usb_tbs5930]
Apr 23 12:17:07 rock-3a kernel: [   11.665975] sp : ffff80000c823690
Apr 23 12:17:07 rock-3a kernel: [   11.666271] x29: ffff80000c823690 x28: ffff000005170050 x27: ffff000005171318
Apr 23 12:17:07 rock-3a kernel: [   11.666909] x26: ffff000005171438 x25: ffff800001258850 x24: ffff8000012588f0
Apr 23 12:17:07 rock-3a kernel: [   11.667545] x23: ffff000005171438 x22: ffff000005171358 x21: ffff800001271208
Apr 23 12:17:07 rock-3a kernel: [   11.668181] x20: 0000000000000008 x19: 0000000000000020 x18: 0000000000000000
Apr 23 12:17:07 rock-3a kernel: [   11.668817] x17: ffff800076458000 x16: ffff800009c6c000 x15: 000000b2a4304a76
Apr 23 12:17:07 rock-3a kernel: [   11.669452] x14: 000000000000007f x13: 7832532f32532f53 x12: 2d42564420303339
Apr 23 12:17:07 rock-3a kernel: [   11.670087] x11: 0000000000000000 x10: 0000000000000a70 x9 : ffff80000c824000
Apr 23 12:17:07 rock-3a kernel: [   11.670723] x8 : 0101010101010101 x7 : 3520534254207468 x6 : 6769536f62727554
Apr 23 12:17:07 rock-3a kernel: [   11.671356] x5 : 0000000000000028 x4 : ffff800001271228 x3 : 0000000000000000
Apr 23 12:17:07 rock-3a kernel: [   11.671991] x2 : 0000000000000020 x1 : ffff800001271208 x0 : 0000000000000008
Apr 23 12:17:07 rock-3a kernel: [   11.672627] Call trace:
Apr 23 12:17:07 rock-3a kernel: [   11.672855] Bluetooth: hci0: Found device firmware: intel/ibt-0041-0041.sfi
Apr 23 12:17:07 rock-3a kernel: [   11.672857]  __memcpy+0x2c/0x240
Apr 23 12:17:07 rock-3a kernel: [   11.673217] Bluetooth: hci0: Boot Address: 0x100800
Apr 23 12:17:07 rock-3a kernel: [   11.673479]  dvb_usb_adapter_frontend_init+0xec/0x200 [dvb_usb]
Apr 23 12:17:07 rock-3a kernel: [   11.673779] Bluetooth: hci0: Firmware Version: 107-51.22
Apr 23 12:17:07 rock-3a kernel: [   11.675194]  dvb_usb_device_init+0x5e4/0x72c [dvb_usb]
Apr 23 12:17:07 rock-3a kernel: [   11.675660]  tbs5930_probe+0x2c/0x44 [dvb_usb_tbs5930]
Apr 23 12:17:07 rock-3a kernel: [   11.676125]  usb_probe_interface+0x130/0x300
Apr 23 12:17:07 rock-3a kernel: [   11.676510]  really_probe+0xc0/0x3a0
Apr 23 12:17:07 rock-3a kernel: [   11.676836]  __driver_probe_device+0x7c/0x188
Apr 23 12:17:07 rock-3a kernel: [   11.677227]  driver_probe_device+0x3c/0x108
Apr 23 12:17:07 rock-3a kernel: [   11.677602]  __driver_attach+0xe0/0x1b8
Apr 23 12:17:07 rock-3a kernel: [   11.677946]  bus_for_each_dev+0x74/0xc8
Apr 23 12:17:07 rock-3a kernel: [   11.678290]  driver_attach+0x24/0x30
Apr 23 12:17:07 rock-3a kernel: [   11.678612]  bus_add_driver+0x1dc/0x250
Apr 23 12:17:07 rock-3a kernel: [   11.678956]  driver_register+0x64/0x120
Apr 23 12:17:07 rock-3a kernel: [   11.679298]  usb_register_driver+0x80/0x158
Apr 23 12:17:07 rock-3a kernel: [   11.679672]  tbs5930_module_init+0x2c/0x1000 [dvb_usb_tbs5930]
Apr 23 12:17:07 rock-3a kernel: [   11.680196]  do_one_initcall+0x4c/0x288
Apr 23 12:17:07 rock-3a kernel: [   11.680542]  do_init_module+0x48/0x1e0
Apr 23 12:17:07 rock-3a kernel: [   11.680880]  load_module+0x1bf8/0x1f88
Apr 23 12:17:07 rock-3a kernel: [   11.681216]  __do_sys_finit_module+0xd4/0x170
Apr 23 12:17:07 rock-3a kernel: [   11.681609]  __arm64_sys_finit_module+0x20/0x30
Apr 23 12:17:07 rock-3a kernel: [   11.682015]  invoke_syscall+0x44/0x108
Apr 23 12:17:07 rock-3a kernel: [   11.682354]  el0_svc_common.constprop.3+0x84/0xf8
Apr 23 12:17:07 rock-3a kernel: [   11.682776]  do_el0_svc+0x2c/0xc8
Apr 23 12:17:07 rock-3a kernel: [   11.683075]  el0_svc+0x20/0x50
Apr 23 12:17:07 rock-3a kernel: [   11.683353]  el0t_64_sync_handler+0x98/0xc0
Apr 23 12:17:07 rock-3a kernel: [   11.683727]  el0t_64_sync+0x170/0x174
Apr 23 12:17:07 rock-3a kernel: [   11.684059] Code: f100405f 540000c3 a9401c26 a97f348c (a9001c06) 
Apr 23 12:17:07 rock-3a kernel: [   11.684601] ---[ end trace 0000000000000000 ]---
Apr 23 12:17:07 rock-3a kernel: [   11.752579] iwlwifi 0000:01:00.0: Detected Intel(R) Wi-Fi 6 AX210 160MHz, REV=0x420
Apr 23 12:17:07 rock-3a kernel: [   11.756044] thermal thermal_zone2: failed to read out thermal zone (-61)
Apr 23 12:17:07 rock-3a kernel: [   11.973588] iwlwifi 0000:01:00.0: loaded PNVM version 64acdc51
Apr 23 12:17:07 rock-3a kernel: [   11.989958] iwlwifi 0000:01:00.0: Detected RF GF, rfid=0x10d000
Apr 23 12:17:07 rock-3a kernel: [   12.061790] iwlwifi 0000:01:00.0: base HW address: f0:d4:15:50:de:17
Apr 23 12:17:07 rock-3a kernel: [   12.251910] iwlwifi 0000:01:00.0 wlp1s0: renamed from wlan0
root@rock-3a:~# uname -r
6.1.11-rk35xx

linux_media build commit d94513e.

@sielicki sielicki mentioned this issue Nov 5, 2023
@sielicki
Copy link

sielicki commented Nov 5, 2023

Same issue in #329 with Orange Pi 5 Plus under 6.6 next

@clear-sky
Copy link

hi all!
i have the same issue
tbsdtv/media_build#66

@sielicki
Copy link

Interesting that this is not aarch64 specific in your case, I was thinking this was going to be a weakly ordered specific race condition.

@clear-sky
Copy link

as far as i understood kernel crashes in loading module in cold state and could not read eeprom

@crazycat69
Copy link

module crash on tbs5930_frontend_attach()

@clear-sky
Copy link

HI dear crazycat69 -thanks for the answer
24cxx eeproms are inherently slow, I think we should give them more time to read their contents

@crazycat69
Copy link

But demod chip also not answer. This some USB host issue, maybe incomplete SoC init when DVB device init started.

@clear-sky
Copy link

thanks for the answer! is there any way to init demod chip after complete boot?
for avoiding from kernel crash

@crazycat69
Copy link

crazycat69 commented Mar 13, 2024

1.) Add the line blacklist dvb-usb-tbs5930 into the file /etc/modprobe.d/blacklist.conf
To prevent that the module is loaded

2.) Add the line /sbin/modprobe dvb-usb-tbs5930 into the file /etc/rc.local
In order to load the module at the end of the boot process.

P.S. How to Enable /etc/rc.local with Systemd. Usual rc.local enabled by default

@clear-sky
Copy link

clear-sky commented Mar 13, 2024

Hi thanks for this hint
kernel crashed again!
before this hint i thought that problem is related timing for loading module
but now i am sure there is a serious problem in module
because if we even load module manually it causes kernel crash

@clear-sky
Copy link

clear-sky commented Mar 14, 2024

Hi Dear crazycat69
do you have the hardware?
Sorry, I didn't know how close the war is to you. Wishing you victory and freedom for your great country

@crazycat69
Copy link

Now connected 5530.

14.03.2024 17:51 usb 1-1.1 new high-speed USB device number 12 using ehci-pci
14.03.2024 17:51 usb 1-1.1 New USB device found, idVendor=734c, idProduct=5530, bcdDevice= 0.01
14.03.2024 17:51 usb 1-1.1 New USB device strings: Mfr=0, Product=0, SerialNumber=0
14.03.2024 17:51 dvb-usb found a 'TurboSight TBS 5530 DVB-T2/T/C/S/S2/S2x,ISDB-T,ATSC1.0' in cold state, will try to load a firmware
14.03.2024 17:51 dvb-usb downloading firmware from file 'dvb-usb-id5530.fw'
14.03.2024 17:51 tbs5530 start downloading tbs5530 firmware
14.03.2024 17:51 dvb-usb found a 'TurboSight TBS 5530 DVB-T2/T/C/S/S2/S2x,ISDB-T,ATSC1.0' in warm state.
14.03.2024 17:51 dvb-usb will pass the complete MPEG2 transport stream to the software demuxer.
14.03.2024 17:51 dvb-usb will pass the complete MPEG2 transport stream to the software demuxer.
14.03.2024 17:51 dvbdev DVB: registering new adapter (TurboSight TBS 5530 DVB-T2/T/C/S/S2/S2x,ISDB-T,ATSC1.0)
14.03.2024 17:51 tbs5530 read eeprom failed.
14.03.2024 17:51 dvb-usb MAC address reading failed.
14.03.2024 17:51 i2c i2c-1 cxd2878:Can not decete the chip.
14.03.2024 17:51 i2c i2c-1 cxd2878:error attaching frontend.
14.03.2024 17:51 dvb-usb no frontend was attached by 'TurboSight TBS 5530 DVB-T2/T/C/S/S2/S2x,ISDB-T,ATSC1.0'
14.03.2024 17:51 dvb-usb TurboSight TBS 5530 DVB-T2/T/C/S/S2/S2x,ISDB-T,ATSC1.0 successfully initialized and connected.
14.03.2024 17:51 usb 1-1.1 USB disconnect, device number 12
14.03.2024 17:51 dvb-usb TurboSight TBS 5530 DVB-T2/T/C/S/S2/S2x successfully deinitialized and disconnected.
14.03.2024 17:51 usb 1-1.1 new high-speed USB device number 13 using ehci-pci
14.03.2024 17:51 usb 1-1.1 New USB device found, idVendor=734c, idProduct=5530, bcdDevice= 0.01
14.03.2024 17:51 usb 1-1.1 New USB device strings: Mfr=1, Product=2, SerialNumber=0
14.03.2024 17:51 usb 1-1.1 Product: TBS 5530
14.03.2024 17:51 usb 1-1.1 Manufacturer: TBS-Tech
14.03.2024 17:51 dvb-usb found a 'TurboSight TBS 5530 DVB-T2/T/C/S/S2/S2x,ISDB-T,ATSC1.0' in cold state, will try to load a firmware
14.03.2024 17:51 dvb-usb downloading firmware from file 'dvb-usb-id5530.fw'
14.03.2024 17:51 tbs5530 start downloading tbs5530 firmware
14.03.2024 17:51 dvb-usb found a 'TurboSight TBS 5530 DVB-T2/T/C/S/S2/S2x,ISDB-T,ATSC1.0' in warm state.
14.03.2024 17:51 dvb-usb will pass the complete MPEG2 transport stream to the software demuxer.
14.03.2024 17:51 dvb-usb will pass the complete MPEG2 transport stream to the software demuxer.
14.03.2024 17:51 dvbdev DVB: registering new adapter (TurboSight TBS 5530 DVB-T2/T/C/S/S2/S2x,ISDB-T,ATSC1.0)
14.03.2024 17:51 dvb-usb MAC address: 00:22:ab:c0:78:23
14.03.2024 17:51 i2c i2c-1 Detect CXD2878/CXD6802(SiP) chip.
14.03.2024 17:51 usb 1-1.1 DVB: registering adapter 0 frontend 0 (TurboSight TBS 5530 DVB-T2/T/C/S/S2/S2x,ISDB-T,ATSC1.0 DVB-T/T2/C/C2,ISDB-T/C,ATSC1.0)...
14.03.2024 17:51 i2c i2c-1 found a 'Montage m88rs6060' in cold state
14.03.2024 17:51 i2c i2c-1 downloading firmware from file 'dvb-demod-m88rs6060.fw'
14.03.2024 17:51 i2c i2c-1 found a 'Montage m88rs6060' in warm state
14.03.2024 17:51 i2c i2c-1 firmware version:38
14.03.2024 17:51 usb 1-1.1 DVB: registering adapter 0 frontend 1 (TurboSight TBS 5530 DVB-T2/T/C/S/S2/S2x,ISDB-T,ATSC DVB-S/S2/S2X)...
14.03.2024 17:51 dvb-usb TurboSight TBS 5530 DVB-T2/T/C/S/S2/S2x,ISDB-T,ATSC1.0 successfully initialized and connected.

@clear-sky
Copy link

hi dear crazycat69!
thanks for your effort!
i see your hardware is different but the same demod chip!
i threw dvb-usb-tbs5930 in black list thus system boots without problem but
when i load module manually ( modprobe dvb-usb-tbs5930 ) via terminal i give a "KILLED" error message and kernel crashes
what is the problem?

@clear-sky
Copy link

clear-sky commented Mar 14, 2024

another thing!
I see you have the same problem in this lines :

14.03.2024 17:51 tbs5530 read eeprom failed.
14.03.2024 17:51 dvb-usb MAC address reading failed.
14.03.2024 17:51 i2c i2c-1 cxd2878:Can not decete the chip.
14.03.2024 17:51 i2c i2c-1 cxd2878:error attaching frontend.

please tell us what this mean?

14.03.2024 17:51 usb 1-1.1 USB disconnect, device number 12
14.03.2024 17:51 dvb-usb TurboSight TBS 5530 DVB-T2/T/C/S/S2/S2x successfully deinitialized and disconnected.

are you reconnect usb cable manually or by the software?
i have installed tbs5930 inside the case and have used internal usb port ( so this is very hard to reconnect usb cabe)

@crazycat69
Copy link

5530, 5930, 5230 use same PCB, but 5230 and 5930 have soldered only ter/cable or sat part.
I can change USB ID in EEPROM and device act as 5930 or 5230.

@crazycat69
Copy link

are you reconnect usb cable manually or by the software? i have installed tbs5930 inside the case and have used internal usb port ( so this is very hard to reconnect usb cabe)

First time device detected in cold state (Cypress FX2 without firmware), next step firmware load and FX2 MCU reset, next step first attempt EEPROM read and demod init - this failed and device disconnected by driver.
Second-time device in warm state, but FX2 firmware load again and EEPROM read and demod init succeeded.

P.S. This init sequence same since first TBS QBOX device.

@crazycat69
Copy link

Well, look like 5930 driver bug :)

14.03.2024 23:02 usb 2-1.1 new high-speed USB device number 6 using ehci-pci
14.03.2024 23:02 usb 2-1.1 New USB device found, idVendor=734c, idProduct=5930, bcdDevice= 0.01
14.03.2024 23:02 usb 2-1.1 New USB device strings: Mfr=0, Product=0, SerialNumber=0
14.03.2024 23:02 dvb-usb found a 'TurboSight TBS 5930 DVB-S/S2/S2x' in cold state, will try to load a firmware
14.03.2024 23:02 dvb-usb downloading firmware from file 'dvb-usb-id5930.fw'
14.03.2024 23:02 tbs5930 start downloading TBS5930 firmware
14.03.2024 23:02 dvb-usb found a 'TurboSight TBS 5930 DVB-S/S2/S2x' in warm state.
14.03.2024 23:02 dvb-usb will pass the complete MPEG2 transport stream to the software demuxer.
14.03.2024 23:02 dvbdev DVB: registering new adapter (TurboSight TBS 5930 DVB-S/S2/S2x)
14.03.2024 23:02 tbs5930 read eeprom failed.
14.03.2024 23:02 dvb-usb MAC address reading failed.
14.03.2024 23:02 m88rs6060 14-0069 probe failed = 0
14.03.2024 23:02 usb 2-1.1 USB disconnect, device number 6
14.03.2024 23:02 BUG kernel NULL pointer dereference, address: 0000000000000008
14.03.2024 23:02 #PF supervisor write access in kernel mode
14.03.2024 23:02 #PF error_code(0x0002) - not-present page
14.03.2024 23:02 PGD 0 P4D 0
14.03.2024 23:02 Oops 0002 [#1] PREEMPT SMP PTI

@clear-sky
Copy link

Hi dear crazycat69!
look at my hardware:
1
2
as you see there is no place to add additional parts but you said that 5530 has more parts bacause of dvb-t and dvb-c
if possible please put your hardware pictures here! to see differences
thus i am interested how you replace eeprom contents? via usb port or desoldring and resoldering eeprom?
some times eeprom damages! if possible please share this bin files for some people who has such damaged hardware
thanks for notice!

@crazycat69
Copy link

crazycat69 commented Mar 15, 2024

Fixes for TBS 5930 init. First important, second optional.
8ac9d8f
58d9cc5

@crazycat69
Copy link

crazycat69 commented Mar 15, 2024

as you see there is no place to add additional parts but you said that 5530 has more parts bacause of dvb-t and dvb-c
if possible please put your hardware pictures here! to see differences

1710512015667
1710512046176

thus i am interested how you replace eeprom contents? via usb port or desoldring and resoldering eeprom?
some times eeprom damages! if possible please share this bin files for some people who has such damaged hardware

Via usb port under windows with standard driver + my soft based on StreamReaderEx-BDA.
If EEPROM content destroyed possible rewrite with generic Cypress FX2 driver + tools (windows). For linux many tools for FX2 available.

@clear-sky
Copy link

clear-sky commented Mar 16, 2024

thank you dear crazycat69!
test new driver and i confirm that problem solved!
thanks again for sharing your hardware image! very very nice hardware but can not be found in the market easily
may be it is a limited product!
but cold not find my last question (eeprom contents)
if this bin files are included in windows driver is there any way to extract it in linux? or you have got it from TBS?

@sielicki
Copy link

Thank you, should be able to test this over the weekend.

@crazycat69
Copy link

my last question (eeprom contents) if this bin files are included in windows driver is there any way to extract it in linux? or you have got it from TBS?

TBS USB devices have small 256 bytes EEPROM for FX2 config and some vendor info like MAC and windows driver mode (for 5530, 5230)
eep.zip

@clear-sky
Copy link

clear-sky commented Mar 17, 2024

thank you!
crazycat69 you are very kind!
I am proud because my dvb box runs with UKRAINIAN driver!
hope victory for you and all people of your great country!

@sielicki
Copy link

sielicki commented Sep 2, 2024

Still seeing initialization issues for this device:

❯ modinfo dvb-usb-tbs5930
filename:       /run/booted-system/kernel-modules/lib/modules/6.10.7/updates/extra/media/usb/dvb-usb/dvb-usb-tbs5930.ko.xz
license:        GPL
version:        1.0
description:    TurboSight TBS 5930 driver
author:         Davin zhang<Davin@tbsdtv.com>
srcversion:     7505CD78912D725F00A74E3
alias:          usb:v734Cp5930d*dc*dsc*dp*ic*isc*ip*in*
depends:        dvb-usb
name:           dvb_usb_tbs5930
vermagic:       6.10.7 SMP mod_unload aarch64
parm:           debug:set debugging level (1=info 2=xfer (or-able)). (debugging is not enabled) (int)
parm:           adapter_nr:DVB adapter numbers (array of short)

❯ modinfo m88rs6060
filename:       /run/booted-system/kernel-modules/lib/modules/6.10.7/updates/extra/media/dvb-frontends/m88rs6060.ko.xz
firmware:       dvb-demod-m88rs6060.fw
license:        GPL
description:    Montage M88RS6060 driver
author:         Davin zhang <Davin@tbsdtv.com>
alias:          i2c:m88rs6060
depends:
name:           m88rs6060
vermagic:       6.10.7 SMP mod_unload aarch64

❯ uname -a
Linux goldendog 6.10.7 #1-NixOS SMP Thu Aug 29 15:36:13 UTC 2024 aarch64 GNU/Linux

sielicki in 🌐 goldendog in ~
❯ sudo dmesg | tail -n 75
[   61.814551] dvb_usb: loading out-of-tree module taints kernel.
[   61.817824] dvb-usb: found a 'TurboSight TBS 5930 DVB-S/S2/S2x' in cold state, will try to load a firmware
[   61.820878] dvb-usb: downloading firmware from file 'dvb-usb-id5930.fw'
[   61.820914] tbs5930: start downloading TBS5930 firmware
[   61.840503] usb 1-1: USB disconnect, device number 2
[   61.945960] dvb-usb: found a 'TurboSight TBS 5930 DVB-S/S2/S2x' in warm state.
[   61.946783] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[   61.947063] dvbdev: DVB: registering new adapter (TurboSight TBS 5930 DVB-S/S2/S2x)
[   61.947093] tbs5930: read eeprom failed.
[   61.947564] dvb-usb: MAC address reading failed.
[   61.948929] Unable to handle kernel NULL pointer dereference at virtual address 00000000000001af
[   61.949861] Mem abort info:
[   61.950163]   ESR = 0x0000000096000021
[   61.950558]   EC = 0x25: DABT (current EL), IL = 32 bits
[   61.951111]   SET = 0, FnV = 0
[   61.951433]   EA = 0, S1PTW = 0
[   61.951774]   FSC = 0x21: alignment fault
[   61.952198] Data abort info:
[   61.952505]   ISV = 0, ISS = 0x00000021, ISS2 = 0x00000000
[   61.953070]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[   61.953596]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[   61.954148] user pgtable: 4k pages, 48-bit VAs, pgdp=000000017cab5000
[   61.954812] [00000000000001af] pgd=0000000000000000, p4d=0000000000000000
[   61.955521] Internal error: Oops: 0000000096000021 [#1] SMP
[   61.956097] Modules linked in: dvb_usb_tbs5930(O+) dvb_usb(O) dvb_core xt_tcpudp xt_mark nft_compat x_tables nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 cfg80211 rfkill nf_tables libcrc32c nls_iso8859_1 nls_cp437 r8169 snd_soc_simple_card hantro_vpu rtc_hym8563 crct10dif_ce snd_soc_simple_card_utils polyval_ce polyval_generic v4l2_vp9 v4l2_h264 snd_soc_es8328_i2c sm4 v4l2_mem2mem rk805_pwrkey videobuf2_dma_contig snd_soc_es8328 videobuf2_memops pwm_fan videobuf2_v4l2 cmdlinepart gpio_ir_recv snd_soc_simple_amplifier spi_rockchip_sfc phy_rockchip_naneng_combphy rockchip_saradc videodev rockchip_thermal rockchipdrm snd_soc_rockchip_i2s snd_soc_rockchip_i2s_tdm rockchip_dfi dw_mipi_dsi analogix_dp dw_hdmi drm_display_helper videobuf2_common cec mc drm_dma_helper adc_keys uio_pdrv_genirq uio sch_fq_codel tls tap macvlan bridge stp llc fuse nfnetlink dmi_sysfs nvme nvme_core nvme_auth dm_mod dax
[   61.964502] CPU: 3 PID: 1620 Comm: (udev-worker) Tainted: G           O       6.10.7 #1-NixOS
[   61.965381] Hardware name: Orange Pi Orange Pi 5 Plus/Orange Pi 5 Plus, BIOS v0.11.2 07/11/2024
[   61.966266] pstate: a04000c9 (NzCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   61.966984] pc : ida_alloc_range+0xa8/0x528
[   61.967439] lr : media_device_register_entity+0x78/0x228 [mc]
[   61.968077] sp : ffff800085c43400
[   61.968426] x29: ffff800085c43470 x28: ffff0a71bdfa9460 x27: 61c8864680b583eb
[   61.969172] x26: 0000000000000001 x25: ffffab0a07c324b0 x24: 0000000000000001
[   61.969915] x23: 0000000000000000 x22: 0000000000000000 x21: 00000000001fffff
[   61.970666] x20: 000000007fffffff x19: ffff0a71acdd8000 x18: 0000000000000000
[   61.971409] x17: 0000000000000000 x16: ffffab0a06d210d8 x15: 0000000000000000
[   61.972152] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
[   61.972895] x11: 0000000000000000 x10: 0000000000000023 x9 : ffffab09fa5e0650
[   61.973638] x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000000
[   61.974383] x5 : 0000000000000000 x4 : 0000000000000003 x3 : 0000000000000001
[   61.975125] x2 : 0000000000000001 x1 : 0000000000000000 x0 : 00000000000001af
[   61.975877] Call trace:
[   61.976145]  ida_alloc_range+0xa8/0x528
[   61.976560]  media_device_register_entity+0x78/0x228 [mc]
[   61.977188]  dvb_create_tsout_entity+0xa8/0x1d8 [dvb_core]
[   61.977823]  dvb_register_device+0x2dc/0x958 [dvb_core]
[   61.978420]  dvb_dmxdev_init+0x12c/0x228 [dvb_core]
[   61.978978]  dvb_usb_adapter_dvb_init+0x11c/0x1b0 [dvb_usb]
[   61.979586]  dvb_usb_device_init+0x520/0x6e8 [dvb_usb]
[   61.980140]  tbs5930_probe+0x34/0x58 [dvb_usb_tbs5930]
[   61.980686]  usb_probe_interface+0xe0/0x340
[   61.981136]  really_probe+0xc8/0x3c0
[   61.981528]  __driver_probe_device+0x84/0x188
[   61.981991]  driver_probe_device+0x44/0x138
[   61.982434]  __driver_attach+0x134/0x270
[   61.982853]  bus_for_each_dev+0x84/0x108
[   61.983271]  driver_attach+0x2c/0x58
[   61.983656]  bus_add_driver+0x174/0x2c0
[   61.984066]  driver_register+0x64/0x168
[   61.984472]  usb_register_driver+0x80/0x1d0
[   61.984915]  tbs5930_module_init+0x34/0xff8 [dvb_usb_tbs5930]
[   61.985521]  do_one_initcall+0x60/0x2c0
[   61.985932]  do_init_module+0xa0/0x2b8
[   61.990984]  load_module+0x2260/0x2320
[   61.996086]  __do_sys_init_module+0x248/0x2a0
[   62.001241]  __arm64_sys_init_module+0x24/0x48
[   62.006379]  invoke_syscall+0x50/0x168
[   62.011459]  el0_svc_common.constprop.0+0x108/0x130
[   62.016648]  do_el0_svc+0x24/0x50
[   62.021666]  el0_svc+0x3c/0x148
[   62.026684]  el0t_64_sync_handler+0x140/0x150
[   62.031865]  el0t_64_sync+0x190/0x198
[   62.036942] Code: d50343df d503201f 52800001 52800022 (88e17c02)
[   62.042236] ---[ end trace 0000000000000000 ]---
[   62.123539] note: (udev-worker)[1620] exited with irqs disabled

That's with media_build and media from master:

  media = fetchFromGitHub rec {
    name = repo;
    owner = "tbsdtv";
    repo = "linux_media";
    rev = "06f0fc5ccc29edd1ba0378087fc044c0b63a46d1";
    sha256 = "sha256-HKDWcflkbjCKKkpYTvtcQGIplrT29Uvf9UPo0u66KNY=";
  };

  build = fetchFromGitHub rec {
    name = repo;
    owner = "tbsdtv";
    repo = "media_build";
    rev = "593ed8e0a8d075efddbaafdd8caea3e469751a56";
    sha256 = "sha256-wTvJ3Yq+Kjgt49B+52KmjOBzhwOqZbL8+msVuSOY9W0=";
  };

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

4 participants