yashsingh1/xdaforums huggingface dataset:
[Upgrading, Modifying and Unlocking] misterjp:
Hi there,

First, some explanation about the content of the flash.bin file :

As I said in another post, this file contains the data to be flashed to the phone rom, the data is divided in small chunks of data padded with information on where to flash the data, the length of the data and a checksum. In the LG KS20 flash.bin file, all the chunks have the same size : 131584 (you can look at peng tools to see where it's used).

When extracted, the data are in 4 distinct region in the phone memory :

- The first part contains the header (which is some kind of upgrade system specific to WinCE, and apparently not used)

- The second part contains the first MSFLH50 region, and is marked as XIP.

- The fird part contains the second MSFLH50 region and is marked as readonly

- The last part contains the third region and is marked as FILESYSTEM.

All these parts are aligned on sectors : the sector size is 2048 bytes on this phone, and each sector end with a 8 bytes flag used by the WinCE low level functions to check the sanity of the data.

Finally, the content of each MSFLSH50 region :

1 - Contains

- MBR (the part that starts with E9FDFF, ends with 55AA, and with a length of 512 bytes) and the MSFLSH50 region definitions.

- The two first partitions (BOOT which is the Windows CE bootloader, RAWFS which is the WinCE Kernel)​

2 - Contains the imgfs partition which is the whole wince system and program

3 - Contains an empty fat partition which is used when you copy something on your phone.

A picture is worth a 1000 words, so there is an image explaining all of that attached to this post.

Now, on peng tools : This tool only updates the IMGFS partition, with one from another rom, so this could lead to some problem, as the bootloader and the kernel are from a specific version of Windows, and the IMGFS is from another. Moreover, if the build imgfs partition is not the same size as the original, it could lead to even more problem.

I'm new in the mobile hacking/cooking stuff, but I don't think that the other rom's chef build their rom this way.

I'm not criticizing peng work

: He was the first to cook rom for the KS20 and it's a big step forward so we should thanks him for his work, but I want all people using this tool to be aware of the risks of building roms this way.
[Upgrading, Modifying and Unlocking] dorik2k:
I had flashed my phone with italian 10c rom, backed up nv file, and all works fine. In emergency mode flashed with the english one, and I was unable to restore NV file, as windiag does not work... if this is not only my problem, but the rule with this rom, then I doubt someone else can restore NV, with current drivers and tools...

Edit... Maybe this method is ok, but the english rom available is not the right one... If you can find an english rom which has windiag enabled, and can be connected with lgmp, then extract part0*.raw, and rebuild everything, maybe it could work....

But even after that, I made a question which nobody answered,,, what about the wifi? is it related to nv?
[Upgrading, Modifying and Unlocking] raykisi:
How do we know the sector size and extra data size of KS20's Flash.bin?

How do we know the payload-chunk-size and the extra-chunk-size of KS20's Flash.bin?

Also in the Dump.bat, why do we do twice NBSplit, what does that mean?

.\Tools\NBSplit.exe -data 131584 -extra 12 OS.nb
.\Tools\NBSplit.exe -data 2048 -extra 8 OS.nb.payload
[Upgrading, Modifying and Unlocking] peng8:
根据raykisi提供的方法，注入如下信息，可以还原nv，链接见这里http://xdaforums.com/showthread.php?p=2329344#post2329344

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\WINDIAG]

"Dll"="windiag.dll"

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\WINDIAG\Settings]

"Enable"=dword:1

但是新问题来了，就是会出现otp block的错误提示，一时还不知道如何解决
[Upgrading, Modifying and Unlocking] raykisi:
Sorry, i am not quite sure which Rom you are talking about

Are you saying you can restore the .nv2 file back to KS20 even with the Custom Rom, the English x French Rom, that you built, after using my method to edit the registry key?

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\WINDIAG]

"Dll"="windiag.dll"

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\WINDIAG\Setting s]

"Enable"=dword:1

