Click here to go to the forum index Click here for the home page
 
Author Message

<  TAP and patch development  ~  Veiwing the Toppy FW

Page 1 of 1
phew
Posted: Mon Jun 13, 2005 11:14 am Reply with quote
Regular contributor Joined: 08 Jun 2005 Posts: 32
For anyone interested in veiwing the firmware:

1> Download the Perl scripts here:

http://topfield.abock.de/PeN/tfd2hdf.zip
http://topfield.abock.de/PeN/crc16.zip

and use them to translate the Toppy FW .tfd file to .hdf.

2> Get hold of HDFtool and HTGPro from here somewhere:

www.humax-zone.tv

3> Run the newly created .hdf file through HTGPro, this creates the unpacked file.

4> Load it up in whatever you use to view disassembled mips with, at 0x80000000 as a BigEndian file and spend endless hours trying to figure out what it all means Smile

...later,
phew.
View user's profile Send private message
simonc
Posted: Thu Sep 15, 2005 12:07 pm Reply with quote
Frequent contributor Joined: 12 Apr 2005 Posts: 5639 Location: Cheltenham
This batch file makes things a little easier
Code:
@echo off
perl.exe tfd2hdf.pl %1 %1.hdf
HDFtool.exe u %1.hdf
ren hdfbin-1-20000000.raw %1.bin
disasmips -A %1.bin > %1.asm


You need
c:\cygwin\bin on the path
tfd2hdf.pl and crc16.pm in the current directory
disasmips.exe also needs to be on the path somewhere
View user's profile Send private message Visit poster's website
simonc
Posted: Mon Oct 10, 2005 2:11 pm Reply with quote
Frequent contributor Joined: 12 Apr 2005 Posts: 5639 Location: Cheltenham
and for NT/2000/XP users
Code:
@echo off
if "%1"=="" goto usage
if "%1"=="/?" goto usage
if "%1"=="-?" goto usage
set tfd=%1
if "%~x1" neq ".zip" goto tfd
unzip -o %1 %~n1%.tfd
set tfd=%~n1%.tfd
:tfd
c:\cygwin\bin\perl.exe tfd2hdf.pl %tfd% %~n1%.hdf
del %tfd%
HDFtool.exe u %~n1%.hdf
del %~n1.nfo
del %~n1.hdf
if exist %~n1.bin. del %~n1.bin   
ren hdfbin-1-20000000.raw %~n1.bin
disasmips -A "%~n1.bin" > %~n1.asm
goto :eof
:usage
echo Unpack Topfield firmware from a zip or tfd file
echo unpack_firmare ^<tfd file^>^|^<zip file^>
View user's profile Send private message Visit poster's website

Display posts from previous:  

All times are GMT + 1 Hour
Page 1 of 1

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum