yashsingh1/xdaforums huggingface dataset:
[Windows Mobile] xtep:
Tools for importing SYS into VK and auto-recmod

Finally I have found a use for the extra buttons in Ervius Visual Kitchen: I have created a set of batch files to automatically import standard/flat SYS folder into a existing VK and I have added to one off the extra buttons of VK.

I also have used other of the extra buttons for the batch files to auto-recmod that I published before.

Instalation:

- Unzip the attached file into the root of your VK folder. WARNING!! tools\extrabuttons.ini will be overwriten, so if you have used the extrabuttons for something else, save that file before.

Usage (to import a new SYS):

- Unzip/copy the contents of the SYS to import to a folder called 'Import' in the root folder of your kitchen (ie. c:\kitchen\Import).

- Run Erviuskitchen.exe and press 'Extra Buttons'

- Press the button called 'Import new SYS'

- A Command window will start.

- Insert the build number of the SYS. (the files will be moved to SYS\buildnumber)

- Press enter and wait until the work finish.

Usage (to auto-recmod a existing build):

- Run Erviuskitchen.exe and press 'Extra Buttons'

- Press the button called 'Automatic Recmod'

- A Command window will start.

- Insert the build number of the SYS. (the modules into SYS\buildnumber\SHARED\COMMON will be recmoded)

- Press enter and wait until the work finish.

Customization (import a new SYS):

- By default, all languanges and DPIs will be moved to the corresponding folder inside the kitchen.

- If you want to import only a part of the languages or DPI you can edit the file Tools\extrabuttons\batch\sys2evk.cmd. The first lines are:

set LANG=0404 0405 0406 0407 0408 0409 040B 040C 0410 0411 0412 0413 0414 0415 0416 0419 041D 0804 0816 0c0a
set DPI=96 128 192

set RES96=RESH_240_RESV_240 RESH_240_RESV_320 RESH_240_RESV_400
set RES128=RESH_320_RESV_320 RESH_320_RESV_480
set RES192=RESH_480_RESV_480 RESH_480_RESV_640 RESH_480_RESV_800 RESH_480_RESV_854

- Change this definitions keeping only those that you want to import. For example, for only importing WWE (0409) and Spanish (0C0A) for VGA (192dpi) resolution with 640x480, change them to:

set LANG=0409 0c0a
set DPI=192

set RES96=
set RES128=
set RES192=RESH_480_RESV_640

- The remaining languages and resolutions will be deleted.

Customization (automatic recmod):

- The list of modules/packages to recmod is taken from Tools\extrabuttons\batch\files2recmod.txt. Edit this file to include the list of modules or packages that you want to recmod.
[Windows Mobile] Mach2003:
REM ROMUpdateUtility
[Windows Mobile] avengerpenguin:
Having a strange problem recently with vk1.81, i have added some packages that I took from another EXT from a different device kitchen, same dpi etc, whether these are enabled or not the build process goes through fine but when flashing it corrupts my bootloader? If I take these packages out of the kitchen it boots fine?

Has anyone encountered anything like this, I have even tried just using on package for a reg change and still the same.
[Windows Mobile] Emrulez:
It is still crashing!

Modifing Lang on bat file...
deleting old bat...
Writing new bat...
Done...
Wait some seconds...
Executing Processes..... wait.....

Executing: platformrebuilder.exe.....

platformrebuilder.exe Executed successfull!!!

done!!!

No error
[Windows Mobile] AlekSS-881980:
Hello! Why i cant make a 0419 ROM with this kitchen? I made a few wm 6.5 eng ROMs but when I try to make 0419 i have a problem with platformrebuilder.exe.
[Windows Mobile] mnet:
how can one make the ROM uncompressed?
[Windows Mobile] l3v5y:
You need to use a modified set of IMGFS tools, and to use the "Old" ROM building method...
[Windows Mobile] mnet:
Where can I find the modified IMGFS?

Thanks
[Windows Mobile] secc123:
Re: Ervius error

Hi all, I'm having a little problem with ervius kitchen. I have a different phone so i have dumped all files from rom and put them into ervius. Everything runs fine until near the end when i get the following:

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