If so, which file did you use, WinDiag.reg or WinDiag_Open.cab
[Upgrading, Modifying and Unlocking] peng8:
can restore back to french v10f and the rom i built,but error occured "otp block"

use WinDiag.reg or WinDiag_Open.cab,the same result

by the way ,the nv2 is backup from the other's rom
[Upgrading, Modifying and Unlocking] dorik2k:
A lot of confusion here,,,

first of all, in the English-French rom, you cannot restore nv, so don't bother... We have to wait for some other time, at the moment, if you want to have the ks20 in english, you can't use the phone

second, if you get the otp block, it's not the windiag.reg fault, but you have to choose "Erase EFS" when flashing. the two files above are

1 "windiag.reg" - the reg file to import

2 "smth...cab" - the tool to import it

you can either open the registry with another program, and make the ghanges... you cannot prettend to install the cab file and do nothing else... You have to actualy change the registry of the phone. then the LGMP will recognize the phone, and then you can restore the NV file (don't matter what version it was backed up before), but you cannot restore the NV file with the English-French version...
[Upgrading, Modifying and Unlocking] peng8:
英文太差，不知道是否已经理解您的话了

不仅仅定制的英文rom，包括法文原版v10f rom，通过改变注册信息，restore nv后，都会出现“otp block"错误，即使选择了"Erase EFS"
[Upgrading, Modifying and Unlocking] bradbox:
Translated by Google:

i'm not sure if i understand your mean accurately.

Not only my customized English rom, including the French original v10f rom, by changing the registry, restore nv, there will be "otp block" wrong, even if the choice of the "Erase EFS".
[Upgrading, Modifying and Unlocking] noel1975:
great,but wifi gone,i think reason in that branded english rom,limit to use wifi

我沒有nv和otp問題,我的flash過程 > cht10a >fra10f unbranded(回復nv)

> ger10a unbranded(目的是想要還原在cht10a備份的backup,但失敗:mad:)> your

mix eng rom10b+10f...... so my case only restore nv.flie in first time upgrade

ks20 is my 1st ppc phone,but unbelievable to find suit lang rom like

that:eek:,nokia s60 is very simple:)

wm6對我來說很陌生,幫不了忙,只可在這默默支持你,盼可以在不久將來用得上你的完美

eng rom,加油:)
[Upgrading, Modifying and Unlocking] noel1975:
Also has one thing is that's france10f not complete fix gapi problem

still have many game and software not work,ex. FINALBURN:mad::mad::mad:
[Upgrading, Modifying and Unlocking] mathieulh:
I know brasilian roms from MS20/MS25 lack the wifi functionality. I think that they probably scrapped it off the hw when they changed the cpu to adapt the gsm frequencies in America.

I think the English rom you may be using is a MS20/MS25 rom from a north American handset, this would likely explain the lack of wifi capabilities, also you are lucky to get it work if that is the case but MS20/MS25 is not very different from KS20.
[Upgrading, Modifying and Unlocking] dcoloane:
you are so brave.......from 10a CHT upgrade...without a 10a CHT / 10b CHT ROM backup?
[Upgrading, Modifying and Unlocking] macrochris:
Radio of KS20

Is it OK for Radio of new rom:

Currently, I am 10b and with the follow radio problem:

1.Open Bluetooth when use Radio

2.Sound of KS20 will be interrupt when Radio is on

3.Incoming call will force Radio close without resume.

Can those problem solved at new rom?

Thanks
[Upgrading, Modifying and Unlocking] adfree:
Someone checked this Version?

DZ-KS20-00-V10c-ESA-XX-FEB-19-2008_0.zip

http://forum.gsmhosting.com/vbb/showpost.php?p=3436451&postcount=77
[Upgrading, Modifying and Unlocking] raykisi:
ChuckyIT has released two English Roms (Original .dz files)

East-South Asia region (ESA)

English Unbranded rom Ver.10c

http://rapidshare.com/files/125736251/DZ-KS20-00-V10c-ESA-XX-FEB-19-2008_0.zip.html

