View Full Version : Dumping The XIP Partition
mousey_
16th May 2007, 03:25 PM
How Do I Dump The XIP Partition Of A Hermes ROM? I Read The How to Dump A Hermes ROM And It Labels Two Different Sections As Containg The XIP. So How Do I Get The Right One, I'd Like To Get XIP.bin Like The Huy Who Posted The XIP.bin For WM6 Trinity.
Cheers
pof
16th May 2007, 03:40 PM
First you have to remove 8 bytes every 0x200 bytes from OS.nb, as shown in the attached picture (you can do this with a script using 'dd').
After that, you can use dumprom as usual to extract the XIP section:
mkdir XIP
dumprom.exe -5 modified_os.nb -d XIP
mousey_
16th May 2007, 08:55 PM
What Script Would I Need For The 'dd' Command?
Cheers Pof
moisha
17th May 2007, 12:42 AM
What Script Would I Need For The 'dd' Command? The shell or perl script you'll write for yourself, so you won't have to repeat the same task more than once ... and Will Parse Your Posting To Convert Every Capital Letter To Lower Case :D
pof
17th May 2007, 01:36 AM
Something similar to this:
#!/bin/sh
FILE="$1"
if [ ! -e $FILE ] || [ -z $FILE ]; then echo "missing input file (OS.nb)" ; exit 1 ; fi
len=`/bin/ls -l $FILE |awk '{print $5}'`
pass=$(( $len / 512 ))
skip=512
i=0
touch $FILE.out
while [ $i -le $pass ]; do
if [ $i == 0 ]; then
skip=0
else
tmp1=$(( 512 * $i ))
tmp2=$(( 8 * $i ))
skip=$(( $tmp1 + $tmp2 ))
fi
dd if=$FILE of=$FILE.tmp.$i bs=1 skip=$skip count=512
cat $FILE.out $FILE.tmp.$i > $FILE.tmp
mv $FILE.tmp $FILE.out
rm $FILE.tmp.$i
i=$(( $i + 1 ))
done
Sleuth255
18th June 2007, 06:49 PM
cool script pof, but runs slooooowwwwwww...... I'll see if I can code up something to do the massaging for dumprom.
CUSTEL
5th July 2007, 06:21 AM
bleh nvm...
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.