PDA

View Full Version : Problem with script following NMT firmware upgrade



Azimuth
2008-11-02, 07:34 AM
After checking the firmware update thread (http://forums.nextpvr.com/showthread.php?t=38493) and confirming that nobody had problems post update, I decided I would go ahead with the upgrade.
Post upgrade I was unable to get my USB script to work. The NMT would simply print the cgi script out on the screen.

I then tried other versions of the USB scripts as posted in the WIKI and the quick 5 minute setup guide. Both of these methods resulted in a "request cannot be processed" error.

Any help getting this working again would be much appreciated.

Here is my all in one cgi script which worked prior to the latest firmware.


#!/bin/sh

echo "Content-Length: 80";
echo "Content-type: text/html";
echo "";

cd ~
mkdir /etc/mvpmc >/dev/NULL
echo "";

if [ -f /etc/mvpmc/mvpmcx2 ]
then
echo "Already Connected!";
else
mount --bind /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/mvpmc /etc/mvpmc
cp /etc/mvpmc/utelnetd /usr/bin;
chmod 777 /etc/mvpmc/*;
utelnetd -l /bin/sh -p 23 &
ln -s /lib/librmjpeg.so /lib/libjpeg.so.62
ln -s /lib/librmzlib.so /lib/libz.so
ln -s /lib/librmzlib.so /lib/libz.so.1
ln -s /lib/librmzlib.so /lib/libz.so.123
echo "Telnetd started on port 23............"; fi

killall gaya
sh -c /etc/mvpmc/startmeup 2>/dev/null >/dev/null &

mvallevand
2008-11-02, 04:34 PM
The syntax of mount is correct and this does work manually by telnet for me.

Martin

Azimuth
2008-11-02, 06:16 PM
I have tried starting over with the installation guide. - Using the Network share method -
I am able to run the telnet script and telnet to the NMT. I can see that /etc/mvpmc exists with the content in the mvpmc share.
As soon as I hit return on tthe NMT remote to get back to telnet.html I get "Request cannot be processed, Press return key to return to the previous screen"
if I hit return 4 times I then get "The share folder no longer exist. Press [return key to return to your previous screen."
pressing return again gets me back to my gbpvr media source. However at this point running ls /etc/mvpmc gives me: ls: /etc/mvpmc: Permission denied.

Do you think I have a corrupt upgrade?
It WILL work using the 5minute setup method.

mvallevand
2008-11-02, 06:40 PM
Instead of -o username=guest,ro did you try these choices

-o username=root,rw
-o username=root,ro
-o username=guest,rw

Martin

Azimuth
2008-11-02, 07:02 PM
Instead of -o username=guest,ro did you try these choices

-o username=root,rw
-o username=root,ro
-o username=guest,rw

Martin

Thank you.
root,ro works!
However now it only displays 480i even with startmeup showing: /etc/mvpmc/mvpmcx2 -m 720 &

Azimuth
2008-11-02, 07:14 PM
/etc/mvpmc/mvpmcx2 -m 720 -o component --frequency 60 --nmt-gui-ss &
got me 720P.
Martin, Thank you for your help.
Now I'll work on getting my USB drive method working.

psycik
2008-11-02, 07:18 PM
Just to jump in here and go slightly off topic if using a script like this (as posted above).

What do i have in my telnet.htm??

Just the single entry?


<a href="http://localhost.drives:8883/NETWORK_SHARE/pvr:mvpmc/script.cgi"><font size=5>Telnetd Start me First<font size=6></a>??

Azimuth
2008-11-02, 07:28 PM
Just to jump in here and go slightly off topic if using a script like this (as posted above).

What do i have in my telnet.htm??

Just the single entry?


<a href="http://localhost.drives:8883/NETWORK_SHARE/pvr:mvpmc/script.cgi"><font size=5>Telnetd Start me First<font size=6></a>??

The one posted above is designed to run from a USB drive. you can do a single entry for the network method (as your telnet.html line suggests) but would have to edit the cgi script accordingly.

mvallevand
2008-11-02, 07:34 PM
The next release does have a combined script.

Martin

psycik
2008-11-02, 07:34 PM
Yeah I created another script.cgi and put your code in it, and then added a new line to telnet.html to call the new script.

All I got when I ran it was /opt/sybash/local.... on the screen

Script as follows.


#!/bin/sh

echo "Content-Length: 29";
echo "Content-type: text/html";
echo "";

cd ~
echo "";

if [ -f /etc/mvpmc/mvpmcx2 ]; then
echo "Already Connected!";
else
echo "Connecting to telnet";
mkdir /etc/mvpmc
mount -t cifs //pvr/mvpmc /etc/mvpmc/ -o username=guest,rw;
cp /etc/mvpmc/utelnetd /usr/bin;
utelnetd -l /bin/sh -p 23 &
ln -s /lib/librmjpeg.so /lib/libjpeg.so.62
ln -s /lib/librmzlib.so /lib/libz.so
ln -s /lib/librmzlib.so /lib/libz.so.1
ln -s /lib/librmzlib.so /lib/libz.so.123
echo "Telnetd started on port 23............";
fi


killall gaya
sh -c /etc/mvpmc/startmeup 2>/dev/null >/dev/null &

Azimuth
2008-11-02, 07:36 PM
Yeah I created another script.cgi and put your code in it, and then added a new line to telnet.html to call the new script.

All I got when I ran it was /opt/sybash/local.... on the screen

Script as follows.


#!/bin/sh

echo "Content-Length: 29";
echo "Content-type: text/html";
echo "";

cd ~
echo "";

if [ -f /etc/mvpmc/mvpmcx2 ]; then
echo "Already Connected!";
else
echo "Connecting to telnet";
mkdir /etc/mvpmc
mount -t cifs //pvr/mvpmc /etc/mvpmc/ -o username=guest,rw;
cp /etc/mvpmc/utelnetd /usr/bin;
utelnetd -l /bin/sh -p 23 &
ln -s /lib/librmjpeg.so /lib/libjpeg.so.62
ln -s /lib/librmzlib.so /lib/libz.so
ln -s /lib/librmzlib.so /lib/libz.so.1
ln -s /lib/librmzlib.so /lib/libz.so.123
echo "Telnetd started on port 23............";
fi


killall gaya
sh -c /etc/mvpmc/startmeup 2>/dev/null >/dev/null &

change content length to 80

Azimuth
2008-11-02, 07:55 PM
In case anyone wants a 1 step USB drive for their NMT, simply extract the attached zip to a USB drive, plug it in and select USB_DRIVE_A-1 as your media source.
This one is configured to run with the drive recognized as USB_DRIVE_A-1 with component output and 720P at 60Hz. (or substitute your own startmeup script).