Hong Kong

English Unbranded rom Ver.10a

http://rapidshare.com/files/126667462/DZ-KS20E-00-V10a-454-XX-APR-29-2008_0.zip.html

Note: The release dates printed on the file name show that "HK-10a" is newer than the "ESA-10c"

More discussions and feedback about the rom may be found in the post below:

http://xdaforums.com/showthread.php?p=2362817#post2362817

As most users have Branded KS20 and always have problem when flashing with Unbranded rom (OTP block problem or illegal use issues)

So i have made two "Hybrid" roms using Peng's method, that is from FLASH.bin, then extract and replace the dump folder, and rebuild.

The "Hybrid" roms can be found in this post:

http://xdaforums.com/showthread.php?p=2367670#post2367670
[Upgrading, Modifying and Unlocking] dorik2k:
I made another "hybrid" using the German Rom, as this was the only one I had wich Flash.bin is biger than the English one... But after flashing the phone hung when booting (opens the vodafone logo, and then doesn't continue with windows)

So I want to ask two questions...

First, the german dump folder should be completely replaced by the english one, or I should overwrite it, to preserve files wich the english rom may not have, and the german has....?

Second, ...or is that misterjp is right, and then, as you said before, the numbers on the peng's script should be changed to mach a specific rom (as peng made them using french rom, and this is german, with different sizes, etc.)

By the way, the phone was not bricked. I flashed again in emrgency mode... still in the business for testing further roms... :D
[Upgrading, Modifying and Unlocking] raykisi:
Hi, dorik2k

To ans your questions:

1. The german dump folder should be completely replaced by the english one, (you can simply delete OR rename the german dump folder to another name, like "Old" or whatever you want, then put the english dump folder in instead)

2. You have to change the number on the peng's script to suit german rom, the detail of it pls refer back to peng's posts

Also, as you didn't brick it even with wrong Rom build, so if u want i think u can try to flash french 10f's .mbn files with english 10a's OR 10c's FLASH.bin, just like wht you ask me before without worrying to brick your KS20.
[Upgrading, Modifying and Unlocking] dorik2k:
It worked man,,,, it f*** worked :)
[Upgrading, Modifying and Unlocking] dorik2k:
I replaced only flash.bin,,, and the phone even got the english boot partitions,,, when charging when phone is of it tells "battery charging" in english,,,

will do further tests and post some pictures....

till now no errors, phone ok, bluetooth, wireless, mms, etc, all ok..... :D

Edit... Here are some pictures for those who don't believe :p

Should I upload the rom? is is simple to make though, just replace flash.bin...
[Upgrading, Modifying and Unlocking] dorik2k:
Here is the link of the rom:

http://rapidshare.com/files/127542053/KS-20_English_ESA__10c_19Feb2008_.rar.html

It is English ESA version,,, use your original nv2 file after flashing, and things will be fine. For flashing procedures check this post:

http://xdaforums.com/showthread.php?t=369481
[Upgrading, Modifying and Unlocking] raykisi:
What a good news

Congratulation, dorik2k

But are you using the french 10b rom's .mbn files?

As the picture shows the modem firmware is 10b not 10f

Why dun you use french 10f rom's .mbn files? It is newer.
[Upgrading, Modifying and Unlocking] dorik2k:
Thnx,,, and thnx for the help...

If I can ask you,,, is the HK version newer, should I use that better than the ESA?
[Upgrading, Modifying and Unlocking] raykisi:
For the FLASH.bin

Although, the ESA's version is 10c while HK's version is only 10a, but the release date for the HK rom is newer, so i would prefer HK-10a FLASH.bin

For the mbn. files

Same reason as above, French voda 10f is newer than 10b, so i would prefer 10f's .mbn files

Thus, i would prefer a HK-10a + French-voda-10f rom

In addition, it is most likely that is amss.mbn doing the .nv2 check for OTP block, if that's the case, may be we can only replace for the amss.mbn file instead of all .mbn files
[Upgrading, Modifying and Unlocking] arash3210:
Congratulation dorik2k

my ks-20 is sfr and rom v10b...

can i use your rom for flashing my phone????

can you write step by step instruction for flashing my phone

tnx for your help
[Upgrading, Modifying and Unlocking] dorik2k:
sorry mate, too long to give you step by step instructions,,, I've given a rom and a link in the previous post, and those are step by step instructions,,, just don't download roms in that post, but mine.... though I've used an older version of english rom,,, if you want you can make another one... I don't have time at the moment,,, but if someone else can make it,,, ask raykisi, maybe he can build it now....
[Upgrading, Modifying and Unlocking] dorik2k:
I'm making the English HK rom,,, currently flashing,,, if it works I'll post another reply with links,,, please be patient. This is newer so you can wait, or use the previous link,,,, the choice is yours
[Upgrading, Modifying and Unlocking] dorik2k:
Flashed the HK rom,,, and after that no need to restore nv,,, maybe cuz they were both unbranded... as soon as upload finishes will give the link...
[Upgrading, Modifying and Unlocking] dorik2k:
So here are the download links...

Don't forget to make a backup of your NV2 file. This is really important!!

English ESA version 10c 19/Feb/2008 (older)

http://rapidshare.com/files/127542053/KS-20_English_ESA__10c_19Feb2008_.rar.html

English HK version 10a 29/Apr/2008

http://rapidshare.com/files/127562995/KS-20_English_HK__10a_29Apr2008_.rar.html

Step-by-step instructions for flashing

http://xdaforums.com/showthread.php?t=369481

Instructions for making unbranded "Hybrid" roms (like the english)

http://xdaforums.com/showthread.php?t=405945
[Upgrading, Modifying and Unlocking] DomZ:
Does it means that we can flash unbranded roms on branded phones ?
[Upgrading, Modifying and Unlocking] dorik2k:
Yeppp.... use your original NV2 file after that, and unlock the phone...

For unlocking use this tool...

extract the archive to c:\, connect the phone, execute this file from command prompt, and it will show you the unlock code

enter 2945#*20# on dialpad, and in the next window enter the code given by the tool... good luck

If you flash the phone with an unbranded rom, like the english for example, all other unbranded roms flashed in the future will not require restoring nv or unlocking... this will be necessary only if flashing back to branded rom
[Upgrading, Modifying and Unlocking] DomZ:
dorik2k

The last rom version available over the world is 1.0g (compiled 2008/04/05).

This is for Vodafone Greece (so i suppose that language is greek).

I think this is the best rom base.

Can you make a flashable rom with it ?

Thanks
[Upgrading, Modifying and Unlocking] DomZ:
English HK version 10a is build on 29/Apr/2008 but are we sure that this vesion use newer files than 1.0f ?
[Upgrading, Modifying and Unlocking] dorik2k:
well, I think you can make every rom you want, but I haven't tried it...

Bu there is no need to be made by me. You can make it yourself.

