Telnet patch on 1.05.301 fw

Advanced Discussions on Programing for & Modifying Beyonwiz Products.

Moderators: Gully, peteru

Post Reply
User avatar
Neilius
Apprentice
Posts: 24
Joined: Tue Mar 04, 2008 22:19
Location: Brisbane
Contact:

Telnet patch on 1.05.301 fw

Post by Neilius » Sat Aug 08, 2009 20:02

I'd like to try and patch the latest BW FW. (1.05.301 I think).

I've managed to unpack the FW, and unzippd linux.bin using the Wztools GUI.

What's the best way to edit this file? I've found a few hex editors, i'ts really hard to read the code in that format. What editor do people normally use?

From what I've read, I need to search thru the file until I find a mention of rc.sysinit then scan forward in the file till I find a [line feed] # [Comment] and replace this with [linefeed] [telnetd command], making sure only to insert the code where there were comments previously.

Is this what I'm supposed to do?

Has anyone patched the latest BW FW successfully.

Thanks in advance.

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 » Sat Aug 08, 2009 23:16

'programmers notepad' for windows or vi for everything else.
Tony

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

Re: Telnet patch on 1.05.301 fw

Post by prl » Sat Aug 08, 2009 23:29

Neilius wrote:I'd like to try and patch the latest BW FW. (1.05.301 I think).

I've managed to unpack the FW, and unzippd linux.bin using the Wztools GUI.

What's the best way to edit this file? I've found a few hex editors, i'ts really hard to read the code in that format. What editor do people normally use?

From what I've read, I need to search thru the file until I find a mention of rc.sysinit then scan forward in the file till I find a [line feed] # [Comment] and replace this with [linefeed] [telnetd command], making sure only to insert the code where there were comments previously.

Is this what I'm supposed to do?

Has anyone patched the latest BW FW successfully.

Thanks in advance.
You can do it that way, and that's how it was originally done. But there are easier ways.

Unpack the application and root file systems using unpack_wrp.pl in BWFWTools. Edit, then repack them with pack_wrp.pl. bw_patcher.pl in BWFWTools can apply a number of pre-packaged hacks.

You can apply the telnet patch just by running:

Code: Select all

bw_patcher.pl original-firmware.wrp patched-firmware.wrp Beyonwiz::Hack::Telnet
The hard work's already been done for you on that one :)

If you want to edit rc.sysinit, you have to edit with an editor that preserves Unix line endings (or know how to use IFS).
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: 32705
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Post by prl » Sat Aug 08, 2009 23:30

tonymy01 wrote:'programmers notepad' for windows or vi for everything else.
Nellius was talking about editing linux.bin to edit rc.sysinit in place in the ROMFS. I wouldn't trust a text editor to do what he was proposing :)
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 » Sat Aug 08, 2009 23:43

oops, yeah. I forgot about that very old school method! Now i have both serial and a /tmp/config/rc.local i no longer have to worry about modding any further upgrades any way.
Tony

User avatar
Neilius
Apprentice
Posts: 24
Joined: Tue Mar 04, 2008 22:19
Location: Brisbane
Contact:

Post by Neilius » Mon Aug 10, 2009 10:08

Thanks for the replies.

Perhaps I should bite the bullet, install perl and try it with BWFWTools :)

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

Post by prl » Mon Aug 10, 2009 10:16

Neilius wrote:Thanks for the replies.

Perhaps I should bite the bullet, install perl and try it with BWFWTools :)
The BWFWTools README.txt has instructions about where to get a free version of Perl for Windows that's known to work with BWFWTools.

BWFWTools also works with Cygwin on Windows, which comes with Perl in the base install.
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”