yashsingh1/xdaforums huggingface dataset:
[P3400 ROM Development] ramersonw:
Hi Krazy

I saw the xips. Problem appear to be missing files on xip. Both lomlom and the stock rom that ankit360 and you upload missing some files (*.rgu especificaly). I guess these ROM are protected.

To make this kitchen, I used an official rom from HTC (wm6.0 for old gene) as basis. So for the new genes I need an original xip (wm6.0) to port to new build and send to you for test.

If you or anyone have this ROM please upload to me.

Sorry 4 my english.
[P3400 ROM Development] krazy_about_technology:
Here is the XIP you needed!

Hey Ramersonw,

Thats great! I am attaching herewith the XIP and BootXIP from Windows Mobile 6 ROM that comes with P3400i in Asia, India, ie. My Phone :) I think that will suffice for your needs.

hoping to see ya soon :)
[P3400 ROM Development] deepv84:
to Ramersonw

can i use to build rom for me

i m using wm5

onbl 1.07.000

spl 1.07.000

radio 02.79.90

os 1.07.000

my serial no ht7xxxxxx

u have tested with ur device running on wm5 but ur onbl is 1.11.000

so what????

i can't take more risk because my device is out of warranty.plz tell me any thing!!!

thanks!!!!
[P3400 ROM Development] ramersonw:
Hi people,

Sorry for the lack of updates because I'm travelling. When I arrive I'll test more the kitchen and try to correct the errors (for new genes).

Again, this kitchen only works for the old Gene (for now). OBS. Tested on my device (HT7xx).
[P3400 ROM Development] ramersonw:
I tested on my device and the generated rom works very well.

The rom generated for my kitchen only have os.nb and extrom.nb, if any error occur and your device don't boot you only need to flash another cooked rom or the official rom without ipl/spl/radio.
[P3400 ROM Development] krazy_about_technology:
Here is the link to the modified Ramersonw's Kitchen with my created XIP and some other packages. I request Ramersonw's to please include these links or a reference to this post in the first post :

Full Kitchen:

http://cid-988261b694475a67.skydriv...WinMobile/Kitchen/Gene Kitchen|_New|_Gene.exe

Only My Modifications:

http://cid-988261b694475a67.skydriv...gesOnly|_for|_NewGene|_Kitchen|_Ramersonw.zip

Please note that using the full kitchen or applying the given modifications will customize your kitchen for new Gene. Please use a seprate copy of the original kitchen to cook for old gene.
[P3400 ROM Development] dheerajk27:
Was just trying out this kitchen. I am a total newb in this. Somehow, I am getting the attached error, whatever settings I try. If possible, any help please?
[P3400 ROM Development] ankit360:
Prerequisites

* Microsoft Visual C++ 2008 Redistributable Package

* .NET Framework 2.0

????
[P3400 ROM Development] dheerajk27:
Thank you Ankit. That worked. Was not having VC++ 2008 Redistributable on my PC.
[P3400 ROM Development] swapnil_0081:
i get the error about XIP part missing !!!!!

What to DO plz Help ?????
[P3400 ROM Development] ramersonw:
When an error occur the best thing to do is start again. You may have forgotten something.

For which gene are you cooking?
[P3400 ROM Development] swapnil_0081:
can any one tell me that where i get the latest ce os version ????????

can any one plzz upload for me or give me a link
[P3400 ROM Development] krazy_about_technology:
Buddy, CE OS core is not freely available. When somebody cooks a ROM, he takes a latest manufactured version of some device, dumps its ROM and then uses the files in to prepare his CE OS+ Ports the XIP for the core kernel part. After that tweaks are applied, OEM packages are added, and then ROM is packaged into a nbh file. So in order to get the latest CE OS version, you also need to do that. Or use a ROM as base in you kitchen which has the required version.

I hope i made it clear for you.
[P3400 ROM Development] Savchuck:
I Want to integrate BroadcommStack_1_7_6 for gene

http://download.allhd.com.ua/soft/ppc/gene/BroadcommStack_1.7.6.rar

Downloaded packages creator 5.4

http://www.allhd.com.ua/uploads/posts/2009-01/1232207969_bos.jpg

not work

add

Question completed

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

This program works fine! Bluetooth integrated successfully
[P3400 ROM Development] Pank789:
hi ramersonw

hi can u please let me know if i change xip.bin what all i need to change in the kitchen folder ..

