HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Marvell Kirkwood based
rimmer
Posts: 6
Joined: Fri Nov 11, 2016 2:19 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by rimmer » Fri Nov 11, 2016 2:32 pm

Hi, I have installed Tvheadend on NAS326, but have problem with my USB TV Dongle, need kernel module af9033 for kernel 3.10.39, or kernel-headers for compile modules for my card. Can anyone help me?

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by barmalej2 » Fri Nov 11, 2016 5:46 pm

Kernel as well as headers are not the problem. Most important is kernel config. Do you have it? What output gives you:

Code: Select all

ls /proc/config* /boot/config*

rimmer
Posts: 6
Joined: Fri Nov 11, 2016 2:19 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by rimmer » Fri Nov 11, 2016 9:19 pm

Unfortunately nothing, I am locked in stock firmware (v5.20). I have entware-ng installed, is there some way to install v4l drivers? On older NSA3x is v4l drivers via package from FFP, but it si for old kernel (2.6.x) I think, i need GPL sources of firmware for compiling, am i wrong? Sorry, I am newbie with this NAS ...

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by barmalej2 » Fri Nov 11, 2016 9:56 pm

Having only config, you don't need GPL, unless kernel was too much patched and config would not be suitable for "raw" kernel.
Overall you are right. Having GPL source, it is easer. I saw here, that it should be available next Monday.

rimmer
Posts: 6
Joined: Fri Nov 11, 2016 2:19 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by rimmer » Sat Nov 12, 2016 8:03 am

Thank you for your answer ... :) So i hope for GPL sources on Monday and then i try to compile drivers. I hate waiting for sources .... :D

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by barmalej2 » Sat Nov 12, 2016 6:34 pm

You need to request a GPL copy at http://www.zyxel.com/us/en/form/gpl_oss_form.shtml I don't think, that it will be available for public download.

rimmer
Posts: 6
Joined: Fri Nov 11, 2016 2:19 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by rimmer » Tue Nov 15, 2016 8:46 am

Yes I know, thank you. Right now I am downloading source code for NAS326 5.20 firmware.

rimmer
Posts: 6
Joined: Fri Nov 11, 2016 2:19 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by rimmer » Tue Nov 15, 2016 9:08 am

Now i find it here on server too :)

http://gpl.nas-central.org/ZYXEL/NAS326_GPL/

rimmer
Posts: 6
Joined: Fri Nov 11, 2016 2:19 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by rimmer » Tue Nov 15, 2016 2:20 pm

Ok, i found kernel config for NAS326, so i enable media support and select support for my TV card as kernel module. Than I compile kernel with modules and try load them on NAS326. Anything to care about that? Thank you .. :)

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by barmalej2 » Wed Nov 16, 2016 6:10 am

rimmer wrote: Anything to care about that? Thank you .. :)
Either it will load, either not.

Ikolo
Posts: 37
Joined: Thu Sep 29, 2016 9:16 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by Ikolo » Sat Dec 31, 2016 1:15 pm

Hi Everyone!

My dvb device physically crashed so I ordered a new one:

http://www.ebay.com/itm/Hot-Sale-DVB-T- ... Sw8oFXz8QC

Bus 001 Device 004: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T

But I can't see frontend in dvb directory:

/dev/dvb/adapter0:
total 0
drwxr-xr-x 2 root root 0 Dec 31 13:49 .
drwxr-xr-x 4 root root 0 Dec 31 13:49 ..
crw-rw---- 1 root video 212, 0 Dec 31 13:49 demux0
crw-rw---- 1 root video 212, 1 Dec 31 13:49 dvr0
crw-rw---- 1 root video 212, 2 Dec 31 13:49 net0

/dev/dvb/adapter1:
total 0
drwxr-xr-x 2 root root 0 Dec 31 13:49 .
drwxr-xr-x 4 root root 0 Dec 31 13:49 ..
crw-rw---- 1 root video 212, 3 Dec 31 13:49 demux0
crw-rw---- 1 root video 212, 4 Dec 31 13:49 dvr0
crw-rw---- 1 root video 212, 5 Dec 31 13:49 net0

dmesg says:

dvb-usb: no frontend was attached by 'RTL2832U DVB-T USB DEVICE'

Please help!

Thank you in advance!

Ikolo

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by barmalej2 » Sat Dec 31, 2016 5:00 pm

As far as I remember mine v4l-dvb package has driver for your frontend-Rafael Micro R820T. Which NAS has you?
Some info needed. Please follow the steps strictly in a row.

1. Unplug DVB dongle.
2. Stop udev daemon service:

Code: Select all

sh /ffp/start/udevd.sh stop
3. Run it in debug mode:

Code: Select all

sh /ffp/start/udevd.sh debug
4. Attach dongle and let udev finish hotplug op. Copy output to pastebin.com and paste link here.
5. Stop debugging with key combination Ctrl+c.
6. Paste dmesg output here:

Code: Select all

/bin/dmesg | tail -n20
7. Start udev daemon service again:

Code: Select all

sh /ffp/start/udevd.sh start

Ikolo
Posts: 37
Joined: Thu Sep 29, 2016 9:16 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by Ikolo » Sat Dec 31, 2016 6:29 pm

Hi!

Thank you the reply.

Certainly I use your dvb-usb-rtl2832u driver. (Earlier to my old dvb stick (1f4d:d803) too)

Patebin:

http://pastebin.com/P9KpHnBb

Dmesg:

/bin/dmesg | tail -n20
error try= 1!! write_rtl2832_stdi2c: ret=-32, DA=0xc0, len=2, data=(0xfb,0xd9,)
error try= 2!! write_rtl2832_stdi2c: ret=-32, DA=0xc0, len=2, data=(0xfb,0xd9,)
error try= 3!! write_rtl2832_stdi2c: ret=-32, DA=0xc0, len=2, data=(0xfb,0xd9,)
error try= 4!! write_rtl2832_stdi2c: ret=-32, DA=0xc0, len=2, data=(0xfb,0xd9,)
error try= 5!! write_rtl2832_stdi2c: ret=-32, DA=0xc0, len=2, data=(0xfb,0xd9,)
error try= 1!! read_rtl2832_stdi2c: ret=-32, DA=0xc0, len=1, data=(0xe0,)
error try= 2!! read_rtl2832_stdi2c: ret=-32, DA=0xc0, len=1, data=(0xe0,)
error try= 3!! read_rtl2832_stdi2c: ret=-32, DA=0xc0, len=1, data=(0xe0,)
error try= 4!! read_rtl2832_stdi2c: ret=-32, DA=0xc0, len=1, data=(0xe0,)
error try= 5!! read_rtl2832_stdi2c: ret=-32, DA=0xc0, len=1, data=(0xe0,)
error!! read_rtl2832_tuner_register: ret=-32, DA=0xc6, len=1, offset=0x0, data=(0x4c,)
error!! read_rtl2832_tuner_register: ret=-32, DA=0xc8, len=1, offset=0x2, data=(0x4c,)
error!! read_rtl2832_tuner_register: ret=-32, DA=0xc0, len=2, offset=0x0, data=(0x4c,0xbb,)
error!! read_rtl2832_tuner_register: ret=-32, DA=0xc6, len=1, offset=0x0, data=(0x4c,)
-check_tuner_type : Unknown tuner on board...
dvb-usb: no frontend was attached by 'RTL2832U DVB-T USB DEVICE'
input: IR-receiver inside an USB DVB receiver as /devices/platform/ehci_marvell.70059/usb1/1-1/1-1.3/input/input3
dvb-usb: schedule remote query interval to 287 msecs.
dvb-usb: RTL2832U DVB-T USB DEVICE successfully initialized and connected.
+rc_frt2

I don't know what's the problem. Wrong stick or it is not Rafael Micro R820T?

Ikolo

barmalej2
Posts: 2388
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by barmalej2 » Sat Dec 31, 2016 11:34 pm

Ikolo wrote:Certainly I use your dvb-usb-rtl2832u driver.
Certainly your tuner is Rafael Micro R820T. You are using old driver, which you downloaded and installed manually. I can see that from your given outputs, because current RTL2832U driver from latest v4l-dvb package has no ending 'u' and it doesn't emitting driver debug output to dmesg buffer. Current driver name is dvb-usb-rtl2832 and it is placed in:
/ffp/lib/modules/2.6.31.8/updates/usb/dvb-usb/dvb-usb-rtl2832.ko
This driver supports tuner Rafael Micro R820T, which is located at:
/ffp/lib/modules/2.6.31.8/updates/tuners/r820t.ko
, while your manually installed dvb-usb-rtl2832u doesn't.

You should remove that old driver first. Only after that, follow these instructions step by step:
1. Make sure that you doesn't have module_utils package installed. If yes, remove it:

Code: Select all

slacker -r module_utils
2. If you had module_utils installed, then reinstall kmod package (if not then skip this step)

Code: Select all

slacker -UAa br2:kmod
3. Install latest v4l-dvb package:

Code: Select all

slacker -UAa br2:v4l-dvb
4. Just in case restart udev daemon service:

Code: Select all

sh /ffp/start/udevd.sh restart
5. Plug your dvb dongle.

6. Check dmesg output:

Code: Select all

/bin/dmesg | tail -n20

Ikolo
Posts: 37
Joined: Thu Sep 29, 2016 9:16 pm

Re: HOWTO: Install/upgrade Tvheadend on FFP0.7-arm

Post by Ikolo » Sun Jan 01, 2017 12:43 am

Hi!

Happy New Year!

I thought I need this driver:
http://downloads.zyxel.nas-central.org/ ... tl2832u.ko
(I used this my older device.)
Sorry!

Dmesg:

/bin/dmesg | tail -n20
Adding 524280k swap on /i-data/.system/swap_ul6545p. Priority:-1 extents:4 across:542712k
svc: failed to register lockdv1 RPC service (errno 97).
GbE port 0: TxEnable WA - Enabled, deep=1, tx_en_bk=1

usb 1-1.3: new high speed USB device using ehci_marvell and address 4
In hub_port_init, and number is 2, retry 0, port 3 .....
usb 1-1.3: configuration #1 chosen from 1 choice
In usb_disconnect, and number is 1 .....
usb 1-1.3: USB disconnect, address 4
usb 1-1.3: new high speed USB device using ehci_marvell and address 5
In hub_port_init, and number is 2, retry 0, port 3 .....
usb 1-1.3: configuration #1 chosen from 1 choice
dvb-usb: found a 'RTL2832U DVB-T USB DEVICE' in warm state.
dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
DVB: registering new adapter (RTL2832U DVB-T USB DEVICE)
usb 1-1.3: DVB: registering adapter 0 frontend 0 (Realtek DVB-T RTL2832)...
input: IR-receiver inside an USB DVB receiver as /devices/platform/ehci_marvell.70059/usb1/1-1/1-1.3/input/input0
dvb-usb: schedule remote query interval to 287 msecs.
dvb-usb: RTL2832U DVB-T USB DEVICE successfully initialized and connected.
usbcore: registered new interface driver dvb_usb_rtl2832u

Thanks!!!!

Now, I just see one adapter. Is it possible?

Ikolo

Post Reply