SRPX file compressor/uncompressor. (c) XCCX 2008-02-16

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

[ ERROR ] Destination file true already exists. Please delete it to continue.

The system cannot find the file specified.

The system cannot find the file specified.

Out fat file exist, erasing it

After this it continues and builds the temp.dat but after flashing it sticks on the first boot screen. I know i have seen this before and i think it was a wrong file in kva folder but for the life of me i can't remember.

Any help appreciated, Thanks

Secc
[Windows Mobile] chris5s:
Hi folks

Some help would be very much appreciated. I'm trying to build a rom for my topaz using ervius 1.8.2, and having tried a couple of different kitchens, I always get this message towards the end of the building process :

"Checked 0xc240 sectors successfully!

Done.

executing NBHUtils to build nbh file...

File Not Found

Volume Serial Number is AC5E-80FC

Directory of C:\2.31 911s Kitchen\RELEASE_TOPAZ

Done!!!

kitchen_build_rom.bat Executed successfull!!!

done!!!

Wait some seconds...

No ''SVN'' folders present...

Restored Original config.txt...

Temp config.txt Deleted!!! "

The end result is there is no rom! I have tried exiting ervius before it deletes the temp files and running NBHUtils.exe on its own to try and build an nbh from the temp nb but I still can't build the nbh. A temp nbh file appears in the destination folder and NBHUtils.exe opens a window saying "Done!" but then the temp nbh file disappears and I'm left without my rom!

This is quite frustrating and any help as I say would be appreciated.

Does anyone think it is related to my system? Firewall? AV? .net or C++??

Thanks in advance
[Windows Mobile] mahjsa:
Hi chriss, it seems that you are using a directory name that contains spaces. If I recall correctly, this kitchen doesn't like spaces in the directory names.
[Windows Mobile] chris5s:
Ok, I'll try taking out spaces from directory name. Thanks for your suggestion mahjsa.
[Windows Mobile] chris5s:
Nope, didn't make any difference. Do I have to run it as admin? Shouldn't make a difference, but maybe :confused:
[Windows Mobile] hilaireg:
Quick Checklist

@chris5s:

Verify the following:

Running with elevated priviledges on your workstation

Microsoft .NET framework is installed (ex: 2.x, 3.x, etc.)

Keep the kitchen path short and free of non-alphabetic/numeric chars (ex: c:\xda\VKTopaz12345)

Verify the OTHER button in the kitchen to ensure that Unlock is checked

HTH,
[Windows Mobile] chris5s:
Thanks for the reply - I 'ticked' all the above boxes, still no joy.
[Windows Mobile] Scott:
Works on Win7 but not XP?

Hello All!

Wondering if anyone has any input. I have a kitchen for CDMA RHodium. Works perfect on Win7 Final. When the same kitchen is ran on an XP machine it fails to create ROM. Gives error level 1.

Previous kitchen was working fine on XP. Tried mutliple XP machines including XPMode. Kitchen fails. Try on Win7 and its perfect.

Any thoughts?

Thanks!

EDIT: Tried some of the things noted in this thread such as moving to root of hard drive and making sure no spaces. Attrib -h -s -r -a *.* /s and I even checked Unlock before build and the results are the same.
[Windows Mobile] Andrewwelton:
Hi everyone, I'm hoping that I could maybe get some help with two problems I'm having with ervius vk currently.

I have a Vogue.

Everytime I build a ROM with windows mobile 6.5.1 or just any ROM in general, the date and time page would not load and I cannot get service.

Recently, I have been able to get the date and time setup page to load, but titanium/home screen will never load, the screen stays white while the top bar and bottom bar loads, and the start menu works. And again, no service.

Any additional information that is needed I can provide.
[Windows Mobile] mahjsa:
I am building ROMs for my A701 and from build 23052 I started having problems with amongst others the Wifi card. In build 23071 I didn't see the SD card anymore. (The Mio A701 doesn't have a native 6.5 kernel yet)

In the end I watched the build log closely and discovered a whole lot of modules in SLOT0 (having read somewhere that it should be as clean as possible). So I recmodded some packages (adobeflash and browsingie if I recall correctly) and presto, I had my sdcard again and also my wifi connection.