i tried creating the default rom whatever u have provided but i m getting error "Error while building os.nb aborting"

and the one i created using lomlom's nbh file the rom dumped sucessfuly on my device but stuck at boot screen only ...

can you please guide me in this ..also any information about the xip modification would be help ful

if i m not wrong this kitchen is created in vc++ or c# dialog based applicaton...

can you please share the source code

(as per ur convenience and condition abt you source code privacy) with me so that i can understand where m going wrong ...

thanks in advance for ur help ....
[P3400 ROM Development] ramersonw:
Hi people,

Sorry for the long time without updates in the kitchen.

The kitchen was written in Delphi, but the tools used was written in C and .net.

I'll release a step-by-step guide on how to make a kitchen. so anyone can build your own kitchen for gene.
[P3400 ROM Development] sm7s:
Thank you for your work.but some problem for me:

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

Error

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

File "htcrt.info" is CORRUPTED. This is the license policy violation! Halting.

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

OK

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

So i serach and find a answer for this problem :

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

go to windows control panel--> Regional and Language Options--> select advance tab--> then choose English(United States).....

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

htcrt.exe can not work under Asian-Eastern OS. I am using windows xp CHS .Can you change other NBH tools .

EX:http://htc-flasher.googlecode.com/files/yang-1.1_win32.zip

sorry for my poor english
[P3400 ROM Development] ramersonw:
I'll see this tool. I'm working on a new version of the kitchen and I'll try to solve your problem.

btw I'm accepting sugestions for the new version of the kitchen.
[P3400 ROM Development] krazy_about_technology:
Hey Ramerson! Thats great to hear buddy, I owe you very much, i was only able to cook ROMs due to your kitchen buddy. Hats off to you, its the simplest kitchen for Gene.

While working with this kitchen, i have gathered some problems that i faced. Here are those, see if they are any useful to you as feedback:

1. Even after cooking 3 ROMs with it, i am not 100% sure what is the right way to make the BASE folder for working with kitchen. SO far i was just porting XIP, building a .bin version of ported XIP and put it into BASE (xip_new_gene.bin or xip_old_gene.bin) and a dumped version in ROM folder (using the ROMHDR.bin of old rom and buildxip.exe), make an os-hdr.nb with a empty imgfs.bin, an empty bootxip.bin and the ported xip using nbwork.exe, and rest of the files (xip0.bin, geneimgfsxpr.bin, and extrom.nb) from the original kitchen that you put for download. It worked for ROMs that were already ported for old gene or new gene and i just had to make a version for the remaining other. But i tried to port a ROM from Pharos, i failed. I did all the steps like before, and even manually G'relocd the SYS. But no avail. The XIP was ported absolutely correct, i checked the addresses 4 times with M'reloc. I only copied what was in MSXIPKernel package and rest i used from the Original New Gene P3400i WM 6 Asia rom. I also used the same OEMDrivers and OEMApps folder But it somehow didn't worked. so i am not sure what i am doing wrong. It would be good if there is a guide on this and a little bit of GUI if possible.

2. The kitchen doesnt have the facility to change PagePool size ( i use the PagePoolChanger for multiple devices for that) and no option for inserting a customized splash screen (replacing the default white HTC screen that shows the system info on it on booting).

3. I am also a bit confused about resizing imgfs and available RAM as given in Ameet Baberaker's Manual XIP Porting Tutorial. This is needed to put manila 2D with new builds of CEOS (like 21109) which are very fast on low end devices but have a huge ROM footprint.

Thanks :)
[P3400 ROM Development] ramersonw:
Hi Sumit, how are you?

Now i have more time to work in the kitchen.

Answers to yours questions:

1. I'm preparing a tutorial on how I do my base rom to use with kitchen. When it is ready i'll post here.

2. for now i'll not add this functionality because i'll focus on the build process of the kitchen, when all the bugs were corrected i'll do that.