Take the mbn files of the greek rom (all files without flash.bin), or whatever rom you want, put in that folder flash.bin of the english rom (HK is the newest, but it's your choice), and flash...

if it works you can post the results, so we know it is possible with every rom...
[Upgrading, Modifying and Unlocking] arash3210:
when i connect my phone with lg MDP

after select th connect my phone in next page in my bluetooth addr write:NOT_ACTIVE______ !!!

is there any problem ????

i fear that the nvbackup does not contain the buluetooth address!!!
[Upgrading, Modifying and Unlocking] dorik2k:
That happens for me too, don't know why, but bluetooth is ok

If you are flashing, it is better do it in emergency mode by the way...
[Upgrading, Modifying and Unlocking] DomZ:
Is bluetooth is active on the phone ?
[Upgrading, Modifying and Unlocking] dorik2k:
Everything works. I think I should Write a list :p

Bluetooth: OK

Wireless: OK

Phone+SMS+MMS: OK

Radio: OK

Camera: OK

.....did I forget smth?

Oh... yes,,, Solitarie is there too :D
[Upgrading, Modifying and Unlocking] raykisi:
Hi, dorik2k

In your previous post, you posted a picture to show the rom is working fine, and i saw there is a little PDA icon in the main screen right hand bottom corner, just above the windows bar, what is that program?

Hi, arash3210

"my bluetooth addr write:NOT_ACTIVE______ !!!" dun worry about that, it should be fine, every KS20 user have the same situation, but just make sure your .nv2 file size is 116KB, as it is always 116KB, if it is not 116 KB something is wrong then. Here is one of the solution for those stuck with .nv2 file backup or restore.

http://xdaforums.com/showthread.php?p=2331029

I have just flashed the HK-10a English rom, works fine
[Upgrading, Modifying and Unlocking] dorik2k:
That program is called MyMobiler,,, is smth line vnc for windowsmobile... It's usefull for people (like me), who write a lot of sms and other stuff... I connect the phone with activesync and then I can see and command it from the screen and with the mouse, and write with the PC's keyboard... smth like RealVNC or Windows Desktop Connection, but for Windows Mobile... You can use it also to take the pictures, like I dit in that post,,,,

You can find it here:

http://www.mymobiler.com/

and it's free....
[Upgrading, Modifying and Unlocking] arash3210:
hi

my nv2 file always 117 kb !!!!:(

i install windiag.cab but still 117 kb

in nvbackup after i select download after about 50 sec it wrote TIMEOUT!!!

what should i do?
[Upgrading, Modifying and Unlocking] dorik2k:
Maybe your nv2 file is broken,,, look in the LGMP folder to see if it made some automatic backups, and search for one of 166kb...
[Upgrading, Modifying and Unlocking] gregnapola:
Hi,

What about openGL issue with the hybrid unbranded English ROM (29-04-2008) ??? Can someone who's trying it tell me if programs like pointUI work? Thanks a lot for your great job :)

EDIT: just read the answer in the other thread..
[Upgrading, Modifying and Unlocking] dorik2k:
Look and see....:D
[Upgrading, Modifying and Unlocking] gregnapola:
Yeaaaaah!!! And finally...we have our "(Hybrid) 10f English Rom"

You're the man! ;)
[Upgrading, Modifying and Unlocking] dorik2k:
To be exctact, it's not a 10f, but 10a (HK version) and 10c (ESA)...

but from what I got till now, versions are language independant...

for example, HK is 10a, but it's newer from the French 10f (take this as an example, I didn't check correctly) cuz it has been compiled in an later date, and based on things wich are already in version 10f, but since it's the first version for HongKong (HK) it is the "a" (first) of it's series....

Let's say that this version is mixed, and the method I used can be made from many roms and versions (at least I think it can be done)...
[Upgrading, Modifying and Unlocking] arash3210:
i change computer

everything is ok. but still 116 kb nv2 file size!!! ar you sure about nv2 file size (166 kb)?

what should i do?
[Upgrading, Modifying and Unlocking] gregnapola:
Ok, thanks for your explanation...:) Now all I have to do is to have courage to flash my phone and make it better than now (10c Italian Rom - 2008-2-10)...
[Upgrading, Modifying and Unlocking] arash3210:
dorik2k

what is your nv2 file size??
[Upgrading, Modifying and Unlocking] dorik2k:
Try this post...

http://xdaforums.com/showpost.php?p=2354610&postcount=362

It could help restore the imei... If you don't know the imei number to put in the program, it is written under your battery pack...
[Upgrading, Modifying and Unlocking] dorik2k:
nv2 file sieze is allway 166kb
[Upgrading, Modifying and Unlocking] dorik2k:
be carefull to backup your nv2 file first,,, or you'll have troubles like harash has...
[Upgrading, Modifying and Unlocking] dorik2k:
In the post I gave you to change the imei number, I don't know if it works,,, but QPST gave me some tricky troubles...