Maybe your problems are related.
[Windows Mobile] Andrewwelton:
Thanks for The reply, but I don't think that's it.... I have gotten the modules in slot 0 down to 0 or around 1-4
[Windows Mobile] OndraSter:
That's maybe the problem. Don't recmod that much, keep about 24 - 28MB free SLOT0 (with 0 modules you have 32MB), otherwise it might behave very bad (just like you see).
[Windows Mobile] nate.spangler:
your problem is in your kitchen_build_rom.bat

right click on it and click edit, go down to this line

REM **************** TOOLS\platformrebuilder.exe

if not "%errorlevel%"=="0" goto error

and change it to this

REM **************** TOOLS\platformrebuilder.exe

REM **************** if not "%errorlevel%"=="0" goto error

save it and your good to go!
[Windows Mobile] nate.spangler:
i have my own question though...

if i dump a rom to extract new packages, do i have to do anything to them before i add them to the kitchen or are they good to go?
[Windows Mobile] Scott:
Thanks man, I was just about to come back and say that after removing all the error level commands it seems to work well! ahahah..

Thanks alot for confirming that!

BTW: I removed them all, do you think that will harm anything? Seems to run fine as it.
[Windows Mobile] nate.spangler:
im not sure as ive only fixed it never deleted it. but im assuming its building so id say ur ok.

do u know anything about my dumped packages question a few posts up???
[Windows Mobile] coolsac32:
help: i keep getting this message when i cook.

ERROR! (errorlevel: -1073741819)

ERROR executing: kitchen_build_rom.bat

ERROR!!!

Wait some seconds...
[Windows Mobile] mnet:
they are good to go as long as you have proper app.reg and 'files' folder. of course they won't function properly if you didn't include the dependencies or if they are incompatible, etc
[Windows Mobile] CWKJ:
Thank you very much.

This is a very good and nice tools.

You came a long way and fast since your days of D810. :D
[Windows Mobile] mccune:
My kitchen seems to crash at the end.

Using Windows 7.

Already set the following files to be executed as Administrator and compatible with XP SP3:

- erviuskitchen.exe

- ImageHash.exe

The error from the log file I get is:

executing NBHUtils to build nbh file...
Onverwerkte uitzondering: System.UnauthorizedAccessException: Toegang tot het pad C:\XDA\My_Visual_Kitchen\RELEASE_Rhodium\ImageHash.exe is geweigerd.
bij System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
ERROR! (errorlevel: -532459699)
bij System.IO.File.Delete(String path)
bij NBHUtil.Form1.CmdLineWriteNBH(String ModelID, String cid, String Version, String Lang, String chunk, ArrayList items, String outputfile, Boolean usedef)
bij NBHUtil.Program.Main(String[] args)

ERROR executing: kitchen_build_rom.bat