3. I'm also. For now i'm using this rom as a base os-hdr.nb(i'm not using files, only structure. This rom have a good space - 51.40MB of RAM, about 28MB free on my build). I ported xip and sys (both from 20931 build) to this rom. To port xip i used xipporteex from Ervius, it makes the work a lot more easy.

Thanks for your feedback. I'll try to improve the kitchen as soon as possible.

Sorry for my bad english.
[P3400 ROM Development] krazy_about_technology:
I m fine buddy, How are you? How were your holidays, i hope u've enjoyed a lot. :) Anyways, thanks for the detailed response.

I was able to understand the process of dumping a ROM to kitchen, the only thing i wasnt able to understand was how to create the Folder BASE which contains os-hdr.nb, xip_new_gene etc. I also want to know what role does the os-hdr.nb, xip0.bin and geneimgfsxpr.bin play in the ROM building process. I have successfully done away with these but only playing by luck. So it would be great if you include these details in your tutorial.

No problem about the page pool and custom splash thing, i was just telling you. it would be great to focus on building functionality right now as these things are secondry to that. First thing is cooking.

How come you are using PDAViet ROM man, its secured if i am not wrong? I too tried to use XIPPortEx but it has some bugs. It deletes some of the files that cause windows live to stop working. Plus, in case of that pharos rom, it deleted boot.hv from the XIP :o
[P3400 ROM Development] ramersonw:
Hi buddy, my holidays were good. I was needing relax a little.

My kitchen is only a frontend to others tools. I was tired of typing DOS commands every time i want to build a rom, so i started the kitchen to make this work more easy and fast.

Some tools don't have much explications on how it works. One of them is nbwork. I get it from orefcov kitchen (thanks orefcov for this tool). This tool uses these files xip0.bin, xip.bin, os-hdr.nb and the imgfs-new.bin(generated by kitchen) to create os-new.nb

Below i'll try to explain some of these files based in my experiments:

os-hdr.nb - is only a template. the nbwork.exe uses it to know where is to put xip.bin and imgfs.bin in the os-new.nb. This file is only used to know the structure of a ROM (size of partitions i guess).

gene-imgfs-xpr-hdr.bin - This file is also used as a template. This file contains the imgfs signatures. I guess it used to know the positions of the files in the ROM. Also it informs the compression method used. It is used by make_imgfs.exe to generate imgfs-new.bin.

xip0.bin - I don't know very well the importance of this file. It used by nbwork. I guess nbwork used this as a template.

About PDAVIET ROM i'm not using its contents. I use its structure to make an os-hdr.nb. This ROM is protected. you cannot extract sys or oem (I think ervius has made a tool to remove this kind of protection).

About Xipporterex there is an option to not delete files while porting.
[P3400 ROM Development] krazy_about_technology:
Thanks buddy, this post of yours was quiet an enlightening one. :)

About OS-HDR.nb, So my guess was right. I also used it like that, I use to build XIP.bin and then use an empty bootXIP.bin and ImgFS.bin with nbwork.exe to build the new template. But can you more explain the use of bootXIP.bin, why is it even there? Many ROMs do not have it but still works fine. Also, once it happened that i used xip.bin for boot partition and bootxip.bin for the XIPRAM partition but still everything was fine. :o

Also when i create os-hdr.nb with nbwork, it shows that it is creating 4 partitions first is Boot, using BootXIP.bin, XIPRAM using XIP.bin and IMGFS using imgfs.bin and the last partiton as empty. What is the use of that partiton, is it for EXTROM?

gene-imgfs-xpr-hdr.bin is also making me curious, if this file controls the imgfs structure wouldn't it needed to be generated again if i am using a ROM from another phone having different imgfs structure. For example, the Pharos has 128 MB ROM size. The ROM image i used was 99 MB in size. I deleted stuff and and useless files to make it around 74 MB. I ported the XIP right, created the os-hdr.nb right and used the original OEMDrivers then what was the problem? The phone cannot even start the radio. Previously when my XIP was not ported properly, the phone used to start the radio but not the OS. But in this case even the radio cannot be started. And if the phone was left for sometime without touching, backlight goes off automatically and on next reboot, it showed the error message that the phone was restarted due to sudden loss of power. What does that mean?

I used the os-hdr.nb from your original kitchen and extracted its contents with nbwork. Then i used the same bootxip.bin and imgfs.bin but he new xip.bin with it to create a new os-hdr.nb. It worked nicely for my next ROM, but this trick is not working for this pharos rom. Any suggestions?

I'll try XIPPorterEx again and revert back to you :)

Your kitchen seems to me a .NET based app. Would you like to share the source code? Its OK if you dont :)

And sorry if i am bugging you too much but i am very much curious about knowing this whole process.
[P3400 ROM Development] ramersonw:
About bootxip.bin, I never cared. I think it is not important for gene. But I'll do a reseach about this.

The last partition should be FAT. It's not used by Gene but some ppc have this partition like Diamond.

As this rom (PHAROS) is from another device, you have to port it first (SYS). Open G'reloc on your SYS (Gene) and write the values from Slot 0, Slot 1 and Size of Rom. Now go to PHAROS SYS and run G'reloc in it. Put the same values that you wrote and click Doit. After the process finishes you can use this SYS (PHAROS) on your build.

My kitchen was written in Delphi. The code is a mess. I'll post a step-by step guide on how to build a rom using the same tools that the kitchen uses. It's easier to understand the process this way.

and do not worry. we are here to help each other:)
[P3400 ROM Development] ankit360:
hey Ramersonw is it possible to port new htc camera on geme ?
[P3400 ROM Development] krazy_about_technology:
So what do you use to build your first partition in os-hdr.bin?

.

So should i use the imgfs.bin again to build the last one? i mean should i use the command as

nbwork.exe template.nb os-hdr.nb bootXIP.bin XIP.bin imgfs.bin imgfs.bin

is it correct?

I did G'relock, it didnt work. And i think your kitchen does this too, isnt it? The problem is somewhere else that i cannot understand with my current knowledge. XIP is fully ported, sys is G'relocked, OEMDrivers are original. Now the problem must be either with os-hdr.nb or geneimgfsxpr.bin. I am in dark.

Ya that would be great, may be then i can try building a kitchen in .NET with C# or C++. That would be great as i dont know Delphi yet nor do i have its compilers and dev environments etc.

Thanks buddy, thats so nice of you :) You Rock!
[P3400 ROM Development] ramersonw:
Hi Ankit,

I don't know. When i ported my first rom (opal) i tried to cook with opal camera but it not worked. Seems it uses a diferent dll. Even adding the dll did not work. So i came back to gene camera.

There is a thread with information about a new camera utility but it only works on certain devices. i did not tested this on gene. Here is link. you can do a test to see if it work.
[P3400 ROM Development] ramersonw:
I use nbwork this way:

nbwork -b os-hdr.nb os-new.nb xip0.bin xip.bin +1 imgfs-new.bin

Where:

os-hdr.nb -> your template

os-new.nb -> The generated OS that you build. htcrt will use this file to generate your new rom

xip0.bin -> it's a blank file, but needed for nbwork

xip.bin -> your xip that you created or ported

imgfs-new.bin -> this file is generated by kitchen. It's contains files from SYS and OEM.

To build os-new.nb i only need these files: os-hdr.nb, xip0.bin, xip.bin and imgfs-new.bin

About port PHAROS: my kitchen run g'reloc but only to realocate modules that you has changed. If you add a new package for example, it needs to be realocated.

What Rom of pharos you want to port? I could see this rom and try to discover the problem.
[P3400 ROM Development] krazy_about_technology:
I'll test this method buddy. I forgot to write -b in my previous post :) But i have some doubts:

what is the meaning of that +1 before imgfs-new.bin?

Where can i get the imgfs-new.bin? I dont find it being generated by the kitchen, where can i find it, in the temp folder?

This is the pharos rom i am trying to port:

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

I am doing the latest version of it, v13 with CE OS 5.2.21109
[P3400 ROM Development] ramersonw:
I guess that +1 tells nbwork to let one partition empty (FAT patition. Gene don't use it). I'll try to find more information.

the imgfs-new.bin is generated by kitchen. It stays in temp folder but when the process is done it's deleted.

About that pharos rom, the author removed all rgu files. It´s a method of protection. Without these files buildos cannot create the windows registry.

You have to find another rom to port.:(
[P3400 ROM Development] krazy_about_technology:
This is insane man, what problem does he have if i use the sys part from his ROm :mad: anyways, thanks for your help man. really appreciate it. If you need me for any kind of testing or something else, contact me any time buddy :)

Now one last question remains, where can i get the gene_imgfs_xpr.bin if i loose this one?
[P3400 ROM Development] ramersonw:
Is increasing the number of Roms who are protected in this forum. I think everything should be shared in this community, but unfortunately some chefs do not think so.

:(

When you dump your os.nb from gene to make your base rom you'll get imgfs.bin, this will be your gene_imgfs_xpr.bin

To get imgfs.bin you need imgfsfromnb.exe

usage: imgfsfromnb os.nb imgfs.bin
[P3400 ROM Development] haree:
used ur kitchen pls advise

hi

yesterday i used ur kitchen and created a ROM just cliked on creat rom and it just did the same used it on my phone it worked fine

can u adivse

on how to creat a ROM to my liking like how add anything from the kitchen do i go to the same and tike wat i want kindly do advise

and for ur info the ROM for old gene worked fine for me no problem

im not a techi and a new guy so im asking ur guidnece

thanks

hari

using: sumits vanilamanila now
[P3400 ROM Development] haree:
need ur guidance

hi

can u tel me on how to creat the ROM do i need to chek the box of the things i need to use in the kitchen

pls advise as i said im not a techi but want to try something on my own

and great tool man u made such a tough thing so easy even a guy like me with mo tech knoledge was able to use it man this is real great of u man
[P3400 ROM Development] swapnil_0081:
HI ramersonw

u thegreat talented man

plz help me to cokk rom

i just want to know that how to make all files in folder named as BASE

& how to port xip from a rom & is there any need to make changes in that xip to cook that rom

plz suggest some tools for all this

i allready downloaded ur kitchen

when ur relesing update for ur kitchen ??????

Thanks
[P3400 ROM Development] ramersonw:
I'm preparing a tutorial on how to port a rom from others devices to gene. It'll cover all the steps needed as: make your base rom, port xip and sys and others things.

In a couple days I'll post.
[P3400 ROM Development] htc3400:
We are waiting and we can see a lot of chefs in the next couple of days :D
[P3400 ROM Development] Addicted2xda:
Please make the tutorial descriptive enough for pple like me who have never cooked a ROM before :).

Thanks in Advance
[P3400 ROM Development] haree:
thanks

hi

thanks for ur reply ill wait for ur new post
[P3400 ROM Development] krazy_about_technology:
Hey Ramerson, how are you buddy! I hope you are doing great! I wanted to ask something. In our kitchen, we use an extrom of 4 MB in size, is it the smallest it can get? Can be decrease the size furthur for say 500KB or 100 KB and add the remaining space to imgfs? I am actually working on the WM 6.5 release and having shortage of space on it :o
[P3400 ROM Development] ramersonw:
Hi Sumit,

The minimum size is 4MB for new gene and 2MB for old gene. Sizes lower than these can make the device not boot. This information was taken from the kitchen of orefcov. I tested on my device (old gene) and with 1MB extrom it don't boot.
[P3400 ROM Development] htc3400:
hi buddy..how are you ...eagerly waiting for your tutorial dear...
[P3400 ROM Development] ramersonw:
Hi htc3400,

I'm with little free time these days but at the weekend I will be posting the first part of the tutorial: How to make your BASE ROM.
[P3400 ROM Development] zinzar:
Need Help

Hi

I am very new with this cocking work

Please some one tell and explain how to do for non experience users

how to modify for existing rom?

how to add program to rom , possible or not ?

how to remove?

there is any way to test the rom before flash it ?

I want to modify this rom (gene_wm6.1_19971WWE) it is very nice and very fast , but i want to remove some programs i not use and put others

Waiting help and advice!!!
[P3400 ROM Development] krazy_about_technology:
@zinzar: Well buddy, not to put you down or anything, but ROM cooking is an advance issue and newbies are adviced to stay away from it as it can mess up your device t such an extent that taking it to service center might become the only way to get it back working. ROM cooking involved very deep level knowledge of the Windows Mobile OS as well as the concept of Windows registry, dlls and executables and many other advance PC based topics. So i would recommend you to first read a lot on these forums as well as on msdn.microsoft.com to get your self familiarize with the OS if you really want to do it. Otherwise stay away from it for your own good.

Its just a friendly advice, please dont take it otherwise, ok? :)
[P3400 ROM Development] Addicted2xda:
I will double that, and if you think you are capable of handling such an issue, please go throught the ramersonw's tutorial, if you can make out what is said their, in two or three goes, then you are up to it.
[P3400 ROM Development] yuvraj1572:
p3400 in tri colour mode

Hi Ramersonw,

plz help me sir in htc p3400 in bootloader mode
[Introductions] lasca:
Thanks for add.
[Lenovo ThinkPhone (by Motorola)] fire3element:
(reserved)
[Lenovo ThinkPhone (by Motorola)] dreamliner77:
Thanks! This is what has kept me for checking out this phone.
[Lenovo ThinkPhone (by Motorola)] Quantumstate:
Once again, clear, accurate, and much welcomed!
[Lenovo ThinkPhone (by Motorola)] Deleted member 6045776:
Thanks i m root now... :giggle: