PDA

View Full Version : Calcgaps.pl


Richjn
18th August 2003, 08:41 AM
Hi All

Does anyone know the correct command line for Calcgaps.pl I have searched the forum without any joy and my attempts at guessing the correct command have all failed.

Richard

itsme
18th August 2003, 09:01 AM
just pipe the output of splitrom through it:
perl splitrom.pl nk.nb1 | perl calcgaps.plwill give youstart0=81040000
size0=00010000
start1=81740000
size1=00040000
start2=81b00000
size2=003c0000

you may also specify another desired blockmask:
perl splitrom.pl nk.nb1 | perl calcgaps.pl 0xffffwill give youstart0=80160000
size0=00020000
start1=80650000
size1=00020000
start2=80bf0000
size2=00010000
start3=81030000
size3=00020000
start4=813f0000
size4=00010000
start5=815e0000
size5=00010000
start6=81720000
size6=00060000
start7=81790000
size7=00030000
start8=81af0000
size8=003d0000
start9=81ef0000
size9=00010000

the parameter specifies how large holes it will try to find.
my intention is to use this to generate the 'cfg/params' file. and automatically find out where empty space is in the rom.
and then have makexip automatically create the correct size xip regions.

Richjn
18th August 2003, 09:32 AM
Cool 8)