Any ideas about this problem? Got stuck with this kitchen for a couple of days now :(
[Windows Mobile] yptan62:
Ervius Visual Kitchen tools still the best of the best.
[Windows Mobile] bobsbbq:
I'm a big fan of the search bar but sometimes you just cant find what you need.

Is there a way in the newest kitchen to disable the dsm and rgu's from being included in the build. In the older kitchen they were by default not included. Now with a stock ROM dump they are all included. I want to test the speed without them. Is there a setting I can change or do I have to manually delete all of them?
[Windows Mobile] Mach2003:
Dsm's are excluded in the standard build, only used for 'old style' build.

Rgu's are included, but then also contain all the reg entries needed to run the phone, so deleting them all is a real bad idea. Removing some of them, OK.
[Windows Mobile] bobsbbq:
I don't know if I agree with that, but I may be wrong. I don't use the old build and I dumped my ROM and it recreated almost 100% of the ROM All EXT Packages OEM SYS. Only the ROM was not complete. The older EVK would automactically delete the dsm and rgu after build. This 1.8.2 does not seem to do this.
[Windows Mobile] RoryB:
Even back when I used Hypecore, I would delete all of the rgu and dsm files after the BuildOS.exe ran and before I started the buildROM portion.
[Windows Mobile] Mach2003:
If you want to delete files from EXT or sys, you can do that before you 'create rom'. Make a new bat file with your clean up lines, and run it after you add a new sys, or EXt packages.

If you want to delete files from the rom, but keep them in sys/ext/oem, then place your delete lines here, and work with temp\dump instead.

..\TOOLS\IMGFS\ImgfsFromNb.exe OS.nb.payload imgfs.bin
if not "%errorlevel%"=="0" goto error

rem delete for a cleaner rom
del dump\erviuspackages.zip /f /q
del dump\add2config.txt /f /q
del dump\build /f /q
del dump\config.old /f /q

..\TOOLS\IMGFS\ImgfsFromDump.exe imgfs.bin imgfs-new.bin
if not "%errorlevel%"=="0" goto error

I have no DSM or RGU in my temp\dump, many in sys, my ext uses app.reg. Doesn't PRB compile all the rgu and reg files into new HV files for your rom?
[Windows Mobile] bobsbbq:
Thanks for the help this is what I was looking for.
[Windows Mobile] std396:
question?

how do i edit the image size for the manila 2.1 to fit my build? im using "Gen_Y R 1.5" Manila files, but it doesnt fit the whole screen. how can i fix this?

thanks in advance
[Windows Mobile] barbapappa_86:
Check this out:

http://xdaforums.com/showpost.php?p=4492692&postcount=3494

just a search on ggogle my friend :)
[Windows Mobile] p1um1oco:
I am having the same issue with the AT&T Rhodium, anyone have an answer to this problem, it will work if I disable most of the EXT packages. I have also tried setting the max packages to a higher number with no luck.

-Dave
[Windows Mobile] twopumpchump:
i had the same problem with att rom, solved it by recmodding a module in ext...sorry but i cant remember which one though :o i do remember its in the first half of the files, like in the c's or d's(ie. concurrence mgr, dshow, ect.)
[Windows Mobile] wmserver:
My guess is there may be to much or some modules too big.

Sometime VK doesn't like it when you're replacing a module with a file dll (in case of duplicate file/module.

Try convert some modules back to files dll/exe and see if it works.
[Windows Mobile] p1um1oco:
Thanks,

It was one of these two - ConcurrenceMgr or ContactUtilityEngine. I converted both back to dll and then I was able to build a complete ROM image from the original ATT image.

-Dave
[Windows Mobile] serfer222:
I have one small problem - there is Thumbs.db file in my temp folder, it is created on every build and it is included in my ROM.

I checked other folders - there is no such file there.

I deleted temp folder, I disabled thumbnail generation in explorer settings.

But after I build my ROM Thumbs.db is created and included.

Size of this file is 221 kb (226387 bytes).

I have this issue on Windows XP sp3, and Windows 7 x64.

Does anybody have the same problem?

I use this kitchen ver.1.8.2
[Windows Mobile] Lmiller1708:
Sounds like you have a Thumbs.db left some wheres...

UnZip the attached file. Then take your kitchen folder and drop it on top of the the Del Thumbs.cmd file. It will delete any Thumbs.db in your entire kitchen.
[Windows Mobile] serfer222:
thank you,

but I use windows for many years, I started from Win3.1.

I know how to search for "Thumbs.db" files =)

There are no Thumbs.db files before I start building my ROM.

After ROM is ready - there is temp\dump\Thumbs.db and it is included in my ROM.

This happens on two different PC.
[Windows Mobile] d-two:
I have the same problem!!!

I think the problem is in the Kitchen!!!
[Windows Mobile] d-two:
I tried to kill the file while I was creating the rom, but the access was denied.

In the moment I killed the file it was automatically recreated!
[Windows Mobile] MacRoy:
Error message

Hi ervius! And all other on this forum.

I have a problem with my Kitchen 1.8.2 i got this ERROR message ......

platformrebuilder.exe Executed successfull!!!

done!!!

Wait some seconds...

Executing: kitchen_build_rom.bat.....

ERROR! (errorlevel: 1)

ERROR executing: kitchen_build_rom.bat

ERROR!!!

