PDA

View Full Version : how to change my old nb file compression to lzx from xpr


mrpotter
23-12-2007, 02:32 AM
i want to change my chinese rom nb file to LZX compression mode.
below is my test but none successed!
1,get imgfsbin
imgfsfromnb old.nb old.bin
imgfsfromnb korand.nb korand.bin

now open bins with ultraedit,i see old.bin is XPR and korand.bin is LZX.

2,imgfstodump old.bin

3,try to create new nb file with dump and LZX new.bin

imgfsfromdump korand.bin new.bin

4,imgfstonb new.bin korand.nb new.nb

now i can enter the today screen sucessfully but all provxml files are not executed when hard reset,so the security policy is strict and cannot install any cabs or sync.i don't know why bcoz the dump dir wokrs fine with old.nb

imgfstonb new.bin old.nb new.nb

i try to create new nb with dump and LZX new.bin based on old.nb
but after flash this the phone stuck in the 2nd boot screen and cannot get into windows mobile.

at last,how to change my old nb compression to LZX?

hma4
23-12-2007, 02:50 AM
i want to change my chinese rom nb file to LZX compression mode.
below is my test but none successed!
1,get imgfsbin
imgfsfromnb old.nb old.bin
imgfsfromnb korand.nb korand.bin

now open bins with ultraedit,i see old.bin is XPR and korand.bin is LZX.

2,imgfstodump old.bin

3,try to create new nb file with dump and LZX new.bin

imgfsfromdump korand.bin new.bin

4,imgfstonb new.bin korand.nb new.nb

now i can enter the today screen sucessfully but all provxml files are not executed when hard reset,so the security policy is strict and cannot install any cabs or sync.i don't know why bcoz the dump dir wokrs fine with old.nb

imgfstonb new.bin old.nb new.nb

i try to create new nb with dump and LZX new.bin based on old.nb
but after flash this the phone stuck in the 2nd boot screen and cannot get into windows mobile.

at last,how to change my old nb compression to LZX?

The reason your phone can't boot is because the cecompr.dll in your XIP doesn't support LZX compressed. you have to use the same XIP (or make a proper port with the same cecompr.dll as Korand rom).

Hope it helped :)

if you Hexedit imgfs.bin and change the XPR to LZX your new imgfs will be LZX compressed.

mrpotter
23-12-2007, 03:54 AM
thanks very much!
i don't know how to port xip,so i decide to use your crystal.nb as nb template.but why provxml files not executed when hard reset.the dump folder works fine with the old nb file.so i think it's something related to the xip of new nb.

i tried to process the provxml after cold init,retrieve error 0x80004005(unsepecified error)