LG KS20 Questions: raw, dz, flash.bin??? - General Questions and Answers

hi people,
i dumped my phones rom with pdocread. gave me 4 files:
part00.raw
part01.raw
part02.raw
part03.raw
now... i still have a few questions i didnt quite find an answer to:
1. whats included in those .raw files?
2. the flash.bin and .mbn files make up a .dz file?
3. it's possible to extract and compile them from/into a .dz file?
4. where is the connection between .raw and .dz files?
5. what is the flash.bin?
6. wheres the operating system?
7. is there a way to restore your phones rom (raw files) in order to put it back to its original state (where you dumped it at)?
is there a faq on the ks20's file system?
many questions, i know... gave me headaches too. but maybe someone is willing to give answers??

for the record, we don't deal with non-HTC devices.. hope you get your answer

1. whats included in those .raw files?
- part 0 : uldr
- part 1 : xip
- part 2 : imgfs (=sys+oem)
- part 3 : user partition
2. the flash.bin and .mbn files make up a .dz file?
Yep.
3. it's possible to extract and compile them from/into a .dz file?
MisterJp and CopsFrance made tools to extract a dz file.
4. where is the connection between .raw and .dz files?
part0.raw + part1.raw + part2.raw = flash.bin
*.mbn + flash.bin = rom.dz
5. what is the flash.bin?
see above.
6. wheres the operating system?
Os = Xip + Imgfs
7. is there a way to restore your phones rom (raw files) in order to put it back to its original state (where you dumped it at)?
Not exactly as dump files don't contain mbn parts of the dz (mbn files contain bootloader + radio + a few other parts.).
But if you understood correctly with your raws you can make up a new flash.bin. If you use mbn files from an extracted dz rom, you'll have a rom very similar to your original one (except that radio part won't be necessary the same).
Have a look in Upgrading part of the forum (in my signature too), I made a Kitchen and a Rom for Ks20.

wow. that's an answers i was looking for. someone knows his stuff. thanks alot.

Related

How to flash dumped rom ?

I have dump rom for Vox in .raw format. How can I flash phone with these?
I was trying to convert it to .nb file with imgfstools with no luck. I got error that MSFLSH50 header not found.
I don`t need to edit the rom.
Is even that possible to flash vox with dumped rom ?
Help please!!!!
That`s steps I take:
1. 'imgfstodump part02.raw` (result: ok)
2. imgfsfromdump part02.raw imgfs.new.bin (result: ok)
3. Use a donor .hbh to extract, Have a 04_os.nb
4. Nosplit -hermes 04_os.nb (result: ok) Have now: 04_os.nb.payload (rename to: 04_os.nb.old.payload)
5. Imgfstonb imgfs.new.bin 04_os.nb.old.payload 04_os.nb.payload (result: error. "MSFLSH50 header not found.")
Now, what am I doing wrong ? Coz I don`t get it and I`m stuck.
Help.
Thanks
You can't flash the .raw
But I found another way to dump and flash a ROM.
You will need a special USPL which can raw dump to SD and Winhex to read the raw dump to file. Tomorrow I will post the details.
jockyw2001 said:
You can't flash the .raw
But I found another way to dump and flash a ROM.
You will need a special USPL which can raw dump to SD and Winhex to read the raw dump to file. Tomorrow I will post the details.
Click to expand...
Click to collapse
Yes, I know, I can`t flash .raw file. Above I posted steps I took to create a .nb file from .raw and error I get.
Please take a look.
Other way, can I use:
Code:
pdocwrite -w -d FLASHDR -p Part02 0 0x3586800 Part02.raw
to flash part02.raw to device? I know it`s not save, but will it work?
The .raw files I have come from other Vox with diferent rom version,that`s why I want to flash it, so I`m not iterested to dump my rom.
Thank
jockyw2001 said:
You can't flash the .raw
But I found another way to dump and flash a ROM.
You will need a special USPL which can raw dump to SD and Winhex to read the raw dump to file. Tomorrow I will post the details.
Click to expand...
Click to collapse
I think it it just what I need. Waiting for your details. Will it work on htc 710 vox? How safe is this procedure?
jockyw2001 said:
You can't flash the .raw
But I found another way to dump and flash a ROM.
You will need a special USPL which can raw dump to SD and Winhex to read the raw dump to file. Tomorrow I will post the details.
Click to expand...
Click to collapse
Regardless what I said before, could you jocky2001 post these details.
Please.
Thanks