Wait some seconds...

Renaming all ''SVN'' folder... Wait...

Restored Original config.txt...

Temp config.txt Deleted!!!

And nothing happens.

Could you please tell me wats wrong and what i could do to fix this

Thanks.

Regards MacRoy
[Windows Mobile] serfer222:
can you please upload full Build_log.txt.

do you have enough free space? I need about 1 gb free on my hdd when I'm building rom for Iolite.
[Windows Mobile] Mach2003:
EDIT: I was watching the dump folder, Thumbs.db gets created just before PRB is run.

I have no thumbs.db file anywhere in my kitchen (and my XP is configured NOT to create them either), but it always shows up in the dump folder (221kb).

This work around keeps the thumbs file from getting into the rom. Edit your "kitchen build rom.bat" file.

...

attrib dump\thumbs.db -A -S -H -R
del dump\thumbs.db /f /q

..\TOOLS\IMGFS\ImgfsFromDump.exe imgfs.bin imgfs-new.bin
[Windows Mobile] serfer222:
thank you =)

I used Process Monitor to find out what's happening with Thumbs.db. You can see platformrebuilder.exe and Erviuskitchen.exe writes to this file...

I tried to open this thumbs.db by Thumbnail Database Viewer and it report error - wrong file format. I tried other Thumbs.db Viewer and it failed too.

So, I wonder if this file is safe to delete, and why Erviuskitchen creates file named Thumbs.db... =)

Process Monitor log

0	12:55:13,0857316	Erviuskitchen.exe	720	CreateFile	D:\m\temp\dump\Thumbs.db	NAME NOT FOUND	Desired Access: Write Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
1	12:55:13,0861038	Erviuskitchen.exe	720	QueryOpen	D:\m\OEM\MEGA\COMMON\OEMDrivers\Thumbs.db	NAME NOT FOUND
2	12:55:13,1436539	Erviuskitchen.exe	720	CreateFile	D:\m\OEM\MEGA\COMMON\OEMDrivers\Thumbs.db	SUCCESS	Desired Access: Generic Write, Read Attributes, Disposition: OverwriteIf, Options: Synchronous IO Non-Alert, Non-Directory File, Open No Recall, Attributes: n/a, ShareMode: Write, AllocationSize: 0, OpenResult: Created
3	12:55:13,1590223	Erviuskitchen.exe	720	WriteFile	D:\m\OEM\MEGA\COMMON\OEMDrivers\Thumbs.db	SUCCESS	Offset: 0, Length: 4*096
4	12:55:13,1604854	Erviuskitchen.exe	720	WriteFile	D:\m\OEM\MEGA\COMMON\OEMDrivers\Thumbs.db	FAST IO DISALLOWED	Offset: 4*096, Length: 4*096
5	12:55:13,1606730	Erviuskitchen.exe	720	WriteFile	D:\m\OEM\MEGA\COMMON\OEMDrivers\Thumbs.db	SUCCESS	Offset: 4*096, Length: 4*096
6	12:55:13,1619327	Erviuskitchen.exe	720	WriteFile	D:\m\OEM\MEGA\COMMON\OEMDrivers\Thumbs.db	FAST IO DISALLOWED	Offset: 8*192, Length: 4*096
7	12:55:13,1621126	Erviuskitchen.exe	720	WriteFile	D:\m\OEM\MEGA\COMMON\OEMDrivers\Thumbs.db	SUCCESS	Offset: 8*192, Length: 4*096
....
full log is attached.
[Windows Mobile] Heechee:
Hi,

I need help

As a base I've took GSM Palm Treo Pro 21857 kitchen, downloaded 28004 files put it in correct Ervius kitchen folders,

but whatever I do I get nbh file 7.1 Mb which of course when tried to flash phone gives me phone stuck in first boot screen.

full log is in attach.
[Windows Mobile] serfer222:
there are two lines in your log

Implantxip & Payload Resizer v. 1.1 by ervius!!!
XIP: xip.bin not found!
XIP not Inserted!

