Autor Thema: WNDR3700v2 + OpenWRT Backfire 10.03.1-rc5  (Gelesen 19394 mal)

Dick

  • Newbie
  • *
  • Beiträge: 6
    • Profil anzeigen
WNDR3700v2 + OpenWRT Backfire 10.03.1-rc5
« am: Dezember 12, 2011, 07:26:10 Nachmittag »
Hi,

I'm trying to install a MediaTV Pro on a Netgear WNDR3700v2 running OpenWRT Backfire 10.03.1-rc5.
There seems to be a kernel mismatch with usbkhelper.ko:
usbkhelper: version magic '2.6.32.16 mod_unload MIPS32_R2 32BIT ' should be '2.6.32.27 mod_unload MIPS32_R2 32BIT '

Is it possible to get a newer usbkhelper for kernel 2.6.32.27?

Thanks in advance!
Dick

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8604
    • Profil anzeigen
Re:WNDR3700v2 + OpenWRT Backfire 10.03.1-rc5
« Antwort #1 am: Dezember 12, 2011, 08:05:25 Nachmittag »
This module is not needed anymore. Did you try to use the driver without it?
Failure is a good thing! I'll fix it

Dick

  • Newbie
  • *
  • Beiträge: 6
    • Profil anzeigen
Re:WNDR3700v2 + OpenWRT Backfire 10.03.1-rc5
« Antwort #2 am: Dezember 12, 2011, 08:58:00 Nachmittag »
Ah, OK.

I'm trying to get tvheadend to work but the MediaTV adapter doesn't show up on the list, so I started the search with the obvious ;-)

I'll continue my search, thanks for the clarification.

Dick

/edit
btw: mediaclient --lsusb gives no result either. Could that be a problem?
mediacleint -e shows the full stuff.

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8604
    • Profil anzeigen
Re:WNDR3700v2 + OpenWRT Backfire 10.03.1-rc5
« Antwort #3 am: Dezember 12, 2011, 09:08:16 Nachmittag »
try one of the following things:

if libmediaclient.so is in /opt/lib
Zitat
export LD_PRELOAD=/opt/lib/libmediaclient.so

if libmedaiclient.so is in /tmp/opt/lib
Zitat
export LD_PRELOAD=/opt/lib/libmediaclient.so

afterwards restart tvheadend and it should detect the adapter.
Failure is a good thing! I'll fix it

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8604
    • Profil anzeigen
Re:WNDR3700v2 + OpenWRT Backfire 10.03.1-rc5
« Antwort #4 am: Dezember 12, 2011, 09:27:08 Nachmittag »
For the broadcom MIPS please change the transfermode to Bulk in order to lower the system resource requirements.

/opt/bin/mediaclient --dtvtransfermode=bulk or /tmp/opt/bin/mediaclient --dtvtransfermode=bulk (and replug the device)
« Letzte Änderung: Dezember 13, 2011, 09:33:23 Vormittag von Sundtek »
Failure is a good thing! I'll fix it

Dick

  • Newbie
  • *
  • Beiträge: 6
    • Profil anzeigen
Re:WNDR3700v2 + OpenWRT Backfire 10.03.1-rc5
« Antwort #5 am: Dezember 12, 2011, 09:52:19 Nachmittag »
try one of the following things:

if libmediaclient.so is in /opt/lib
Zitat
export LD_PRELOAD=/opt/lib/libmediaclient.so

if libmedaiclient.so is in /tmp/opt/lib
Zitat
export LD_PRELOAD=/opt/lib/libmediaclient.so

afterwards restart tvheadend and it should detect the adapter.


You're the King!

Thanks, it works now.

Dick

  • Newbie
  • *
  • Beiträge: 6
    • Profil anzeigen
Re:WNDR3700v2 + OpenWRT Backfire 10.03.1-rc5
« Antwort #6 am: Januar 03, 2012, 02:55:02 Vormittag »
And ... I screwed up :(

After uploading a fresh firmware, I can't get tvheadend tot work anymore.
When it starts, it says
[ALERT]:dvb: Unable to open /dev/dvb/adapter0/frontend0 -- No such device or address
[ALERT]:v4l: Unable to open /dev/video0 -- No such device or address

AFAIK, the adapter is loaded correctly but tvheadend does not connect:
start_sundtek() {
        export LD_PRELOAD=/opt/lib/libmediaclient.so
        [ -e /opt/bin/mediasrv ] && {
                /opt/bin/mediasrv -d > /dev/null 2> /dev/null
                /opt/bin/mediaclient --start > /dev/null 2> /dev/null
                /opt/bin/mediaclient --enablenetwork=on > /dev/null 2> /dev/null
                /opt/bin/mediaclient --pidfilter=on > /dev/null 2> /dev/null
                /opt/bin/mediaclient --loglevel=off > /dev/null 2> /dev/null
        }
}
root@OpenWrt:~# mediaclient -e
**** List of Media Hardware Devices ****
device 0: [Sundtek MediaTV Pro (USB 2.0)]  DVB-C, DVB-T, ANALOG-TV, FM-RADIO, REMOTE-CONTROL, OSS-AUDIO, RDS
  [SERIAL]:
     ID: HDVBTB
  [DVB-C]:
     FRONTEND: /dev/dvb/adapter0/frontend0
     DVR: /dev/dvb/adapter0/dvr0
     DMX: /dev/dvb/adapter0/demux0
  [DVB-T]:
     FRONTEND: /dev/dvb/adapter0/frontend0
     DVR: /dev/dvb/adapter0/dvr0
     DMX: /dev/dvb/adapter0/demux0
  [ANALOG-TV]:
     VIDEO0: /dev/video0
     VBI0: /dev/vbi0
  [FM-RADIO]:
     RADIO0: /dev/radio0
     RDS: /dev/rds0
  [REMOTECONTROL]:
     INPUT0: /dev/mediainput0
  [OSS]:
     OSS0: /dev/dsp0

root@OpenWrt:~#

root@OpenWrt:~# mediaclient --lc
**** List of Media Clients ****
/dev/dvb/adapter0/frontend0:
  No client connected
/dev/dvb/adapter0/dvr0:
  No client connected
/dev/dvb/adapter0/demux0:
  No client connected
/dev/video0:
  No client connected
/dev/vbi0:
  No client connected
/dev/radio0:
  No client connected
/dev/rds0:
  No client connected
/dev/mediainput0:
  No client connected
/dev/dsp0:
  No client connected


root@OpenWrt:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID eb1a:51b2 eMPIA Technology, Inc.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

root@OpenWrt:~# ldd mediasrv
        /opt/lib/libmediaclient.so => /opt/lib/libmediaclient.so (0x2aabe000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x2aae0000)
        libdl.so.0 => /lib/libdl.so.0 (0x2ab04000)
        librt.so.0 => /lib/librt.so.0 (0x2ab17000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2ab28000)
        libc.so.0 => /lib/libc.so.0 (0x2ab48000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)
root@OpenWrt:~#

root@OpenWrt:~# ldd mediaclient
        /opt/lib/libmediaclient.so => /opt/lib/libmediaclient.so (0x2aabe000)
        librt.so.0 => /lib/librt.so.0 (0x2aae0000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2aaf1000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x2ab11000)
        libc.so.0 => /lib/libc.so.0 (0x2ab35000)
        libdl.so.0 => /lib/libdl.so.0 (0x2abad000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)
root@OpenWrt:~#

root@OpenWrt:~# ldd tvheadend
        /opt/lib/libmediaclient.so => /opt/lib/libmediaclient.so (0x2aabe000)
        librt.so.0 => /lib/librt.so.0 (0x2aae0000)
        libdl.so.0 => /lib/libdl.so.0 (0x2aaf1000)
        libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x2ab04000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x2ab50000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x2ac69000)
        libm.so.0 => /lib/libm.so.0 (0x2ac8d000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2acb6000)
        libc.so.0 => /lib/libc.so.0 (0x2acd6000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)
root@OpenWrt:~#

Any ideas on how to proceed?
Is there a kernel module that has to be loaded?
I'm pulling hairs ...


fLoo

  • Newbie
  • *
  • Beiträge: 38
    • Profil anzeigen
Re:WNDR3700v2 + OpenWRT Backfire 10.03.1-rc5
« Antwort #7 am: Januar 04, 2012, 06:28:29 Vormittag »
You need to export the PATHS again:

export LD_PRELOAD=/opt/lib/libmediaclient.so
...