Which kitchen to use??

Hi guys,
I wanted to start cooking my own ROM and was wondering which kitchens are available that i can use. The only ones i know of are:
1) Hypercore kitchen by anichillus (http://forum.xda-developers.com/showthread.php?t=324682)
2) Beasty and Leo's Kitchen (only saw the snapshot in one of their posts, dont know where i can get it from)
What other options do i have when it comes to ROM Kitchens? And what exactly are the pro's and con's associated with each of the kitchens you mention!
A quick reference to some tutorials and how-to's would be awesome too I've already got some reading material but, the more the better!
I'd really appreciate any help i can get.
Thanks!!!
really, noone?!?
thingonaspring is offering a kitchen from his 3.2 rom, he added a cooking tutorial.
http://forum.xda-developers.com/showthread.php?t=332737
best kithen its kithen which you create by yourself .and for your own... mine for example
2 bat files ... pack and unpack
unpack
1. extracts nbf file
2. extracts nb file content
3. creates packages ...
4. extracts xip.bin and xip contents to folders near sys and oem
5.. system metafiles ( old reg ... initflash files .. and others ) place near sys as meta folder
6. all rgu files from packages hey copy near sys and oem folder as reg folder .. with mark of priority while assembling
after all
sys folder
oem folder
xip folder
xip extended folder with xip.bin and other xip related extracted stuff
reg folder with rgus
meta folder
pack.bat
1. promt .. what rgus use for assembling .. placed in packages or placed in reg folder
2. creating dump folder
3. calculate rom space .. if they exeed standart process brakes
4. injecting xip_out.bin in nb file
5. creating nb.new file
6. assembling nbf file
quadxeon said:
thingonaspring is offering a kitchen from his 3.2 rom, he added a cooking tutorial.
http://forum.xda-developers.com/showthread.php?t=332737
Click to expand...
Click to collapse
I've downloaded thingonaspring's kitchen. Will look into it as soon as i get free from work!
mo3ulla said:
best kithen its kithen which you create by yourself .and for your own... mine for example
2 bat files ... pack and unpack
unpack
1. extracts nbf file
2. extracts nb file content
3. creates packages ...
4. extracts xip.bin and xip contents to folders near sys and oem
5.. system metafiles ( old reg ... initflash files .. and others ) place near sys as meta folder
6. all rgu files from packages hey copy near sys and oem folder as reg folder .. with mark of priority while assembling
after all
sys folder
oem folder
xip folder
xip extended folder with xip.bin and other xip related extracted stuff
reg folder with rgus
meta folder
pack.bat
1. promt .. what rgus use for assembling .. placed in packages or placed in reg folder
2. creating dump folder
3. calculate rom space .. if they exeed standart process brakes
4. injecting xip_out.bin in nb file
5. creating nb.new file
6. assembling nbf file
Click to expand...
Click to collapse
Do your Pack.bat and Unpack.bat files work for ANY NBF files or only for the kitchen you use?? If they work for all NBF files, is there any chance you could provide me with those batch files?
1. any nbf file placed in source folder may be unppacked
2. its not only bat files .. primary its a complex of unreleased progs
3.. no chance .. becose this kithen i made with cooperation with 1 mad programer .. who not like freeware licence
mo3ulla said:
1. any nbf file placed in source folder may be unppacked
2. its not only bat files .. primary its a complex of unreleased progs
3.. no chance .. becose this kithen i made with cooperation with 1 mad programer .. who not like freeware licence
Click to expand...
Click to collapse
perfectly understandable ... any chance you could help me build my own kitchen? i've got over 6 years of programming experience in over a dozen languages. you'll just have to provide me with guidelines. possible??

Convert .nbh to nk.nbf

Is it possible to convert .nbh to nk.nbf to be able to flash this rom on a prophet?
It depends on where the nbh is from. To do it, you'll have to dump it into SYS/OEM (I'd use a hypercore related tool for this) and then rebuild it into an OS.nb before converting it to nk.nbf for flashing.
Its HTC ELF original Rom...where can i find all tools?
thanks dude
In the prophet WM6 forum, there is a link to HyperCore kitchen.
I'm not sure if the ROM will work straight away on a Prophet, as they have different hardware...
edit: to dump the ROM you will need to use the attached files. Put the *.nbh in the same directory as the two files and then run the batch file.
thanks man,am gonna work on it right now
hey guy .. when i use the nbh extract .. there write could not open the nbh file ..
how ?? can you all please help me ??

