DP-S1 telnet access patch

Advanced Discussions on Programing for & Modifying Beyonwiz Products.

Moderators: Gully, peteru

Post Reply
efry
Master
Posts: 150
Joined: Thu Aug 30, 2007 22:01
Location: Sydney
Contact:

DP-S1 telnet access patch

Post by efry » Thu Jan 03, 2008 12:08

Hi Guys,

I've patched the 01.05.192 firmware to allow telnet access.

you can find the patch along with instructions at

http://www.beyonwizsoftware.net/softwar ... e-patch/0/

Enjoy!

Eric

PS Use at your own risk! :wink:

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Thu Jan 03, 2008 13:01

192 :-(
Is it easy to do, I would like 195 for the S1 please :-)
Regards
Tony

efry
Master
Posts: 150
Joined: Thu Aug 30, 2007 22:01
Location: Sydney
Contact:

Post by efry » Thu Jan 03, 2008 22:29

tonymy01 wrote:192 :-(
Is it easy to do, I would like 195 for the S1 please :-)
Regards
It's pretty straight forward. I just added a line into the rc.sysinit script which loaded the telnetd process

telnetd -l /bin/sh &

You just need to unpack the firmware
decompress linux.bin.gz
find rc.sysinit in the linux.bin file
then overwrite one of the comments with the telnet line.

There are some nice big comments
I over wrote a comment so I wouldn't add any bytes to the file which would cause the whole romfs image to become out of alignment.

User avatar
alwayslooking
Master
Posts: 299
Joined: Tue Jul 03, 2007 10:56
Location: Adelaide
Contact:

Post by alwayslooking » Sat Jan 05, 2008 08:06

Have you noticed any issues as a result of enabling it?
I'll have to do my own if I want telnet access to my P1 :wink:

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Sat Jan 05, 2008 08:44

Tony did you patch the 195 firmware?

Kezza
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
alwayslooking
Master
Posts: 299
Joined: Tue Jul 03, 2007 10:56
Location: Adelaide
Contact:

Post by alwayslooking » Sat Jan 05, 2008 09:48

It's probably possible to write a small app that does that process for either the S1, P1 or H1 firmware.

Telnet access should have some benefits.
If I get a chance, I might be able to add it into the WizTools GUI I am putting together for Eric's utilities, like a check box that says "Enable Telnet" which does the extra mod.

User avatar
DaveR
Wizard
Posts: 2527
Joined: Tue May 29, 2007 01:24
Location: Sydney

Post by DaveR » Mon Jan 07, 2008 23:40

alwayslooking wrote:It's probably possible to write a small app that does that process for either the S1, P1 or H1 firmware.
Already got that planned 8)
cheers
DaveR

IceTV, T4, T3, T2, P2, S1, FV-L1(P1 fw), TRF-2460, HDR-7500 and Skippa

janilxx

Post by janilxx » Tue Jan 08, 2008 04:50

Dave? wrote:
alwayslooking wrote:It's probably possible to write a small app that does that process for either the S1, P1 or H1 firmware.
Already got that planned 8)
Are you doing some kind of patcher application for BW :-) ?
Same kind as Topfield's Firmware Patcher?

It would be useful to be able to do any kind of patches and patcher would do all the job (unpack FW, decompress linux.bin.gz, find correct place and add/replace stuff from patch, pack FW again).

User avatar
alwayslooking
Master
Posts: 299
Joined: Tue Jul 03, 2007 10:56
Location: Adelaide
Contact:

Post by alwayslooking » Tue Jan 08, 2008 07:49

Dave? wrote:
alwayslooking wrote:It's probably possible to write a small app that does that process for either the S1, P1 or H1 firmware.
Already got that planned 8)
I'll leave it to you then :D
janilxx wrote: Are you doing some kind of patcher application for BW :-) ?
Same kind as Topfield's Firmware Patcher?

It would be useful to be able to do any kind of patches and patcher would do all the job (unpack FW, decompress linux.bin.gz, find correct place and add/replace stuff from patch, pack FW again).
I'm pretty sure that's what Dave is planning and I agree it would be very useful :D

User avatar
grunta
Master
Posts: 342
Joined: Wed Aug 01, 2007 13:56
Location: Upwey, Melbourne, Selby UHF transmitter

Post by grunta » Thu Jan 10, 2008 22:30

Hope you're not doing that during work time Dave ....... LOL

:P
Grunta
DP-S1 firmware .301

User avatar
alwayslooking
Master
Posts: 299
Joined: Tue Jul 03, 2007 10:56
Location: Adelaide
Contact:

Post by alwayslooking » Sat Feb 09, 2008 18:29

I've posted a telnet patch for the P1
http://www.beyonwiz.com.au/phpbb2/viewt ... 0172#20172

Available from the Beyonwiz Software site
http://www.beyonwizsoftware.net/softwar ... 03/#msg603

User avatar
alwayslooking
Master
Posts: 299
Joined: Tue Jul 03, 2007 10:56
Location: Adelaide
Contact:

Post by alwayslooking » Sat Apr 05, 2008 14:27

Does anyone want / need the telnet patch for the March 20 P1 firmware?

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Post by prl » Sat Apr 05, 2008 17:07

