PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Apache (http://forum.ppcgeeks.com/forumdisplay.php?f=14)
-   -   How To: Build your own Custom ROM! (http://forum.ppcgeeks.com/showthread.php?t=1904)

colonel 01-21-2007 06:27 PM

Yep, adding REGEDIT4 then saving as Unicode before any editing. I have not noticed any reformatting in the text file. Do I leave the REGEDIT4 in there when I convert back? Getting the hang of things, but I am going to start fresh since I really didn't do that much yet and I want to get rid of all corruption.

Wideawake 01-21-2007 06:33 PM

yea leave it in there :thumbleft: have u edited initflash? If so did u hex edit afterwards?
~Mike

colonel 01-21-2007 06:45 PM

Yep and yep. I only added one thing, but it did not seem to work. I did this a while back when I could get it to boot. I think the boot issue is somewhere in a corrupt registry.

When you edit initflash, do you have to do anything else such as creating a .lnk file?

"Directory("\Windows\Start Menu\Programs\Games"):-File("Pocket Chess.lnk","\Windows\Pocket Chess.lnk")"

In this example from the first post, am I correct in assuming that all you are doing is naming a target directory, naming the file to be linked, and naming where it is found? There does not actually need to be a Pocket Chess.lnk file?

EDIT: Figured it out (I think). You need the shortcuts which are .lnk files. Don't know how to create them though, but I can steal them from cabs if they are available. Also got it to boot by skipping the boot.hv step and just recompiling the dumb to nba to nbf.

Wideawake 01-21-2007 06:59 PM

yea I found that making the .lnk on my ppc and active syncing to easiest way for me ;)

colonel 01-21-2007 07:06 PM

Were you just dumping the rom after that?

Wideawake 01-21-2007 07:11 PM

huh? You lost me. The dumps on the computer, and I would take the .lnks of my ppc and move to the dump folder then rebuild my nk.nbf.
~Mike

colonel 01-21-2007 07:29 PM

I read your last post wrong. Slight case of retardedness. What about from scratch?

Wideawake 01-21-2007 07:45 PM

Quote:

Originally Posted by colonel
I read your last post wrong. Slight case of retardedness. What about from scratch?

new text document type in 24#"\Windows\something.exe" save as select save file type all files, something.lnk. You need to change the number to match the number of characters located after the # sign. (also simple)
~Mike

colonel 01-21-2007 08:47 PM

Thanks, getting it. Brain hurts. Need football distraction.

colonel 01-21-2007 11:35 PM

Still having trouble getting reg edits to stick. Mostly something is gettng corrupted when converting back from txt to .hv. The batch cranks out a 28kb .hv file that is much smaller than the default.hv in the dump file. When I convert it back to text it is only a few of the registry lines. Not sure what is happening. Have you seen this?

For instance, I will do something very simple like .hv to txt. Open, add REGEDIT4, save as unicode. Then just do the quick change to enable smartdialer. Save, close, txt to .hv and everything is gone. Hopefully this will ring a bell.

Wideawake 01-22-2007 12:09 AM

nall Im sorry I dont have any issues. In notepad is the option word wrap selected? If so deselect it and try again. Something like this hv to txt, open add REGEDIT4 line, save as unicode, Reopen, edit, save, (you can reopen here to look and see if everything is formatted the same with spaces and all) then txt to hv. Maybe this helps.
~Mike

colonel 01-22-2007 12:26 AM

Never noticed any formatting changes. Word Wrap may have been on. I will check. Trying again tomorrow.

colonel 01-24-2007 10:06 PM

Well, I have been rolling along pretty good now. Thanks for all the help Mike. I have now come across a few other things that I can't as of yet find answers to.

1. I can't get files to move to different folders. For instance, I want to get some ringers from the Windows folder to Windows\Rings.

2. I can't get the crossbow theme to load on startup. The registry is exactly the same as it is when you switch to it from the Today settings.

3. When you UPXed the files in your Custom, did you do it on your device and then dump the Rom? The reason I ask is because I can UPX them in the dump folder, but they do not overwrite in the .nba when converting from dump to .nba.

colonel 01-26-2007 08:37 PM

Here are the .Net 2.0 goodies. Like I said in the PM, it would be nice to have an organized place where people could upload and search through zipped "modules" that would contain files, shortcuts, reg entries/edits, and flashfile entries.

Can't upload. File is too big

Wideawake 01-26-2007 10:08 PM

How big is it? theres a 10mb limit, but ur upload limit maybe set low.
~Mike

colonel 01-27-2007 12:39 AM

My Quota is 1MB.

Wideawake 01-27-2007 01:10 AM

ur limit has been adjusted. ;)