if it can't find the phone, disconnect it, close QPST, then first open QPST and after it is running, connect the phone. It will find it when you plug the usb...
[Upgrading, Modifying and Unlocking] arash3210:
i am not flash my phone and i still is france rom...

my phone is working and no problem with phone or imie or ...

i want to change rom and problem with size of nv2 file...
[Upgrading, Modifying and Unlocking] dorik2k:
You mean you didn't flash the phone cuz you fear your nv2 file you get from LGMP is of the wrong size, and you couldn't restore it if you flash the phone?

did i get this right?
[Upgrading, Modifying and Unlocking] arash3210:
yes that is right!!!:d
[Upgrading, Modifying and Unlocking] dorik2k:
Well,,, I cannot help you in this situation...

If you make a backup of your nv with LGMP_EURO, you should get a file of 166kb in size. If it is not, then don't know what to tell you,,,, You have a KS-20, right?

This is what we all get at least,,, if yours is different, I have no explanation :confused:

I don't think you can send it to LG Service and tell them you don't get the nv file correctly neither,,,

maybe you should wait and see what happens in the future. I don't recomend you flashing without a correct backup of the nv, otherwise, you could get troubles....
[Upgrading, Modifying and Unlocking] dorik2k:
Well,,, let's do this from the beginning:

Connect the phone (presuming drivers installed and phone connected)

Open LGMP_EURO (not the others...), and it finds the phone

Click "Connect"

It will ask you for the file to upload on the phone

Close this and go to Tools->NV Backup

and then click connect

In the LGMP_Euro folder, should be a nv2 file of 166kb,,, if it is not, sorry mate...
[Upgrading, Modifying and Unlocking] arash3210:
where do you go in lg-mdp for nv backup?
[Upgrading, Modifying and Unlocking] dorik2k:
Read post before this,,, you missed it maybe... explained there
[Upgrading, Modifying and Unlocking] DomZ:
All people that had a KS20 branded has a 116kb nv2 file.

What the size of the nv2 file which come from the rom that was originally in your KS20 ?
[Upgrading, Modifying and Unlocking] arash3210:
sorry dorik2k i miss your post
[Upgrading, Modifying and Unlocking] dorik2k:
If even that fails, then there is one last hope... but do it at your own risk...

I've noticed that if you flash the phone in normal mode (phone on, not in emergency mode), then LGMP makes a NV backup on it's own, and then restores it after flashing finishes... If you never flashed your phone and have a branded rom, you can try this way. After this, you'll have a nv file in the NvBackup folder which should be of the right size...

try this method with a branded rom first, to see if it gets the nv file...

When starting flashing, it will do some things really fast, and then will ask you if you want to backup nv or not... DON'T TOUCH ANYTHING.... you may click NO by mistake... it really is very confusing. Just start flashing and don't click anything like Yes or No,,, just wait for the LGMP to do all the job...

First time I flashed I didn't know any of this stuff,,, but lucky me, it made the nv backup that time, and I've got no troubles till then.... If I flashed the phone the first time in emergency mode, I could just have a brick in my desk now....
[Upgrading, Modifying and Unlocking] arash3210:
you mean that your nv2 file is 116 KB too?
[Upgrading, Modifying and Unlocking] dorik2k:
If this is true, than you have an unbranded phone... and you got all this troubles for nothing... flashing the english rom will not require you to restore the nv file,,,, if you have an unbranded phone of course,,,,

Does it show any operator logo on boot, or is it just the LG one,,,?
[Upgrading, Modifying and Unlocking] DomZ:
Yes of course, like all users of branded phones.
[Upgrading, Modifying and Unlocking] arash3210:
no in boot up nothing appear (only LG) ...but in the back of the battery have sfr logo
[Upgrading, Modifying and Unlocking] DomZ:
I have a branded phone.

My phone is from SFR and was provided with 1.0b rom, of course branded.

Then i flash it by myself with DZ-KS20FL-01-V10f-208-10-FEB-19-2008_1.dz.

Which is an branded rom.