I think this is your problem.
[Windows Mobile] Heechee:
I have seen them but every file is on it's place and tried xipimport tools but nothing happens
[Windows Mobile] OndraSter:
Thumbs.db are... thumbs generated by Windows for all files in the folder, so when you open it, it doesn't have to open each file, resize the image and then show it (it takes too much time), it just opens the Thumbs.db, loads already resized images and shows them immediatily.

You won't get rid of it probably, maybe disabling some part (service?) of Windows might do the trick.
[Windows Mobile] serfer222:
hm...

if you see attached log file, you will see that in my case Thumbs.db is created by Erviuskitchen.exe in OemDrivers, and then ..... Erviuskitchen.exe deletes this file from OemDrivers. Somewhere in the middle Thumbs.db is copied to dump and included in the ROM.
[Windows Mobile] mma123:
XP admin access?

Hi:

I did a quick search, and couldn't any post related to my query. Here it goes:

I am running XP. I am wondering, why can't I run the kitchen without admin access. In my understanding, the kitchen is doing a lot of file manipulation and that should not require admin access. I have seen at least one kitchen, that can do with limited access right.

ervius, is it possible to modify the kitchen that no admin access is required?

Thanks in advance,

mma123
[Windows Mobile] mccune:
Been almost 2 weeks since I've posted my problem with this Kitchen.

I guess it's related to Windows 7. I am using Windows 7 Ultimate 32 bit.

The error I get at the end of the log is (translated a little from Dutch to English):

.....executing NBHUtils to build nbh file...
Onverwerkte exception: System.UnauthorizedAccessException: Access to path C:\XDA\My_Visual_Kitchen\RELEASE_Rhodium\ImageHash.exe denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at NBHUtil.Form1.CmdLineWriteNBH(String ModelID, String cid, String Version, String Lang, String chunk, ArrayList items, String outputfile, Boolean usedef)
at NBHUtil.Program.Main(String[] args)

Attached is a screenshot of the problem.

Hope someone can help me out here. Really would like to start working with this kitchen on the Rhodium and Palm Treo Pro.
[Windows Mobile] serfer222:
UnauthorizedAccessException

You should login as real administrator.

I use Win7 and it works fine.
[Windows Mobile] p1um1oco:
Check out this post. Read the first post to see what you need to comment out of the kitchen_build_rom.bat to fix it.

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

-Dave
[Windows Mobile] mccune:
Tried this but get the same error. I'm about this close to moving back to XP again. Sigh... ..Will do some more research.
[Windows Mobile] kholk:
I can build ROMs normally using Windows7.

Just run clicking on "Run as Administrator"!

If you can't, try to clean your kitchen or start from zero ;)
[Windows Mobile] mccune:
I know how to use Administrator settings etc. Did some reverse enginering and got it working now. It even works now for other devices like the Treo Pro.

Might sound strange but it seems to be related to Framework. After some heavy cleaning I managed to get the kitchen to work as it should.

Most annoying errors are those that are caused by a different process than mentioned in the log files :P
[Windows Mobile] MacRoy:
How do i do to get HTC Calculator to show the icon in program?

Hi! To all. And thanks Ervius for you`re exellent kitchen.

How do i do to get HTC Calculator to show the icon in program?

I use Ervius Kitchen Updater 1.11 to import the CAB file of HTC Calculator and i can see it inside Visual Kitchen.I also make sure that it`s included in the build.

What a`m i doing wrong?

Regards MacRoy :confused:
[Windows Mobile] bobsbbq:
I have a problem where my packages are listed in EVK in reverse order. I have tried Win XP, I have tried a new kitchen. I have dumped a stock ROM all with the same thing. I'm using EVK 1.8.2, I have also tried 1.6 and I have the same issues. I have tried deleting all packages.txt files, so far nothing has worked.

I think the backwards order can be causing some of my problems. Please help
[Windows Mobile] Mayonesa:
i need help trying to edit some things... to make the rom more of my own... i cant find someone willing to help...lol

i want to edit the rom name you see when you do a soft reset... the red letter words you see..

also would like to add something to the rom build like (28008 by xxxx)

also the edit so when i hit settings in the start menu it takes me to setting rather than the manila setting...

im still learning but im having fun... thanks