colonel 01-27-2007 04:23 AM

Thanks. Only 3MB I guess I will make do

Wideawake 01-27-2007 10:37 AM

my bad wrong setting :P

ppc6700freak 01-27-2007 01:33 PM

Quote:

Originally Posted by colonel
Still having trouble getting reg edits to stick. Mostly something is gettng corrupted when converting back from txt to .hv. The batch cranks out a 28kb .hv file that is much smaller than the default.hv in the dump file. When I convert it back to text it is only a few of the registry lines. Not sure what is happening. Have you seen this?

For instance, I will do something very simple like .hv to txt. Open, add REGEDIT4, save as unicode. Then just do the quick change to enable smartdialer. Save, close, txt to .hv and everything is gone. Hopefully this will ring a bell.

colonel, how did you resolve this issue?

Thanks.

colonel 01-27-2007 02:16 PM

Hang tight. When I get home I will post a screen shot showing exactly how stuff should look. Remember, you can't have word wrap on. I had to open Notepad with nothing in it, turn off word wrap, then "Open" the reg text. Add the REGEDIT4 and save as Unicode first. It should basically look like this:

REGEDIT4

[HKEY_LOCAL_MACHINE\......]
@="string value"

[HKEY_LOCAL....................]
"DLL"="whatever.dll"

Remember to pay attention to spacing and syntax. When you run the txt-to-hv utility, if it shows an error, it will list the key where the error is. I always save my default.txt and user.txt in two places since those utilities take the one you have in the HV Tools folder. So, if I have an error when converting to .hv, I erase the .hv and boot file that were created. I can then go back to my saved txt file and correct the issue, save in the HV tools folder and somewhere else and then attempt to convert back to .hv again.

colonel 01-27-2007 04:59 PM

2 Attachment(s)
Okay, here is the .NET CF2.0 "module". This one is pretty simple. Using the process in this thread, just paste the files into the dump folder and add the registry entries to either .hv file.

sd_matto 01-28-2007 02:41 PM

System files that can be UPX'd?
 
Hello-

Great work by Mike (for the tools), and by Helmi, Mike and Colonel (for the new 3.3 based ROMs).

Helmi's ROM (and the Colonel's, which has two extra copies of a 680K file, one in \windows and the other \windows\pem\) can be easily fixed via the custom tools following instructions on here. In addition, the smartdialer hack can be similarly fixed.

As I was working my way through this custom ROM exercise, I thought about UPX and system files. At first, I tried a blanket UPX of EVERYTHING; did not go over well. So, I was wondering about people's experience with UPXing ROM files, and, specifically, what ROM files can be safely UPXd. Your thoughts?

Thanks in advance.

schettj 01-28-2007 04:33 PM

The rom itself is compressed (apparently) so UPXing on top of that might not always be a win - according to the long long long rom kitchen thread at least.

The only reason to UPX stuff in rom is to make enough space to fit more stuff into rom. At least in the Rom Kitchen you can see when you go over the limit, and if you do you need to pull out something to get back under the limit.

colonel 01-28-2007 04:40 PM

Exactly schettj, that is the way I understand it as well. Many people believe that removing programs from the rom will give them ample amounts of Storage and Program memory. The fact is, though, that its just not true (that I have seen anyway). My .nba files are always 63.2 MB regardless of what I put in them. Actually, my dump folder is 94MB right now so that shows the compression that is taking place.

luv2chill 01-28-2007 04:52 PM

I haven't gotten much into the UPX thing yet (it's on my list!) but I believe one of the side effects of UPX compression is quicker load times (because the speed bottleneck is in reading the file from flash rom). So since a UPX'ed file is smaller in size, it can be copied from the flash rom to memory faster and will therefore speed up its load time.

