Hellmuth

Need Help using OSNBtool For rebuilding CiPhone Rom

1 post in this topic

Hi to all of you

I try to cook a Rom for Ciphone C6. I found OSNBTOOL and it seems to work fine.

For the first time I just try to extract IMGFS.BIN and write it back to the File without making any changes.

Extracting seem to works well but I can't built a flashable Rom from it

My CiPhone.new.bin is allways smaller than the original one and it is not flashable.

I hope someone can Help me.

May be someone can help me to open an account at PDACLAN.COM I think they could help me. But so far I wasn't able to become a member in the Forum (Cinese is to dificult for me).

What I did (short Version)

Extracting (works fine)

osnbtool -sp CiPhone.bin

osnbtool -d CiPhone.bin.OS.NB 2 imgfs.bin

Building ( I tried 3 Options but not one of it made a flashable ROM)

1st Option

osnbtool -c CiPhone.bin.OS.NB 2 imgfs.bin

osnbtool -extra CiPhone.bin.OS.NB.NEW

copy/b/y ciphone.bin.pre+ciphone.bin.os.nb.new.exa ciphone.NEW1.bin

2nd option

osnbtool -2bin CiPhone.bin.OS.NB.NEW.EXA

copy/b/y ciphone.bin.pre+ciphone.bin.os.nb.new.exa.bin ciphone.NEW2.bin

3d Option

osnbtool -fixbinheader Ciphone.new2.bin

What I did (Long Version with Prompt from OSNBTOOL)

osnbtool -sp CiPhone.bin

OS ROM Partition Tool V1.59 By Weisun :> PDAclan.com

Sector size : 0x00000800

Extra data bytes : 0x00000008

OS IMAGE found.

Partitions infomation:

**************************************

Part-0 type: BOOT SECTION image

Part-1 type: XIP RAM Image

Part-2 type: IMGFS file system

Part-3 type: legit DOS partition

**************************************

CiPhone.bin.PRE written.

-------------------------------------------------

Sector counters (extra-data) found in source file.

Partition 0 true offset:00000002 true size:0000027E Len:0000027E

Partition 1 true offset:00000280 true size:00000740 Len:000006C0

Partition 2 true offset:000009C0 true size:0000D380 Len:0000D300

Partition 3 true offset:0000DD40 true size:000005CF Len:000117C0

CiPhone.bin.OS.NB written.

osnbtool -d CiPhone.bin.OS.NB 2 imgfs.bin

OS ROM Partition Tool V1.59 By Weisun :> PDAclan.com

Sector size : 0x00000800

Extra data bytes : 0x00000000

OS IMAGE found.

Partitions infomation:

**************************************

Part-0 type: BOOT SECTION image

Part-1 type: XIP RAM Image

Part-2 type: IMGFS file system

Part-3 type: legit DOS partition

**************************************

Can not find compression signature.

Part-2 de-packing...

Successfully de-packed to imgfs.bin

Building

osnbtool -c CiPhone.bin.OS.NB 2 imgfs.bin

OS ROM Partition Tool V1.59 By Weisun :> PDAclan.com

Sector size : 0x00000800

Extra data bytes : 0x00000000

OS IMAGE found.

Partitions infomation:

**************************************

Part-0 type: BOOT SECTION image

Part-1 type: XIP RAM Image

Part-2 type: IMGFS file system

Part-3 type: legit DOS partition

**************************************

Can not find compression signature.

Part-2 inserting...

Part-2 is an IMGFS Partition...

Successfully inserted imgfs.bin into CiPhone.bin.OS.NB.NEW

osnbtool -extra CiPhone.bin.OS.NB.NEW

OS ROM Partition Tool V1.59 By Weisun :> PDAclan.com

Sector size : 0x00000800

Extra data bytes : 0x00000000

OS IMAGE found.

Partitions infomation:

**************************************

Part-0 type: BOOT SECTION image

Part-1 type: XIP RAM Image

Part-2 type: IMGFS file system

Part-3 type: legit DOS partition

**************************************

Extra data inserted into CiPhone.bin.OS.NB.NEW.EXA.

copy/b/y ciphone.bin.pre+ciphone.bin.os.nb.new.exa ciphone.NEW1.bi
n

CiPhone.bin.PRE

CiPhone.bin.OS.NB.NEW.EXA

1 Datei(en) kopiert.

Building 2nd Option

osnbtool -2bin CiPhone.bin.OS.NB.NEW.EXA

OS ROM Partition Tool V1.59 By Weisun :> PDAclan.com

Sector size : 0x00000800

Extra data bytes : 0x00000008

OS IMAGE found.

Partitions infomation:

**************************************

Part-0 type: BOOT SECTION image

Part-1 type: XIP RAM Image

Part-2 type: IMGFS file system

Part-3 type: legit DOS partition

**************************************

OS-IMAGE offset : 0x00000000

Block size : 0x00020000 Sectors per block : 0x00000040

Partition 0 true offset:00000002 true size:0000027E Len:0000027E

Partition 1 true offset:00000280 true size:000006C0 Len:000006C0

Partition 2 true offset:00000940 true size:0000D300 Len:0000D300

Partition 3 true offset:0000DC40 true size:00000600 Len:000117C0

Recorder size : 0x00020200

Start address : 0x00000000

Packed to CiPhone.bin.OS.NB.NEW.EXA.BIN.

copy/b/y ciphone.bin.pre+ciphone.bin.os.nb.new.exa.bin ciphone.NEW2.bin

CiPhone.bin.PRE

CiPhone.bin.OS.NB.NEW.EXA.BIN

1 Datei(en) kopiert.

3rd Option

osnbtool -fixbinheader Ciphone.new2.bin

OS ROM Partition Tool V1.59 By Weisun :> PDAclan.com

Sector size : 0x00000800

Extra data bytes : 0x00000008

OS IMAGE found.

Partitions infomation:

**************************************

Part-0 type: BOOT SECTION image

Part-1 type: XIP RAM Image

Part-2 type: IMGFS file system

Part-3 type: legit DOS partition

**************************************

Found 'B000FF' header at offset: 0x0024A608

START_ADDR: 0x00000000 BIN_LENGTH: 0x071F1800

Records: 0x00000389 (905)

FirstRecord: 0x00000000 LastRecord: 0x071F1800

-----------------------------> NEW_BIN_LENGTH: 0x07211A00

Ciphone.new2.FIX.bin written.

Thank you for your answer in atvance

Grüße Hellmuth

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.