Hi,
I would appriciate if somebody could help me with the following.
Currently I'm trying to build my own wm6 rom and conversion off roms is no problem for me anymore.
Next step is changing and comparing registry hives but I'm stuck a little!
The registry hives I'm talking about are:
-default.hv
-user.hv
I downloaded RGUCOMP and also have the Registry workshop.
What I'm trying to figure out is how can I convert *.hv files to files to working registry string so that I can edit and compare them with the Registry workshop.
I do know this but don't understand:
dump default.hv:
1. SET _FLATRELEASEDIR=.
2. RGUCOMP -o default.hv -nologo > default.txt
3. Add 'REGEDIT4' (first line)
4. Last line MUST be empty
5. Save as UNICODE
... edit the txt file ...
build default.hv:
1. rename default.txt to boot.rgu (same folder as RGUCOMP.exe)
2. SET _FLATRELEASEDIR=.
3. RGUCOMP -b
4. rename boot.hv to default.hv
Enter this: "RGUCOMP -o default.hv -nologo > default.txt
", 'you should not see the reg entries, because "> default.txt" redirects the output to default.txt '.
Is there no solution to convert a *.hv file to a working registry string *.reg?
Or maybe there is a solution to export the registry from my device and convert it to a *.hv
I'm new to this and any help would be higly appriciated!
Greetings, Leo
after :
RGUCOMP -o default.hv -nologo > default.txt
you'll see default.txt contain all the regkey.
since default.txt doesn't contain the first line 'REGEDIT4',
so you need to add it.
it's same in user.hv
Won't get it
Hi Leies,
Thank you for your reply,
still don't understand, do I have to name the file REGEDIT4 .txt after created, or the first line in the opend textfile must be REGEDIT4, and what about the empty line, do I tab twice [ENTER] to have that and save the textfile in unicode? Sorry I'm stupid, but I just don't get it, it stays blank, weird? Can you send me a sample so I can see please?
Greetings Leo
Leies said:
after :
RGUCOMP -o default.hv -nologo > default.txt
you'll see default.txt contain all the regkey.
since default.txt doesn't contain the first line 'REGEDIT4',
so you need to add it.
it's same in user.hv
Click to expand...
Click to collapse
one more question
Can I create a subdirectory for this c:\hv files\.. and place the boot.hv and user.hv together with rgucomp files in here, or should it be in c:\..
Thanks,
Leo
not name the file, it's add at the first line..
did you got the dump folder already ?
default.hv and user.hv are in dump folder after you have extracted imgfs_raw_data.bin by viewimgfs.exe . (maybe different when you use other tool)
rgucomp -o dump\default.hv -nologo > default.rgu (or default.txt as you like)
then, default.rgu will stored in rgucomp.exe same folder, not at dump folder.
It may help, just try for dumping default.hv:
1. SET _FLATRELEASEDIR=.
1b. echo REGEDIT4 > default.txt
2. RGUCOMP -o default.hv -nologo >> default.txt
Click to expand...
Click to collapse
No need the 3rd original step and you should be able to open default.txt with notepad
Hi,
Thanks for your answer.
Still don't work, this is the error:
wmain: (RGUComp) !ERROR release directory ".echo REGEDIT4 " does not exist
What am I doing wrong?
Please, please, help.
Leo
naboleo said:
It may help, just try for dumping default.hv:
No need the 3rd original step and you should be able to open default.txt with notepad
Click to expand...
Click to collapse
*.hv
Hi thanks again
Will try tomorrow, today I'm having my birthday party
Greetings, Leo
Leies said:
not name the file, it's add at the first line..
did you got the dump folder already ?
default.hv and user.hv are in dump folder after you have extracted imgfs_raw_data.bin by viewimgfs.exe . (maybe different when you use other tool)
rgucomp -o dump\default.hv -nologo > default.rgu (or default.txt as you like)
then, default.rgu will stored in rgucomp.exe same folder, not at dump folder.
Click to expand...
Click to collapse
Did a bat command sample file. Just rename it *.bat instead os *.bat.txt and run it. It should create both user and defaut registry and open them directly in notepad.
Btw : happy birthday !
Found it
Hi,
Thank you Naboleo and Leies
1. set _flatreleasedir=c:\dump
2. RGUCOMP -o default.hv -nologo > default.txt
3. RGUCOMP -o user.hv -nologo > user.txt
Both added first line REGEDIT4, last line empty and saved as unicode!
Done
I'm sooooo happy
Greetings Leo
Again another question
Hi,
I'm making you grazy I know but this is realy important for me, Im almost there building the rom.
Currently I'm busy with RGUCOMP, I converted user.hv to a user.txt file and edited the strings (just some ringtones to delete), now I'm trying to convert back but it doesn't work, it gives some errors.
build user.hv
1. rename user.txt to boot.rgu
2. SET _Flatreleasedir=c:\dumphv (this is my dir)
3. RGUCOMP -b
4. rename boot.hv to user.hv
The errors:
Buildboothive: <RGUCOMP> !ERROR unable to find required source file "Boot.rgu"
ERROR C:\MacB\private\winceos\COREOS\filesys\reg\reghive \.hive c line 877: FS: Registry Exception Handler
wmain: <RGUCOMP> !ERROR failed building BOOT hive
It makes me grazy haha...
Any ideas
Thanks again,
Leo
Laurentius26 said:
Hi,
build user.hv
1. rename user.txt to boot.rgu
2. SET _Flatreleasedir=c:\dumphv (this is my dir)
3. RGUCOMP -b
4. rename boot.hv to user.hv
The errors:
Buildboothive: <RGUCOMP> !ERROR unable to find required source file "Boot.rgu"
ERROR C:\MacB\private\winceos\COREOS\filesys\reg\reghive \.hive c line 877: FS: Registry Exception Handler
wmain: <RGUCOMP> !ERROR failed building BOOT hive
It makes me grazy haha...
Any ideas
Thanks again,
Leo
Click to expand...
Click to collapse
did your rgucomp.exe and boot.rgu in c:\dumphv ?
if yes , just type :
set _FLATRELEASEDIR=.
rgucomp -b
it could be done .
since i'm lazy than u, so i have wrote a *.bat tfile to do extract and repack process .
* remember boot.rgu , you need to rename it to default.hv and copy to "dump" fiolder .
* if you can't directly copy in ( show error ), you may try this command :
attrib -s -r -h dump\default.hv
and then del it .
PS : Happy Birthday Man !
Converting back
@Leies
Thank you for your quick reply's
I love a vampire like you
It doesn't work yet
Two files I've I copied from the dump directory to compile:
-default.hv
-user.hv
Converted them to:
-default.txt
-user.txt
They are in c:\dumphv together with the tools:
-boot.rgu
-cereg400.dll
-make_boot_hv.bat
-rgucomp.exe
How to do this?
default.txt => default.hv
user.txt => user.hv
After that I can copy them back to the dump and start build_imgfs, would be great
I'm enjoying my birthday
Cheers, Leo
Hihi, i seen your post in universal , so i guess that you're cooking a uni rom and using helmi_c method , since i had cooked many for my uni , but not using helmi_c 's method , so maybe something differents ...
ok , let's go ,
when you use "rgucom -b" , the file name of default.hv should rename to boot.rgu , after rgucom success , it'll create a file "boot.hv" and copy it to dump\ and rename to default.hv ,
same as user.hv , should rename to boot.rgu when "rgucom -b" , after rgucom, it'll create a file "boot.hv" and copy it to dump\ and rename to user.hv ,
maybe you can use this to create a bat file and it will auto finish for you .
you can add "pause" if you like to see some information when batch runs.
cd\
cd temp
copy default.rgu boot.rgu
set _FLATRELEASEDIR=.
rgucomp -b
PAUSE
attrib -s -r -h dump\default.hv
del dump\default.hv
copy boot.hv dump\default.hv
del boot.hv
del boot.rgu
copy user.hv boot.rgu
set _FLATRELEASEDIR=.
rgucomp -b
attrib -s -r -h dump\user.hv
del dump\user.hv
copy boot.hv dump\user.hv
del boot.hv
del boot.rgu
PAUSE
BuildImgfs
PAUSE
make_imgfs nk.fat -nosplit
Your so helpful
I'm starting to love you.
That's dangerous isn't?
Anyway, thank you, thank you, thank you
Will let you know how rom is progressing if you like?
Leo
Leies said:
Hihi, i seen your post in universal , so i guess that you're cooking a uni rom and using helmi_c method , since i had cooked many for my uni , but not using helmi_c 's method , so maybe something differents ...
ok , let's go ,
when you use "rgucom -b" , the file name of default.hv should rename to boot.rgu , after rgucom success , it'll create a file "boot.hv" and copy it to dump\ and rename to default.hv ,
same as user.hv , should rename to boot.rgu when "rgucom -b" , after rgucom, it'll create a file "boot.hv" and copy it to dump\ and rename to user.hv ,
maybe you can use this to create a bat file and it will auto finish for you .
you can add "pause" if you like to see some information when batch runs.
cd\
cd temp
copy default.rgu boot.rgu
set _FLATRELEASEDIR=.
rgucomp -b
PAUSE
attrib -s -r -h dump\default.hv
del dump\default.hv
copy boot.hv dump\default.hv
del boot.hv
del boot.rgu
copy user.hv boot.rgu
set _FLATRELEASEDIR=.
rgucomp -b
attrib -s -r -h dump\user.hv
del dump\user.hv
copy boot.hv dump\user.hv
del boot.hv
del boot.rgu
PAUSE
BuildImgfs
PAUSE
make_imgfs nk.fat -nosplit
Click to expand...
Click to collapse
Last one
Hi Leies,
Must be something else!
Here's my story if you want to read.
My device: Universal
The rom I'm trying to build is WM6
I'm using a nk.nba ('Rom' folder) out of Helmi_C's kitchen.
The only thing I want to do is to take some ringtones out there!
So here it is:
cd\
cd\dump
prepare_imgfs nk.nba -nosplit
viewimgfs imgfs_raw_data.bin
dump directory created.
Take the ringtones out.
Maybe here I'm going wrong, I need to edit User.hv and default.hv to take the registry values out, wright ?
It works ok if I leave User and default.hv beside but when i look in my phone under ringtone settings the values are there but when I select them as ringtone the ringtones don't exist's, so that's uckly.
Yes, and I also edited the initflashfiles.dat in the responsable OEM
Next I copy to the dump directory:
boot.rgu
cereg400.dll
make_boot_hv.bat
rgucomp.exe
cd dump
set _flatreleasedir=c:\dump
RGUCOMP -o user.hv -nologo > user.txt
I edit the text and save it as unicode textfile.
Still in dump directory.
RGUCOMP -b
So know user.txt is in boot.rgu
I change the name to user.hv
Same for default.hv
batchfile's are coming later, I'm not so fast as you
Both I copy back to my dumped 'rom' (from here I took them in the first way, so I overwrite them with the new ones)
build_imgfs imgfs_raw_data.bin
make_imgfs nk.nba
Done, ready to use for kitchen. (but not when I edit the *.hv?)
Cheers, Leo
b.t.w. You builded some Roms before for the Universal isn't?
I need to no this please, because I've got the feeling that I'm close to rombuilding, this is the last key that has to suite.
I have a dell axim X50 and I would like to customize my rom image (WM5 or WM2003 SE, but perferably WM5). I have been searching the forums and have found no solutions (that I know of). The axim uses .nb0 files to flash a rom image, but I have only found rom kitchens that produce .nbf files or some other format. I have no idea on how to use Mamaich's rom tools properly for the axim. I have already dumped the rom image of my axim using the 128mb grab_it tool found on this site. Can someone please head me in the right direction and help me get started?
bump - i too am interested in this
Try Aximsite.com
I got a upgrade for my old x5 ce to wm2003 from there.
heh the axims were years ahead at there time.. I still use it today for fun, with a $20 wifi compact flash card. It's better than my hermes for media playback webbrowsing etc. Must be over 5 years old. has a bigger screen, longer battery life, faster cpu, 2 memory slots sd & flash. enhanced infrared, so I can actually use it as a remote controll. Shame no phone.. & it needs those crappy watch batterys.
Hmm infact playing with it as I write this.. Its soo much more responseive than my hermes !!.. Bring back 2002. I took it to siggraph then, people from movie/games/technology were all wtf thats amazing.. never got that from newer phones, execpt when showing dirty vids to me m8s down the pub.
Post back if you get lucky on newer roms.. I fear however the day of the axim is gone. And from what I understand unfortunatly there is too much crazy hard code/schematics needed from the original devs for home brewers to have a bash.
Good luck
Steven855 said:
I have a dell axim X50 and I would like to customize my rom image (WM5 or WM2003 SE, but perferably WM5). I have been searching the forums and have found no solutions (that I know of). The axim uses .nb0 files to flash a rom image, but I have only found rom kitchens that produce .nbf files or some other format. I have no idea on how to use Mamaich's rom tools properly for the axim. I have already dumped the rom image of my axim using the 128mb grab_it tool found on this site. Can someone please head me in the right direction and help me get started?
Click to expand...
Click to collapse
1, welcome to xda-dev
2, http://forum.xda-developers.com/showthread.php?p=1430712
Menneisyys said:
1, welcome to xda-dev
2, http://forum.xda-developers.com/showthread.php?p=1430712
Click to expand...
Click to collapse
This doesn't help me at all. There is no reference to any tools used or any instructions used to modify roms. On almost every thread I have seen, a noob has always deffered by someone who said that there are other threads that cover modifying roms. I have searched and searched and found no instructions for modifying a dell axim's rom. I have found tools for almost every other device referenced on this site. Can someone give me clear instructions for modifying the rom image for a dell axim X50 (mid)?
Steven855 said:
This doesn't help me at all. There is no reference to any tools used or any instructions used to modify roms. On almost every thread I have seen, a noob has always deffered by someone who said that there are other threads that cover modifying roms. I have searched and searched and found no instructions for modifying a dell axim's rom. I have found tools for almost every other device referenced on this site. Can someone give me clear instructions for modifying the rom image for a dell axim X50 (mid)?
Click to expand...
Click to collapse
Ask Football for help in the linked thread (or in the original Russian one) - he will prolly help you with Axim-specific issues.
Steps for X51v Rom
maybe the same for x50 (for detail instruction, search my old post for Asus P525 customization thread as reference), U can put this as DOS batch file for automation.
prepare_imgfs.exe DiAd_K_AximX51v_WM6_A01EN.nb0 -nosplit
viewimgfs.exe imgfs_raw_data.bin
SET _FLATRELEASEDIR=.
rgucomp -o dump\default.hv -nologo > default.txt
rgucomp -o dump\user.hv -nologo > user.txt
REM ***** Edit the rom by using Addfile/Delfile or play around w/ the dump directory
SET _FLATRELEASEDIR=.
copy /y default.txt boot.rgu
RGUCOMP -b
copy /y boot.hv dump\default.hv
copy /y user.txt boot.rgu
RGUCOMP -b
copy /y boot.hv dump\user.hv
REM ----------------------
REM *** Configure the folder ****
Delfile.exe initflashfiles.dat
Addfile.exe initflashfiles.dat
REM *** Registry ****
Delfile.exe default.hv
SET _FLATRELEASEDIR=.
copy /y default.txt boot.rgu
RGUCOMP -b
copy /y boot.hv default.hv
Addfile.exe default.hv
Delfile.exe user.hv
copy /y user.txt boot.rgu
RGUCOMP -b
copy /y boot.hv user.hv
Addfile.exe user.hv
rem **BuildImgfs.exe
make_imgfs.exe DiAd_K_AximX51v_WM6_A01EN.nb0 -nosplit
copy /y DiAd_K_AximX51v_WM6_A01EN.nb0 f:
copy /y DiAd_K_AximX51v_WM6_A01EN.nb0.crc f:
jackleung said:
maybe the same for x50 (for detail instruction, search my old post for Asus P525 customization thread as reference), U can put this as DOS batch file for automation.
prepare_imgfs.exe DiAd_K_AximX51v_WM6_A01EN.nb0 -nosplit
viewimgfs.exe imgfs_raw_data.bin
SET _FLATRELEASEDIR=.
rgucomp -o dump\default.hv -nologo > default.txt
rgucomp -o dump\user.hv -nologo > user.txt
REM ***** Edit the rom by using Addfile/Delfile or play around w/ the dump directory
SET _FLATRELEASEDIR=.
copy /y default.txt boot.rgu
RGUCOMP -b
copy /y boot.hv dump\default.hv
copy /y user.txt boot.rgu
RGUCOMP -b
copy /y boot.hv dump\user.hv
REM ----------------------
REM *** Configure the folder ****
Delfile.exe initflashfiles.dat
Addfile.exe initflashfiles.dat
REM *** Registry ****
Delfile.exe default.hv
SET _FLATRELEASEDIR=.
copy /y default.txt boot.rgu
RGUCOMP -b
copy /y boot.hv default.hv
Addfile.exe default.hv
Delfile.exe user.hv
copy /y user.txt boot.rgu
RGUCOMP -b
copy /y boot.hv user.hv
Addfile.exe user.hv
rem **BuildImgfs.exe
make_imgfs.exe DiAd_K_AximX51v_WM6_A01EN.nb0 -nosplit
copy /y DiAd_K_AximX51v_WM6_A01EN.nb0 f:
copy /y DiAd_K_AximX51v_WM6_A01EN.nb0.crc f:
Click to expand...
Click to collapse
Can someone please verify that that this works for the dell axim X50?
Hi guys (girls??)
One thing that is a little annoying when you create a new rom in your kitchen, is that when you add a updatet oem version of in.ex mms or comm manager or w/e is that you manually have to locate the old files and remove them before you can build the rom.
What if it could be devoloped a little prog that remove/replace them automaticly?
I can see that there might be a downside to having such an option, maybe you wanna keep some of the old ones for compability issues, but I was thinking that the program could create a list where you could check what files that you wanna replace and witch ones you wanna keep.
I dont have a big problem removing them myself, but I would not be unhappy having a prog that could do this for me, and I know many other chefs has this on their wishlist aswell
cheers
itje
Little batch file can do the job:
Code:
cls
@echo off
echo Starting to search
echo.
for /f %%a in ('dir /w /b %1') do (
echo Looking for %%a in OEM :
dir /w /b /s oem\%%a
echo.
echo Looking for %%a in SYS :
dir /w /b /s sys\%%a
echo.
echo.
)
save as search.bat in your build folder
launch it by "search.bat (name of folder)" and it will look for every file in oem and sys
bye
aje_fr said:
Little batch file can do the job:
Code:
cls
@echo off
echo Starting to search
echo.
for /f %%a in ('dir /w /b %1') do (
echo Looking for %%a in OEM :
dir /w /b /s oem\%%a
echo.
echo Looking for %%a in SYS :
dir /w /b /s sys\%%a
echo.
echo.
)
save as search.bat in your build folder
launch it by "search.bat (name of folder)" and it will look for every file in oem and sys
bye
Click to expand...
Click to collapse
hahahaha..!
Aje_fr my friend.Smart way use *bat file.Here we go..
sorry for that , It seems solved
He everyone,
I try to use Kaiser_Kitchen to compile ROM ,
but finally found one thing.....
the first step extract OS.nb cannot flash ROM
1.NBHtract RUU_signed.nbh
2.use Htcrt , choose Polaris , Model POLAxxxxxx , System OS choose OS.nb
3.use Polaris CustomRUU flash ROM , but stop at "Smart Mobility" screen.
If I just use CustomRUU flash Rom , everything ok ,
If extract OS.nb then compact NBH , can't flash Rom
how can I do ?
ps. tool is from Swtos :
http://forum.xda-developers.com/showthread.php?t=373482&highlight=Swtos_WM6.1_polaris_kitchen
sorry for that , It seems solved , but I have problem dump XIP from other rom.(my ROM still fail , too)
still trying.............
..\tools\RomMaster.exe -x -w 5 -b 0x320000 OS.nb.payload -o xip.bin
this the error code:
[Info] It is a common ROM.
[Error] File is damaged, end address small than start address.
[Error] File is damaged, end address small than start address.
xip.bin: No such file or directory
RomMaster.exe -x -w 5 -b 0x020000 OS.nb.payload -o xip.bin
udK said:
RomMaster.exe -x -w 5 -b 0x020000 OS.nb.payload -o xip.bin
Click to expand...
Click to collapse
It works ..........
Thanks very much
I am trying to build a 21042 Titan kitchen ... I have built an NBH file and flashed it, but I can not view text messages, or send new ones. It looks to me like the IMGFSfromDUMP command is not working properly.
If I start with ppck_Titan_21042.nbh (in the zip ... 21042 Titan ROM built with the PPCKitchen.org kitchen) ...
NBHExtract ppck_Titan_21042.nbh
NBSplit -titan 02_OS.nb
IMGFSfromNB 02_OS.nb.payload 02_OS_imgfs.bin
IMGFStoDUMP 02_OS_imgfs.bin
IMGFSfromDUMP 02_OS_imgfs.bin new_imgfs.bin
... The two IMGFS files are different sizes!
02_OS_imgfs.bin - 46,137,344
new_imgfs.bin - 45,834,240
Anyone run into this one before?
Thanks in advance!
DJ
Code:
[URL="http://rapidshare.com/files/248601008/ppck_Titan_21042.zip"]ppck_Titan_21042.zip[/URL]
I was mistaken ... The new_imgfs.bin (converted to .NBH and flashed) works fine. I am ultimately trying to build a Titan kitchen. Looks like my text messaging issue is a BuildOS issue (see http://forum.xda-developers.com/showthread.php?t=530146).
Solved!!!
It is a file attribute issue. All I needed was ...
Code:
attrib /s +A +S +R dump\*
attrib /s -S -R dump\imageinfo.txt
attrib /s -S -R dump\S???