So even if it doesn't directly give you more storage memory it may still be worth trying to UPX some stuff if it means that stuff loads faster. Also, as you've said it allows you to pre-install more stuff in the ROM so that you don't have to use your storage memory for it.

Only problem is that it seems that UPX'ing the wrong files can cause all kinds of gremlins, so there's a ton of trial and error involved. A wiki page with summaries of which files can be successfully UPX'ed and which ones can't would be a good way to go (maybe one already exists somewhere?).

kwyatt 01-28-2007 07:09 PM

how would i go about upxing some system files using either this or the rom kitchen method, also what system files are ok to upx?

crencom 01-28-2007 09:19 PM

I cannot get past a certain point with this process. I can dump the .nba file. I edit what I want on the dump folder. Then when I run the process to restore the edited Dump folder to a .nba, it doesn't seem to build the .nba file. I assume the new .nba would appear in Folder 2, but it is.nt there, just the original .nba. Anyone have any ideas.

scott

colonel 01-28-2007 10:00 PM

That is your .nba. The app just patches it with your new stuff. Just copy it to folder 1 and encode.

colonel 01-28-2007 10:55 PM

Here are the registry entries for the Mark All As Read cab. I have not had a chance to package anything else at this point. For this, though, all you need is the entries and the files from the cab.


[HKEY_LOCAL_MACHINE\SOFTWARE\Apps\SwartB SmartDeviceCab1]
"Instl"=dword:00000001
"InstallDir"="\\Program Files\\SmartDeviceCab1"
"InstlDir"="\\Program Files\\SmartDeviceCab1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extens ions]


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extens ions\ContextMenus]


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extens ions\ContextMenus\Inbox]


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extens ions\ContextMenus\Inbox\List_View_Context]


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extens ions\ContextMenus\Inbox\List_View_Context\{6F3A2AA 2-D88D-4e3d-85C1-D5B403EAD4EF}]
@="Inbox Context Menu Extension"


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extens ions\ContextMenus\Inbox\List_View]


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extens ions\ContextMenus\Inbox\List_View\{47018836-A919-42f7-84AF-89257BA458BA}]
@="Inbox Softkey Menu Extension"

[HKEY_CLASSES_ROOT\CLSID\{6F3A2AA2-D88D-4e3d-85C1-D5B403EAD4EF}]
@="Inbox Context Menu Extension"


[HKEY_CLASSES_ROOT\CLSID\{6F3A2AA2-D88D-4e3d-85C1-D5B403EAD4EF}\InprocServer32]
@="\\Program Files\\SmartDeviceCab1\\InboxMenuExtensibility.dll "


[HKEY_CLASSES_ROOT\CLSID\{47018836-A919-42f7-84AF-89257BA458BA}]
@="Inbox Softkey Menu Extension"


[HKEY_CLASSES_ROOT\CLSID\{47018836-A919-42f7-84AF-89257BA458BA}\InprocServer32]
@="\\Program Files\\SmartDeviceCab1\\InboxMenuExtensibility.dll "

[HKEY_LOCAL_MACHINE\Security\AppInstall\SwartB SmartDeviceCab1]
"InstallDir"="\\Program Files\\SmartDeviceCab1"
"Role"=dword:00000018
"Uninstall"="\\Windows\\AppMgr\\SwartB SmartDeviceCab1\\7001.tmp"


[HKEY_LOCAL_MACHINE\Security\AppInstall\SwartB SmartDeviceCab1\ExecutableFiles]

Perasite 01-29-2007 01:04 PM

Colonel or Mike,
Maybe you could help me out with this. I've taken Helmi's AKU 3.3, added in the cf2 module Colonel posted, made the registry change to fix speed dial, and moved the files to fix the pic/vid hang. I'm using Mike's method to create my ROM. When I try to convert my dump file back to an .nba, I get the mess you see in my screenshot, and the .nba is not created. Any ideas?
http://upload6.postimage.org/4479/NBAError.jpg

helmi_c 01-29-2007 01:25 PM

Quote:

Originally Posted by colonel
Here are the registry entries for the Mark All As Read cab. I have not had a chance to package anything else at this point. For this, though, all you need is the entries and the files from the cab.


