R7000 - TvHeadEnd DVB Kernel mods and usb firmware

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
cordata51
DD-WRT Novice


Joined: 09 Aug 2014
Posts: 4

PostPosted: Wed Oct 16, 2024 14:55    Post subject: R7000 - TvHeadEnd DVB Kernel mods and usb firmware Reply with quote
Hello,

I have a nighthawk R7000 running DD-Wrt and i recently installed EntWare when i saw it supported the TVHeadEnd package. Unfortunately it seems that the TVHeadEnd package assumes certain kernel modules are installed and usb drivers were compiled into the kernel image before it will see the usb tv tuners and work.

I have never compiled DD-wrt from source (or anything significant for that matter without following a detailed step by step procedure), i suppose i could try to learn how at some point but right now i don't even have a clue on where to start with that let alone how to add all of the required modules and usb device firmwares I'm interested in. I thought maybe i could find the required kernel modules (ex: dvbcore.ko, dvbcore2.ko, ect) and insmod them into my current device or use the firmware modification kit and the instructions on the development wiki to inject them into a firmware file since one of my (Kworld) usb tuners claims the driver is in the "mainline" Linux kernel since 3.16 (dmesg never showed the usb device recognized as "Kworld xxx", so i assume the driver fw wasn't compiled into the dd-wrt 4.4 kernel), but i could not find any pre-compiled .ko files for the cortex a9 in the r7000 at all.

Any help would be greatly appreciated.



The following are the 2 usb tv tuners i have.
https://www.linuxtv.org/wiki/index.php/KWorld_UB435-Q_USB_ATSC_TV_stick
https://www.linuxtv.org/wiki/index.php/ATI/AMD_TV_Wonder_HD_600_USB

Looks like the firmware for common usb tv tuners
https://github.com/OpenELEC/dvb-firmware/tree/master/firmware

DVB components source
https://github.com/hardkernel/linux/tree/odroidc-3.10.y/backports/drivers/media

User M95D seems to have created a custom make menuconfig specifically for DVB components and drivers to get tvheadend to work on openWRT, i would prefer DD-WRT for my r7000 tho.
https://github.com/openwrt/openwrt/pull/12128
Sponsor
cordata51
DD-WRT Novice


Joined: 09 Aug 2014
Posts: 4

PostPosted: Wed Oct 16, 2024 15:49    Post subject: Reply with quote
I am in the process of downloading the full SVN right now and will attempt to compile some of the required .ko files and see how that goes.

I'm using this post as a reference....
https://tvheadend.org/d/2696-rtl2832u-dvb-t-on-openwrt-frontend-avaiable-but-not-detected
cordata51
DD-WRT Novice


Joined: 09 Aug 2014
Posts: 4

PostPosted: Wed Oct 30, 2024 17:21    Post subject: R7000 - TvHeadEnd DVB Kernel mods and usb firmware Reply with quote
For anyone interested i managed to compile what i believe to be all of the required kmods to get the Kworld tv tuner to show up in the /dev folder.

R7000 Firmware Version:

Code:
Linux version 4.4.302-rt232-st56 (root@linux.shellfast) (gcc version 13.1.0 (OpenWrt GCC 13.1.0 r22658+9-2c530fcb97) ) #12476 SMP



Startup commands:

Code:
sleep 20
/opt/etc/init.d/rc.unslung start

insmod /opt/ko/dvb-core.ko
insmod /opt/ko/rc-core.ko
insmod /opt/ko/i2c-mux.ko
insmod /opt/ko/dvb-usb.ko
insmod /opt/ko/dvb_usb_v2.ko
insmod /opt/ko/dvb-pll.ko
insmod /opt/ko/v4l2-dv-timings.ko
insmod /opt/ko/videobuf-core.ko
insmod /opt/ko/videobuf-vmalloc.ko
insmod /opt/ko/videobuf-dvb.ko
insmod /opt/ko/tveeprom.ko
insmod /opt/ko/lgdt3305.ko
insmod /opt/ko/media.ko
insmod /opt/ko/videodev.ko
insmod /opt/ko/v4l2-common.ko
insmod /opt/ko/em28xx.ko
insmod /opt/ko/dma-shared-buffer.ko
insmod /opt/ko/videobuf2-core.ko
insmod /opt/ko/videobuf2-v4l2.ko
insmod /opt/ko/regmap-core.ko
insmod /opt/ko/regmap-i2c.ko
insmod /opt/ko/tuner.ko
insmod /opt/ko/tda18212.ko
insmod /opt/ko/em28xx-dvb.ko
insmod /opt/ko/em28xx-rc.ko
insmod /opt/ko/tvp5150.ko



/dev folder:
Code:

1-2                 kmem                mtd1ro              network_throughput  ram5                usb4
1-2.4               kmsg                mtd2                null                ram6                usbdev1.1
1-2.4.4             log                 mtd2ro              nvram               ram7                usbdev1.2
1-2.4.4.2           loop-control        mtd3                port                ram8                usbdev1.3
1-2.4.4.4           loop0               mtd3ro              ppp                 ram9                usbdev1.4
4-1                 loop1               mtd4                ptmx                random              usbdev1.5
console             loop2               mtd4ro              pts                 rfkill              usbdev1.6
cpu_dma_latency     loop3               mtd5                ram0                sda                 usbdev2.1
dvb0.demux0         loop4               mtd5ro              ram1                sda1                usbdev3.1
dvb0.dvr0           loop5               mtdblock            ram10               tty                 usbdev4.1
dvb0.frontend0      loop6               mtdblock0           ram11               ttyS0               usbdev4.2
full                loop7               mtdblock1           ram12               ttyS1               watchdog
gpio                mem                 mtdblock2           ram13               ttyS2               watchdog0
gpio0               memory_bandwidth    mtdblock3           ram14               tun                 zero
hw_random           mtd                 mtdblock4           ram15               urandom
i2c-0               mtd0                mtdblock5           ram2                usb1
i2c-1               mtd0ro              net                 ram3                usb2
i2c-2               mtd1                network_latency     ram4                usb3


the tuner device is still not showing up in TvHeadend's configuration webpage, i am still looking into that.



DVB_Kmods_r7000.zip
 Description:

Download
 Filename:  DVB_Kmods_r7000.zip
 Filesize:  329.14 KB
 Downloaded:  50 Time(s)

Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum