Sign up here and you can log into the forum!

Plugin: MediaNavigationV3

The WDTVExt plugin depot. Plugins/libraries/code only

Re: Plugin: MediaNavigationV3   

Postby virtualdj » Sun Mar 13, 2011 6:05 am

Thanks. Maybe I'm not so lucky... ;)
I copied the dvb-usb-dib0700-1.20.fw file (downloaded from here) into several locations:
Code: Select all
# find / -name dvb-usb-dib0700-1.20.fw
/apps/dvbdrivers/lib/modules/2.6.22.19-19-4/dvb-usb-dib0700-1.20.fw
/tmp/.root/lib/firmware/2.6.22.19-19-4/dvb-usb-dib0700-1.20.fw
/tmp/.root/lib/firmware/dvb-usb-dib0700-1.20.fw
/tmp/.root/lib/modules/2.6.22.19-19-4/dvb-usb-dib0700-1.20.fw

As you know, /lib/firmware (which is the location which Google say as the default for DVB firmwares) in the WDTV corresponds to /tmp/.root/lib/firmware.
But still connecting and disconnecting the USB devices shows:
Code: Select all
# dmesg
usb 1-2: USB disconnect, address 4
usb 1-2: new high speed USB device using tangox-ehci-hcd and address 5
usb 1-2: configuration #1 chosen from 1 choice
dvb-usb: found a 'Hauppauge Nova-T Stick' in cold state, will try to load a firmware
dvb-usb: did not find the firmware file. (dvb-usb-dib0700-1.20.fw) Please see linux/Documentation/dvb/ for more details on firmware-problems. (-2)

Have you got any other ideas on how to proceed? Permissions are OK (as I think "-rw-r--r--" is OK), maybe the path is wrong? I don't think so. But the error reports "did not find the firmware file" and not "error when loading the firmware file".
Is it possible to identify where the kernel seeks for the firmware files?

Is the firmware file platform-independed? I mean, may the MIPS CPU be the cause?

Sorry, I'm not a Linux expert. I'm trying what I can using Google and this (and other) forums.
virtualdj
n00b
 
Posts: 12
Joined: Tue Dec 21, 2010 11:44 am

Re: Plugin: MediaNavigationV3   

Postby sailort » Sun Mar 13, 2011 6:20 am

hmmm... if /lib/firmware is correctly linked, it should appear on /lib/firmwares also IMHO. Also try to give fw file full 777 permission.
T.
If you like my work and want to buy me a bottle of wine, you can do it this way. Thanks for your support.
sailort
Developer
 
Posts: 363
Joined: Sat Apr 24, 2010 6:42 am

Re: Plugin: MediaNavigationV3   

Postby mad_ady » Sun Mar 13, 2011 8:57 am

@virtualdj: Here's a suggestion (not sure if it's feasible) - if you can modprobe/rmmod the module for your USB DVB by hand from the command line, you can try to run strace on the modprobe/insmod command and see which files it tries to read.
Code: Select all
strace insmod blabla.ko
User avatar
mad_ady
Developer
 
Posts: 3028
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Plugin: MediaNavigationV3   

Postby virtualdj » Sun Mar 13, 2011 11:48 am

@sailort
I have tried to give full 777 permissions. Nothing has changed.
However when using softlinks they do not appear twice: I tried on another Linux virtual machine, and the behaviour is tha same that on WDTV.
The situation is the following (I copied the file to the three locations, just to be sure that the kernel dvb-usb will load it):
Code: Select all
# find / -name dvb-usb-dib0700-1.20.fw | xargs ls -l
-rwxrwxrwx    1 root     root        33768 Mar 13 20:08 /apps/dvbdrivers/lib/modules/2.6.22.19-19-4/dvb-usb-dib0700-1.20.fw
-rwxrwxrwx    1 root     root        33768 Mar 13 20:08 /tmp/.root/lib/firmware/dvb-usb-dib0700-1.20.fw
-rwxrwxrwx    1 root     root        33768 Mar 13 20:09 /tmp/.root/lib/modules/2.6.22.19-19-4/dvb-usb-dib0700-1.20.fw

However, the dvb-usb doesn't find the firmware file.

@mad_ady
strace is a good hint. But it wasn't applicable. Let me explain you the tests I've done:
1) Insmod, Modprobe, Rmmod all do not work:
Code: Select all
# insmod /lib/modules/2.6.22.19-19-4/dvb-usb-dib0700.ko
insmod: can't insert '/lib/modules/2.6.22.19-19-4/dvb-usb-dib0700.ko': File exists
# modprobe /lib/modules/2.6.22.19-19-4/dvb-usb-dib0700.ko
modprobe: module '/lib/modules/2.6.22.19_19_4/dvb_usb_dib0700.ko' not found
# rmmod dvb-usb-dib0700
rmmod: remove 'i2c_core': Resource temporarily unavailable
rmmod: remove 'dibx000_common': Resource temporarily unavailable
rmmod: remove 'dvb_core': Resource temporarily unavailable
rmmod: remove 'dib7000p': Resource temporarily unavailable
rmmod: remove 'i2c_core': Resource temporarily unavailable
rmmod: remove 'dibx000_common': Resource temporarily unavailable
rmmod: remove 'dvb_usb': Resource temporarily unavailable
rmmod: remove 'i2c_core': Resource temporarily unavailable
rmmod: remove 'dib0070': Resource temporarily unavailable
rmmod: remove 'i2c_core': Resource temporarily unavailable
rmmod: remove 'dib3000mc': Resource temporarily unavailable
rmmod: remove 'i2c_core': Resource temporarily unavailable
rmmod: remove 'dvb_core': Resource temporarily unavailable
rmmod: remove 'i2c_core': Resource temporarily unavailable
rmmod: remove 'i2c_core': Resource temporarily unavailable
rmmod: remove 'i2c_core': Resource temporarily unavailable
rmmod: remove 'tuner_xc2028': Resource temporarily unavailable
rmmod: remove 'i2c_core': Resource temporarily unavailable

2) rmmod -f seemed to work, but then I wasn't able to insmod:
Code: Select all
# rmmod -f dvb-usb-dib0700
# insmod /lib/modules/2.6.22.19-19-4/dvb-usb-dib0700.ko
insmod: can't insert '/lib/modules/2.6.22.19-19-4/dvb-usb-dib0700.ko': unknown symbol in module or invalid parameter

3) Maybe I'm a Linux-noob, but I think there is a bug in modprobe. Look here:
Code: Select all
# strace modprobe /lib/modules/2.6.22.19-19-4/dvb-usb-dib0700.ko
...
...
...
open("/proc/modules", O_RDONLY|O_LARGEFILE) = 4
fstat64(0x4, 0x7f84f7f0)                = 0
old_mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2acd8000
read(4, "zl10036 6320 0 - Live 0xc08b8000"..., 1024) = 1024
read(4, "0xc07cc000 (F)\nnxt200x 15280 0 -"..., 1024) = 1024
read(4, " 4848 1 dvb_usb_ec168, Live 0xc0"..., 1024) = 1024
read(4, "mple, Live 0xc05f8000 (F)\nlgdt33"..., 1024) = 1024
read(4, "55c000 (F)\ndvb_usb_af9005_remote"..., 1024) = 1024
read(4, "c0374000 (F)\ncx24123 16752 0 - L"..., 1024) = 1024
read(4, "ttusb_budget,stv0299,dib7000p,dv"..., 1024) = 1024
read(4, "b_pll, Live 0xc0118000 (F)\ncifs "..., 1024) = 366
read(4, "", 1024)                       = 0
close(4)                                = 0
munmap(0x2acd8000, 65536)               = 0
open("/etc/modules//lib/modules/2.6.22.19_19_4/dvb_usb_dib0700.ko", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
write(2, "modprobe: module '/lib/modules/2"..., 76modprobe: module '/lib/modules/2.6.22.19_19_4/dvb_usb_dib0700.ko' not found
) = 76
exit_group(0)                           = ?

During the last "open" instruction, it seems that the path "/etc/module/" is hardcoded (there is a double-slash).
But the folder /etc/modules doesn't exist on the WDTV Live and it cannot be created because it says that "/etc" is read-only. Otherwise I could put the "dvb-usb-dib0700-1.20.fw" file there.

Please help me, I don't want to give up... the solution is very close!
virtualdj
n00b
 
Posts: 12
Joined: Tue Dec 21, 2010 11:44 am

Re: Plugin: MediaNavigationV3   

Postby sailort » Sun Mar 13, 2011 1:19 pm

DJ,
can't help much with this, but I think there is way how to check if placing fw into /etc/ will help. Try to use ext3 or rootFS version on wdlxtv fw as these has write possibility.
During compilation I had to make various changes to source code, so as I think this should work, I can't guarantee success. Anyway, give ext3 a try.
I'm still waiting for one successful feedback about TV feature (as here it works quite nicely and is worth it IMHO).
Good luck
T.
If you like my work and want to buy me a bottle of wine, you can do it this way. Thanks for your support.
sailort
Developer
 
Posts: 363
Joined: Sat Apr 24, 2010 6:42 am

Re: Plugin: MediaNavigationV3   

Postby mad_ady » Sun Mar 13, 2011 10:49 pm

another option would be to run strings on the module to see if it has some hardcoded paths to the firmware file. That way you should know where it needs to be placed to be picked up.
Otherwise, you should try the ext3 version first just to make sure you can load the module+firmware.
Hope it helps!
User avatar
mad_ady
Developer
 
Posts: 3028
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Plugin: MediaNavigationV3   

Postby pjprueller » Sun Mar 20, 2011 1:42 am

Hello all,

please excuse this stupid question, but I'm really struggling heavily to get MediaNavigationVx to work in a stable fashion.

I'm using WDLXTV 1.02.21 0.4.5.3. I can only get the MediaNavigationV3.1 to show something on the screen if I first install DoSomething and the Tools Menu. Otherwise the old infobar is shown.
For MediaNavigationV4 I can see that it works in the background (based on the log information in dmaosd.log) but I can not get any OSD information visible.

What could be wrong? Are there any dependencies? Do I need to configure something? Is it me?

I already did a clean reflash of the WDLXTV 1.02.21 0.4.5.3 and installed just MediaNavigationV4 via the .wdtv-ext-plugins directory. I can enable it, I get the log information, I can just not see any info on the screen.

HELP!! PLEASEEE!!

Movie-Sheets and MediaNavigation are the only two things I'm interested as addons to the WDTV.

Thanks.

Peter
pjprueller
n00b
 
Posts: 1
Joined: Sun Mar 20, 2011 1:38 am

Re: Plugin: MediaNavigationV3   

Postby dzebrys » Tue Mar 22, 2011 2:54 pm

hi all,

i've dirty modded latest MediaNavigationV4RC2 to suit my needs and thought
maybe someone could benefit from it. at this point i'd like to sorry author that modded
without his permition and in addition am insolent enough to publish it.
that's not all folks. i've also used perl script sub2srt which was created by
(c) 2003-2005 Roland "Robelix" Obermayer <roland\@robelix.com> http://www.robelix.com/sub2srt/
at least that one i've not touch and is gpl.

the idea was to implement automatic conversion of non-srt file formats fetched from
opensubtitles.org. i don't know how it is elsewhere but in poland srt is still much less popular
format than sub [aka microdvd]. don't know why and don't ask.

additionally i've modded SubtitleDownload so in result window it only display subtitles in two
languages: en and pl. these can be easily changed to any other in SubtitleDownload.include.js,
lines 24-26:

Code: Select all
    // here define only wanted languages
    var lang1="pl";
    var lang2="en";


if you speak more than two then add additional variable and modify line 50:

Code: Select all
if((lang_iso == lang1) || (lang_iso == lang2))


be aware i've also disabled some functionality from panel menu.
that can be reverted by editing VIDSEARCHMODES and AUDSEARCHMODES in mn.config file.

also expanded result info when downloading subtitles. changed [DOWNLOADED] to:
[D] - downloaded
[.] - srt format, no conversion
[x] - other format, conversion failed
[+] - other format, conversion success

off course to use these benefits media source MUST be mounted in read/write mode.

modded version could be fetched from here
http://www.filesonic.com/file/323505144

@sailort: i really appreciate your work and this plugin is all-in-one, user-friendly,
a-must-to-have for any wdlxtv user, i've just wanted to improve it a little bit for
ourself but then thought sharing it maybe make happy someone. if you like this
modd feel free to use it in next scrums.


regards
piotr

[wdlxtv SubtitleDownload Subdownloader automatic conversion subtitles sub srt sub2srt perl]
User avatar
dzebrys
DLX'er
 
Posts: 130
Joined: Mon Feb 14, 2011 1:49 am
Location: poland

Re: Plugin: MediaNavigationV3   

Postby mad_ady » Tue Mar 22, 2011 10:52 pm

@dzebrys: The changes you've made sound great!
I too stumble upon subtitles in sub format (most romanian subtitles for pre 2005 movies use this format) - so I guess it was a popular format for Central/Eastern Europe. I used to use sub2srt to convert them on my NAS so that the WDTV would be happy - but your approach seems better :)

Also, filtering by user supplied languages is a great idea, but it should be implemented as a user configurable option (I guess something like a string "en|pl|ro") and it could be easily split and processed as an array/hash in the javascript code.

Unfortunately I was too lazy and busy to make my own changes, but I'm glad somebody else did. I don't see why SailorT wouldn't merge them with his current release (after doing a bit of polishing).

Great work!

There's one more thing I would like to see implemented (and if it bugs me enough I will start to implement it - I swear!). I use a NAS mounted RO to store my movies. I have a shell script that toggles it to RW that is called manually in ds-lite. However, there are times when the subtitle I download isn't written to the NAS, and I would like to get a bit of feedback if I try to download a subtitle and the file isn't written to disk (add a check that file exists and it's size is greater than 0) - for instance, display the [X] in the subtitle menu. I'm assuming this is easily implemented, but again, I was too lazy/busy to look into it.
User avatar
mad_ady
Developer
 
Posts: 3028
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Plugin: MediaNavigationV3   

Postby dzebrys » Wed Mar 23, 2011 12:52 am

mad_ady wrote:I use a NAS mounted RO to store my movies. I have a shell script that toggles it to RW that is called manually in ds-lite.


if you are using RO only due to SCOD then try to add nolock option to net.mounts.
see http://forum.wdlxtv.com/viewtopic.php?f=40&t=2637&start=30#p30756


regards
piotr
User avatar
dzebrys
DLX'er
 
Posts: 130
Joined: Mon Feb 14, 2011 1:49 am
Location: poland

PreviousNext

Return to WDTVExt plugins

Who is online

Users browsing this forum: No registered users and 1 guest