[HKEY_LOCAL_MACHINE\SOFTWARE\Apps\SwartB SmartDeviceCab1]
"Instl"=dword:00000001
"InstallDir"="\\Program Files\\SmartDeviceCab1"
"InstlDir"="\\Program Files\\SmartDeviceCab1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extens ions]


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extens ions\ContextMenus]


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extens ions\ContextMenus\Inbox]


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extens ions\ContextMenus\Inbox\List_View_Context]


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extens ions\ContextMenus\Inbox\List_View_Context\{6F3A2AA 2-D88D-4e3d-85C1-D5B403EAD4EF}]
@="Inbox Context Menu Extension"


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extens ions\ContextMenus\Inbox\List_View]


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extens ions\ContextMenus\Inbox\List_View\{47018836-A919-42f7-84AF-89257BA458BA}]
@="Inbox Softkey Menu Extension"

[HKEY_CLASSES_ROOT\CLSID\{6F3A2AA2-D88D-4e3d-85C1-D5B403EAD4EF}]
@="Inbox Context Menu Extension"


[HKEY_CLASSES_ROOT\CLSID\{6F3A2AA2-D88D-4e3d-85C1-D5B403EAD4EF}\InprocServer32]
@="\\Program Files\\SmartDeviceCab1\\InboxMenuExtensibility.dll "


[HKEY_CLASSES_ROOT\CLSID\{47018836-A919-42f7-84AF-89257BA458BA}]
@="Inbox Softkey Menu Extension"


[HKEY_CLASSES_ROOT\CLSID\{47018836-A919-42f7-84AF-89257BA458BA}\InprocServer32]
@="\\Program Files\\SmartDeviceCab1\\InboxMenuExtensibility.dll "

[HKEY_LOCAL_MACHINE\Security\AppInstall\SwartB SmartDeviceCab1]
"InstallDir"="\\Program Files\\SmartDeviceCab1"
"Role"=dword:00000018
"Uninstall"="\\Windows\\AppMgr\\SwartB SmartDeviceCab1\\7001.tmp"


[HKEY_LOCAL_MACHINE\Security\AppInstall\SwartB SmartDeviceCab1\ExecutableFiles]

The rgu file should only contain this, I think it's enough since it will be built in rom, and cant be uninstall..

Code:

REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extensions]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extensions\ContextMenus]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extensions\ContextMenus\Inbox]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extensions\ContextMenus\Inbox\List_View_Context]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extensions\ContextMenus\Inbox\List_View_Context\{6F3A2AA2-D88D-4e3d-85C1-D5B403EAD4EF}]
  @="Inbox Context Menu Extension"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extensions\ContextMenus\Inbox\List_View]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Extensions\ContextMenus\Inbox\List_View\{47018836-A919-42f7-84AF-89257BA458BA}]
  @="Inbox Softkey Menu Extension"
[HKEY_CLASSES_ROOT\CLSID\{6F3A2AA2-D88D-4e3d-85C1-D5B403EAD4EF}]
  @="Inbox Context Menu Extension"
[HKEY_CLASSES_ROOT\CLSID\{6F3A2AA2-D88D-4e3d-85C1-D5B403EAD4EF}\InprocServer32]
  @="InboxMenuExtensibility.dll"
[HKEY_CLASSES_ROOT\CLSID\{47018836-A919-42f7-84AF-89257BA458BA}]
  @="Inbox Softkey Menu Extension"
[HKEY_CLASSES_ROOT\CLSID\{47018836-A919-42f7-84AF-89257BA458BA}\InprocServer32]
  @="InboxMenuExtensibility.dll"

be ware of instalation folder (\\Program Files\\) u need to change them to \\Windows\\ or leave it nothing just the dll/module name since it will locate at \\Windows dir after u flash it. and lastly make sure u hv 1 line free at the end of rgu file (CRLF) and initflashfiles.txt, or built will result error builtin default.hv/user.hv.

helmi_c 01-29-2007 01:28 PM

Quote:

Originally Posted by 6700Yuma
Colonel or Mike,
Maybe you could help me out with this. I've taken Helmi's AKU 3.3, added in the cf2 module Colonel posted, made the registry change to fix speed dial, and moved the files to fix the pic/vid hang. I'm using Mike's method to create my ROM. When I try to convert my dump file back to an .nba, I get the mess you see in my screenshot, and the .nba is not created. Any ideas?
http://upload6.postimage.org/4479/NBAError.jpg

does the nk.nba is exist in the same folder as imgfs_raw_data.bin file?

Perasite 01-29-2007 01:45 PM

The original .nba file was in the same directory as the imgfs_raw_data.bin file, but I renamed it to .bak before doing the dump_to_nba.bat. Once I finished the dump_to_nba.bat and got the above error, a new .nba was not created.

helmi_c 01-29-2007 01:56 PM

Quote:

Originally Posted by 6700Yuma
The original .nba file was in the same directory as the imgfs_raw_data.bin file, but I renamed it to .bak before doing the dump_to_nba.bat. Once I finished the dump_to_nba.bat and got the above error, a new .nba was not created.

U need a nk.nba to built (patch/make_imgfs.exe) the change u've made with dump dir... and I dont think that u need to rename the nk.nba to .bak

Perasite 01-29-2007 02:04 PM

OK, I removed the .bak, so it is now a .nba again. This time the dumb_to_nba.bat seemed to work. No errors. When I look at the last modified time of the .nba file, though, it has not changed. Don't know if that is normal or not. I'm in the process now of converting it to an .nbf and then flashing it to my phone, so I will find out soon.

Bushrod 01-29-2007 02:37 PM

My modified time didn't change but my changes were in there.

Perasite 01-29-2007 02:43 PM

Well, that worked, thanks Helmi! I've now got my custom 3.3 ROM with integrated CF2 and the smartdialer fixed. I ran into a problem with the pic/vid fix, though. I added these two lines to the initflashfiles.dat:

Directory("\Windows\OEM"):-File("mfc80u.dll","\Windows\mfc80u.dll")
Directory("\Windows\OEM"):-File("msvcr80.dll","\Windows\msvcr80.dll")

I was trying to copy the mfc80u.dll and msvcr80.dll out of \Windows\OEM into the \Windows directory. Is that the proper syntax? My goal was to do:

pic & vid hang fix: copy mfc80u.dll and msvcr80.dll from windows/oem to the windows directory overwriting the ones there. (Sonny486)

as listed in the original "Get Helmi_c's AKU 3.3 RIGHT HERE" thread.

Edit: I think I got it backwards, don't I? It should be:

Directory("\Windows"):-File("mfc80u.dll","\Windows\OEM\mfc80u.dll")
Directory("\Windows"):-File("msvcr80.dll","\Windows\OEM\msvcr80.dll")

Is that correct?

colonel 01-29-2007 03:44 PM

Just rename the .dlls in the rom. Make mfc80u.dll into mfc80u.dll_ and so on and vice versa.

Once renamed, here is my flash file entry:
Directory("\Windows\OEM"):-File("mfc80u.dll_","\Windows\mfc80u.dll_")
Directory("\Windows\OEM"):-File("msvcr80.dll_","\Windows\msvcr80.dll_")

Perasite 01-29-2007 07:16 PM

Thank you, that worked perfectly. I'm about 90% done now, so I'll probably post tonight. I'll have the following built-in:
.Net CF2 SP1 (thanks to colonel)
pic/vid fix (thanks to colonel)
smartdialer fix
Total Commander
Clearview for PDFs and PPTs
PPT.exe removed
PHM + TRE Registry editors
Reset (soft reset program)
WM5torage 1.7
WMA Phone Profiles 1.2.1.329
Changed boot logo to my own, but you can change it using tools on this site to whatever you want.

Wanting to add:
PPC6700 Hacks program at trianglepowers.com

Wanting to possibly remove:
Voice dialer (then, some people don't use Voice Command, so may want this, thoughts?)

Thanks to Helmi_C, Mike, and Colonel for all their help in getting this together.

Edit: Ran into a problem with WMA Phone Profiles 1.2.1.329. It should have a today plugin, but all I was getting was the Control Panel icon. Worked on it all night, but ended up locking up my phone so it wouldn't boot the new ROM. I'm going to remove it today and then release what I have so far.


All times are GMT -4. The time now is 08:07 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0