Putting togeter exe from wm6 image (noob)

Hi,
Following this thread: http://forum.xda-developers.com/showthread.php?t=310287 I created a dump directory for a WM6 image. Inside the SYS directories are a number of subdirectories. Some of these subdirectories have familiar names (e.g. calendar.exe). Using calendar.exe as an example, there are 5 files: imageinfo.bin, imageinfo.txt, S000, S001, and S002. Here are my questions:
1. What are these 5 files?
2. What tool would I use to put the folder together to create a single executable?
Sorry for the noob questions but I can't find the answer on the forums!!
OK, after trying out all of the tools in one of the bundles, I found the answer to the second question:
2. Within someone's kitchen tools (I don't remember which one I downloaded) was a file called recmod.exe. Run it with the folder as a parameter and it will put the exe together.
I still don't have the answer as to what those 5 files are though.
My terms may be off base but I'll try to explain what these files are as I understand it (and hopefully not look stupid in the meantime as I'm also trying to explain it in layman's terms).
Many core files are constructed like this so that they are optimized in the Rom to make them run more efficiently on our devices.

1st try at the kitchen, and I can only fry some eggs....

Hi guys....
I've been a member of this comunity for 2 years now, but posted very litle, because I would be mostly spamming, re-interating what others have said, with" wow, this is fast...nice job"...and such..so i only post when I realy have to.
I downloaded the hypercore kitchen, and after some reading of the contained links and txt files, decided to have a go at it...
I would like to target Tomal's v8 but although very fast, it seems to have a significant number of com bugs...So maybe I'll go with v7.7...
I copied the nk.nbf file to the correct directory, and ran the decoder, but it errors on the next step saying that there is no OS.nb file...
Should this file be extrated from the nk.nbf?
Is this a problem with the nk.nbf file I'm using?
I would apreciate some help on this, as I'm looking for a full flavored cake, but to my taste...see I'm "diabetic" so I have to be extremly caution with what I cook...
When you decoding nk.nbf, decode it to OS.nb (change second line) instead nk.nba.
Something else to be aware of with Tomal's ROMs is that he ships all his RGUs in a single RGU.cab file.
You'll need to extract the contents of this file into the dump directory AFTER the imgfstodump and BEFORE the pkgtool step.
-PJC
Thanks for the quick answers, guys...
Something pop-up as a doubt...can I cook from an usb stick?(installing the kitchen, and workind directly trought the usb stick)???
I'm getting starved.....I can't even turn on the oven...
I have nstaledthekitchen over and ove again.
Changed the settings so it reads "Universal", copied the nk.nbf of my choice to the Extract/source folder, and whent to the Panel/extract and runned "DumpRom"...So far so good....
The DOS windows warns me that the file must be in the correct folder, so I double check....I press return...HTC Extender Rom Tool starts and prmpts me what I want to do and were is the extended rom...I thought it was embeeded in the nk file, but since Tomal provided with and empty extenden Rom, I downloade it and poited to it...Hit decode...
A big window opens with some file paths, so I check them to know were the files are going to...and using the above tip, change the name of the fat file to OS.nb, Hit decode...I'm happy, the window says "Decode sucessfull", so I hit "OK"...
I am agin at the Htc Extended Rom tool, so I hit exit(? done it right ?)...
The Dos window now tells me that it cannot find the ON.nb(? Didnt I just created it?)....
So I'm stuck....
The constructions workers haven't yet finished furnishing my kitchen, so I have no ingredients to work with....
Any chef willing to help me make a simple meal?????
psapg said:
I'm getting starved.....I can't even turn on the oven...
I have nstaledthekitchen over and ove again.
Changed the settings so it reads "Universal", copied the nk.nbf of my choice to the Extract/source folder, and whent to the Panel/extract and runned "DumpRom"...So far so good....
The DOS windows warns me that the file must be in the correct folder, so I double check....I press return...HTC Extender Rom Tool starts and prmpts me what I want to do and were is the extended rom...I thought it was embeeded in the nk file, but since Tomal provided with and empty extenden Rom, I downloade it and poited to it...Hit decode...
A big window opens with some file paths, so I check them to know were the files are going to...and using the above tip, change the name of the fat file to OS.nb, Hit decode...I'm happy, the window says "Decode sucessfull", so I hit "OK"...
I am agin at the Htc Extended Rom tool, so I hit exit(? done it right ?)...
The Dos window now tells me that it cannot find the ON.nb(? Didnt I just created it?)....
So I'm stuck....
The constructions workers haven't yet finished furnishing my kitchen, so I have no ingredients to work with....
Any chef willing to help me make a simple meal?????
Click to expand...
Click to collapse
With HTC Extender Rom Tool you must extract nk.nbf not ext_rom, and when extracting name it OS.nb (i thing it is 2nd line in tool)
Perhaps the would-be chef should read a cookery book?
There's a very, very good guide in this forum, which is what I started off with and had no problems whatsoever, but I can't for the life of me remember if it was beasty or thingonaspring who wrote it (apologies to the real author if I missed them out!). It also includes some fixes for the batch files.
Remember - the wiki and search are your best friends...
PJC
Hi Again...
The construction workers finaly had done some real work, so now my kitchen is properly furnished with all the CABinets i need...so now to try to cook me a simple meal, and try to learn from it....
Can't rebuild Ranju 7.7
Hi all.
I gave it a go and tried to rebuild Ranju 7.7.
I could decode it, dump it (yes, I extracted the contents of RGU.CAB to the dump directory), convert the dump to packages etc. So far, so good.
But when I tried to rebuild it, the ImgfsToNb tool gave this error message:
"Partition with file system 0x01 found after IMGFS partition. It's safer to abort here, sorry."
What should I do now?
jandevries12 said:
Hi all.
I gave it a go and tried to rebuild Ranju 7.7.
I could decode it, dump it (yes, I extracted the contents of RGU.CAB to the dump directory), convert the dump to packages etc. So far, so good.
But when I tried to rebuild it, the ImgfsToNb tool gave this error message:
"Partition with file system 0x01 found after IMGFS partition. It's safer to abort here, sorry."
What should I do now?
Click to expand...
Click to collapse
imgfstonb doesn't seem to support the FLASH disk that's in Tomal's ROMs. I don't know what he uses, but when I've based things on his work, I use a different 'donor' OS.nb for the imgfstonb stage. Obviously, I lose the FLASH disk, but as I don't use it anyway, that's not an issue for me.
^^ yup, exactly, it is due flash disk.
Ok, I understand.
But what is the "donor" os.nb used for?
I've extracted the OEM, SYS en XIP parts. Isn't that enough to compose a new ROM?
What parts are re-used from the original os.nb? And must an alternative donor os.nb be of the same version/build?
jandevries12 said:
Ok, I understand.
But what is the "donor" os.nb used for?
I've extracted the OEM, SYS en XIP parts. Isn't that enough to compose a new ROM?
What parts are re-used from the original os.nb? And must an alternative donor os.nb be of the same version/build?
Click to expand...
Click to collapse
As I understand it (and I'm sure someone can correct me if I'm wrong), the donor OS.nb is used as a 'template' for storing the IMGFS into an NB structure. As far as I've been able to tell, pretty much *any* OS.nb from *any* ROM can be used as the template.
Basically, imgfstonb takes 3 arguments - the imgfs file itself, a 'donor' OS.nb, and the 'target' OS.nb final output. This is all hidden by the scripting, but is what I've found by playing with the underlying utilities.
The only restriction I've found is that ROMs that contain Flash disk can't be used as the donor OS.nb.
PJC
Could one of the senior members of this forum please comment on pjc007's statements above?
Is it correct that the donor os.nb is only used to determine the right structure for the ROM?
(I'm asking because I got the impression from other posts on this excellent site that the donor os.nb is used as source for the XIP part, but I don't know for sure)
Well, I have the same matter now, I really want to cook sth to use the way I want a rom to be and share with others as I feel really bad just to download, I hope to upload my own rom and share but I read the instructions again and again , look for sth on the internet, download all the things to my PC that will be used to cook, still not certain what I'm going to do.
My question is if I cook a bad rom, then I up it to my EXEC, Is there any chances for it to die ? Or simply just install another well-known rom to rescue it if my rom jail to boot?

Categories

Resources