Just this morning I rolled my own for my DP-H1 1.05.195 beta (there's no telnet patch for te H1) using unpack_wrp.pl & pack_wrp.pl from BWFWTools.

This is the change I made in rc.sysinit. The weird filenames are because of unpacking the ROMFS filesystems in case-insensitive mode:

Code: Select all

*** DPH1-01.05.195.root/001x_etc/001x_rc.sysinit        Sat Apr  5 17:58:19 2008
--- DPH1-01.05.195_telnet.root/001x_etc/001x_rc.sysinit Sat Apr  5 17:59:14 2008
***************
*** 77,82 ****
--- 77,84 ----
        # rc.local
        if [ -x "${CONFIG_DIR}/rc.local" ];then 
                ${CONFIG_DIR}/rc.local &
+       else
+               telnetd -l /bin/sh &
        fi
        if [ -f "/tmp/config/shell" -o -f "/tmp/config/nowizdvp" ];then
                /bin/msh
By doing it this way, it allows for the telnetd startup to be in rc.local, as with the wizremote startup.

It won't work if you already have an rc.local that doesn't start telnet (like the one in Eric's wizremote package.

Just add

Code: Select all

telnetd -l /bin/sh &
to rc.local, if you have one, before flashing my patch, and if you add an rc.local, you'll need to start telnet in it, too.

I'm reluctant to post that one for the H1, because it's a beta, but I could patch and post 01.05.192.

I guess this also answers by question from the other day about whether unpack_wrp/pack_wrp work for creating patched FW (provided the patch itself doesn't break anything).
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
alwayslooking
Master
Posts: 299
Joined: Tue Jul 03, 2007 10:56
Location: Adelaide
Contact:

Post by alwayslooking » Sat Apr 05, 2008 20:09

Tony told me about the changes to rc.sysinit this morning after I'd changed the P1 March firmware t enable telnet, which is why I asked if anyone wanted it.

I will change my rc.sysinit anyway.

I haven't tried your perl scripts to pack and unpack, I used WizTools GUI (guess why!) with Eric's WizTools.

I'm interested in the getWizPnP though - that looks interesting - I'm having a look at it now.

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Post by prl » Sat Apr 05, 2008 22:00

The distributions for the patches and the WizToolsGUI are Windows only. My home machine is a Mac.

And I like doing the hacks myself :)
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Post by prl » Sat Apr 05, 2008 23:24

Curious thing. Now that I've got telnetd running from rc.local on the DP-H1, I occasionally see ERROR 0022 on the front panel, apparently spontaneously, and some time after telnetd starts. Changing channels resets the error message. Does this happen on other models when telnetd is running?
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Sun Apr 06, 2008 01:07

Nope, not on the S1?
Tony

User avatar
alwayslooking
Master
Posts: 299
Joined: Tue Jul 03, 2007 10:56
Location: Adelaide
Contact:

Post by alwayslooking » Sun Apr 06, 2008 10:45

prl wrote:The distributions for the patches and the WizToolsGUI are Windows only. My home machine is a Mac.
Don't the Intel processors in the current Macs allow dual boot between OSX and WindowsXP?

prl wrote:And I like doing the hacks myself :)
There's a certain satisfaction in understanding how it all works isn't there :D
prl wrote:Curious thing. Now that I've got telnetd running from rc.local on the DP-H1, I occasionally see ERROR 0022 on the front panel, apparently spontaneously, and some time after telnetd starts. Changing channels resets the error message. Does this happen on other models when telnetd is running?
I haven't noticed that, but what I did notice on the first boot up, after applying the telnet hacked firmware, was I could get a telnet session, but as soon as I tried to type anything, it would close the session. A reboot seemed to fix that and it's working fine now :|

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Post by prl » Sun Apr 06, 2008 11:02

alwayslooking wrote:
prl wrote:The distributions for the patches and the WizToolsGUI are Windows only. My home machine is a Mac.
Don't the Intel processors in the current Macs allow dual boot between OSX and WindowsXP?
I didn't say how old it is. It's a PPC G5. And even if it were an Intel Mac, I doubt I'd buy Windows XP just so I could use Eric's patches. Especially since I think (un)pack_wrp is a more powerful tool, and lets me make the patches just the way I want.

I'm just about to start seeing if I can usefully tweak wizpnp using the /etc/shttpd.conf file.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

sebjavierw
Newbie
Posts: 7
Joined: Tue Aug 10, 2010 19:02

Post by sebjavierw » Sun Aug 15, 2010 13:03

How do I access the rc.sysinit script file.

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Post by prl » Sun Aug 15, 2010 13:11

sebjavierw wrote:How do I access the rc.sysinit script file.
The BWFWTools package's bw_patcher tool and the Beyonwiz::Hacks::Telnet modue provide one way of creating a modified Beyonwiz firmware package with telnet enables. It take a bit of effort to install it on Windows, since it's written in perl, and you need to install perl on Windows to run it. It's also a commandline program, not a nice GUI.

Unfortunately, the server it's normally available from is down at the moment, and is likely to be for several more days.

What do you want to do?
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Post Reply

Return to “Software Developers”