[Upgrading, Modifying and Unlocking] Hellmuth:
Hi,

I’m Hellmuth from Germany and try to cook my own Rom for my new CiPhone C6 (3.5 Inch :) )

I used Weisuns OSNB-tool to split the Rom and later to Build it again

At the first step I try to split and rebuild the Rom. Without any changes.

But something seems to be wrong.

1. IMGFS in dump is different to Original IMGFS.

All files are there but when I compare them in TotalComander there are some differences in this files:

initflashfiles.dat, packages.sof, default.hv and user.hv and all *.DSM files

Is that a Problem ?​

2. The new IMGFS is smaler than the old one

110.624.768 imgfs_old.bin

99.944.448 imgfs_new.bin

But Again when I extract IMGFS_new the dump folder is the same size and all files are there​

3.when I try to extract my cooked rom with OSNBtool my kitchen stops and it don't look the same way I bolded some differences I found

Extracting from the original Rom looks like this:

OS ROM Partition Tool V1.56 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.​

Extracting from the new Build Rom looks like this:

OS ROM Partition Tool V1.56 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: 0x00000000

BIN_START: 0x00000000 BIN_LENGTH: 0x067E7800

Records: 0x00000338 RecordsSize: 0x067696AC

BinFileSize: 0x067696BB

StartAddr: 0x00000000

CiPhone.bin.BIN.NB0 written.​

I hope you can help me

Thank you for your affords in prediction

Hellmuth

Here are my:confused: batchfiles

Extrcat.cmd

@ECHO OFF

PATH %~dp0\Tools;%PATH%

Title CiPhone ROM Kitchen BY Hellmuth

CD /D "%~dp0"

cd Source

osnbtool -sp CiPhone.bin

Rem osnbtool -d CiPhone.bin.OS.NB 0 boot.bin

osnbtool -d CiPhone.bin.OS.NB 1 xip.bin

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

Rem osnbtool -d CiPhone.bin.OS.NB 3 DosPartition.bin

cd..

copy Source\xip.bin XIP_old.bin

xidump -build XIP_old.bin

md ROM

move xip. rom.

move romhdr.bin rom\

cd rom

attrib xip\*.* -h -s -r /s

cd XIP

move MSXIPKernel\boot_ms.rgu boot_ms.rgu

move OEMXIPKERNEL\boot.hv boot.hv

move OEMXIPKERNEL\boot.rgu boot.rgu

cd..

cd..

copy Source\imgfs.bin imgfs_old.bin

ImgfsToDump.exe imgfs_old.bin

packagebuilder.exe dump

move dump\SYS SYS

attrib dump\*.* -h -s -r /s

attrib sys\metadata\*.hv -h -s -r

move sys\metadata\*.hv dump

move dump\OEM OEM

ECHO.

ECHO Fertig

ECHO.

pause
​

BuiltOS.cmd

@ECHO OFF

PATH %~dp0\Tools;%PATH%

Title CiPhone ROM Kitchen BY Hellmuth - Rom wird gebacken

CD /D "%~dp0"

BuildOS.exe

move dump\*.dsm temp\dump\

pause

move imgfs_old.bin Temp\imgfs_old.bin

CD Temp

WMReloc -gdump -lGLB_WMReloclog.txt

ImgfsFromDump imgfs_old.bin imgfs.bin

cd ..

move temp\imgfs.bin Source\imgfs_new.bin

cd Source

snbtool -c CiPhone.bin.OS.NB 2 imgfs_new.bin

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

osnbtool -2bin CiPhone.bin.OS.NB.NEW.EXA (OS.nb.NEW.EXA.bin=NewROM.bin)

ren CiPhone.bin.OS.NB.NEW.EXA.BIN Ciphone.new.bin

osnbtool -fixbinheader Ciphone.new.bin

ECHO.

ECHO Fertig

ECHO.
​