#!/bin/bash # (C) 2003-2007 Willem Jan Hengeveld # Web: http://www.xs4all.nl/~itsme/ # http://wiki.xda-developers.com/ # # $Id: setup.sh 1502 2007-04-15 07:54:20Z itsme $ # # this script prepare a romkitchen directory by extracting the needed sections # from a htc wallaby romimage inputrom=$1 wincever=3 start1=81800000 size1=00100000 startxip=81400000 start2= size2=00500000 startbmp=81900000 startop=81940000 if [[ -e cfg/params ]]; then . cfg/params fi perl splitrom.pl $inputrom -wo cfg/rom.nb1 -wl cfg/bootloader.nb0 -wx cfg/xipchain -wb cfg/bootimage.bmp -ob 0x$startbmp || { echo "please extract parts manually" && exit 1; } perl opimg2dir.pl cfg/rom.nb1 cfg/operator.cfg operator echo echo Please extract default.fdf, initobj.dat, initdb.ini from this romimage echo on a windows machine, by running echo echo ' mkdir romfile & dumprom cfg\\rom.nb1 -d romfiles' echo echo and convert them with the following shell commands echo echo ' perl fdf2reg.pl default.fdf cfg/default.reg' echo ' tr -d "\0" cfg/initobj.txt' echo ' cp initdb.ini cfg/initdb.ini'