• Home
  • Download
  • Links
  • Photoplog
  • Blowfish Secret
  • Base64
  • Wordpress Salt
  • Contact
  • ROM
  • Skins
  • VIP
  • Tutorial
Wckediden - Mobile Tricks and Tweaks Community  

Go Back   Wckediden - Mobile Tricks and Tweaks Community > Outdated Mobile Resources Community Channel - (Archived And Read Only) NO POSTING !!! Read Only > Support Center Forum > Mobile Article Review Tutorial > Tutorial Forum
Reload this Page [TUTORIAL] How To: Build your own Custom ROM
Wckediden
Register Forum Rules FAQ Community Today's Posts Search

Notices
Under Construction

WckedIDen Forum Renovations

WckedIDen is currently undergoing forum structure renovations. During this process, you may experience intermittent errors, unavailable pages, or temporary service interruptions.

Please be patient while we work to improve the forum. We appreciate your understanding and continued support.


Community Links
Social Groups
Pictures & Albums
Members List
Meet Our Staff
Search Forums
 
Tag Search
Advanced Search
Search Downloads
Advanced Search
Search Links
Advanced Search
Find All Thanked Posts



Post New ThreadReply
 
Thread Tools Search this Thread
  #1  
Old 08-29-2009, 01:30 PM
jr5416's Avatar
jr5416 jr5416 is offline   Thread Starter  
Supporter/Designer
Mobile Model: TOUCHpro2
Mobile Carrier: Sprint
Mobile OS: 7.0

 
Join Date: May 12th, 2008
Location: Hammonton, Nj
Posts: 3,254
Downloads: 0
Uploads: 0
jr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuff


View jr5416's Profile   Edit Options Edit Profile Picture View jr5416's Photo Album Add jr5416's to Your Contacts Show Groups Edit Avatar Subscribed Threads Private Messages
Default How To: Build your own Custom ROM

First let me say that Im a novice at this, so take what I have said below with a pinch of salt. As its all done from my head and not recreating the steps myself. And if anyone wants to correct me on any point that Im wrong, feel free to do so. I took a simple method in which you had to use the command prompt and made .bat files to enter everything for ya. So this makes it quicker and easier than having to remember that to decode you use the command "prepare_imgfs.exe nk.nba -nosplit" and so on. I will post the advance/command prompt method when I get time. Big thanks always goes out to XDA-Developers, Buzzdev.net, and all others who helped in creation of these tools used. Detailed credits and links on the installer.
Have fun!
Mike

Note: You will need both parts of my custom package attached. And you have to be logged in to see and download the files.


Files you need to work on and how to get them.

1. You will need to download the Custom ROM package I put together. It includes almost every tool that I myself personally use in the making of my Custom ROM and other development tools. Once you have downloaded the package, extract the .exe file from the .zip. Run the .exe. This will create a new folder located at C:\Custom ROM Tools. It will also place a shortcut to the folder on your desktop.

2. Now we have the toolkit you can begin work. You will need a Offical (and/or unoffical) ROM and/or complete upgrade package. You can download that from the UTStarCom site.

3. Install winrar (located in the Apps folder) if you dont have it installed already. Extract the .exe downloaded by right-clicking on it and extract anywhere you like. (Just remember the location )

4. Once extracted you will have a folder that contains two folders. One will have 3 files in it. (nk.nbf, ms_.nbf, and radio.nbf) The two you want are the nk.nbf (the core OS) and the ms_.nbf (the ExtROM).

Decoding the .nbf to a .nba.

1. To decode you .nbf to a .nba open the Custom ROM Tools folder and cut and paste your nk.nbf into the 1. De-Encode .nbf folder.

2. Run the HTC64 Tool, select Decode. In the browse box find the nk.nbf. Click next, It will give you a warning that you CAN ignore. On the next screen, in the FAT16 File box, change the extension from .fat to .nba. Then click decode. This will decode the ROM to a nk.prj (Project File) and a .nba file which can be dumped.

3. Now you wanna cut you nk.nba from this folder and move over to the folder named 2. IMGFS Tools. Once you have the nbf in the folder you can run the nba_to_dump.bat. This will convert your nbf file into a DUMP folder. This folder contains both files (ones not in folders) and modules (the ones in folders). You can modify this folder as needed for your custom Rom.


Modifing the registry (hv files)

1. You have 3 main files that contain registry entries. (boot.hv, default.hv, and user.hv) boot.hv has been included (XIP Tools folder). The other two you can retreve from the DUMP folder. Make sure you set your folder options to view hidden/system files. Boot.hv is loaded on first boot I do believe and contains HKLM values. Default.hv also contains values for HKLM. User.hv contains values for HKCU. These files have to be as close to matching in values as possible. If one says it then the other should also.

2. Converting the files to txt files to edit. To do so just place whichever you would like to work on, in the folder named 3. HV Tools. Run the appropriate *blank*_hv_to_txt.bat and it will convert it to a txt file, that can be edited.

3. Once you have the txt file, open it and add the following line to the very top. "REGEDIT4" no quotes. And save as a unicode file. If the txt moves and becomes unformatted, disregard the txt file and start over. I would add the line to the top and save as unicode first BEFORE modifing the file, to cut down on issues.

4. Edit the file as you like.

5. Then just run the correct make_*blank*_hv.bat and this will convert it back into default.hv and so on.

6. To replace, just cut and paste it back into the DUMP folder with the exception for boot.hv. To replace/edit this one, go to step 7. Note: Dont go to step 7 until you have recompiled your DUMP folder back into a nk.nba file.

7. Editing/Replacing the boot.hv and boot.rgu (both have to be matching files) In folder 4. XIP Tools you will find the files boot.hv and boot.rgu. If you wanna modify your boot.hv then you can right click on boot.rgu, edit it as you like, and save. The boot.rgu then can be converted to a boot.hv by running make_boot_hv.bat. To replace these files, place your nk.nba into the the XIP Tools folder and run the Replace&AddBootXIP.bat. This will replace both files for you.


Setting up file flash directories. (Creating new folders....etc.)

1. You will need to find the file names initflashfiles.dat

2. Open the file with notepad and add any .lnks or new folder directories you want here.
Code:

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

Would add a link to pocket chess to the games folder.

3. After editing, just click file/save.

4. Install Hex Workshop Trial if you havent already. Open initflashfiles.dat in the hex editor. The first 4 digits should say FFFE or something like this. Highlight those first 4 numbers and right click and delete. This is the header written in by notepad. This HAS to be removed for you initflashfiles.dat to work correctly. Then save.

5. Replace the original file with the modified version.


Rebuilding your nk.nbf from your modified DUMP folder.


1. After you are finished with all the above (minus replacing the boot.rgu and boot.hv) and have a "finished" product. You can run the dump_to_nba.bat which will convert your modified DUMP folder back into a working nk.nba file.

2. Now to convert back to a nk.nbf. To do so, just take ur newly created nk.nba and move it over to folder labeled 1. De-Encode nk.nbf. Run HTC64 Tool and select Encode. It will ask for the .prj file. Open it and press encode. You may get a overwrite warning....just ignore and click ok.

3. You now have a nk.nbf thats ready to be flashed onto your device.

Changing bootscreen.

1. copy your nk.nba file into the directory 5. BootScreen, then rename to nk.fat.

2. Run patchlogo.exe, select nk.fat in the first dialog and your preferred .nb file in the second. Note: If you have a 320X240 image you would like to use, you can use the nb_image_converter_859_418.exe to create a custom .nb file

3. Rename the nk.fat back to nk.nba and convert back into a nk.nbf.


Flashing your newly made nk.nbf.


1. Take the nk.nbf and move to the 6. Flash folder. Once there connect your device to the PC in bootloader mode.

2. Run MaUpgradeUt_noID.exe and wait! Your almost there.

3. After it upgrades, Hard Reset. And voila your own Custom ROM!


Making a flashable ExtROM.

1. Take the ms_.nbf we extracted in the beginning and decode using the HTC64 Tool. This time instead of changing the file extension from .fat to .nba we are gonna leave it as a .fat file.

2. Install Extra Drive Pro Trial, if you havent done so already. Now in Extra Drive Pro. Select the option to make a file to drive. In the panel open up the ms_.fat we just created. This will mount the .fat to a editable drive.

3. Open the drive, you will see a folder that says something like TFAT_SOMETHING. Open it and add your cabs and config.txt here making sure that it is READ-ONLY!

4. Close/unmount the drive.

Other Info.

You can use the included app Resouce Hacker to edit .exe and .dll files. Important if your gonna be replacing icons of programs.

WinCE Cab Mgr is included so that you may learn how to build/make your own .cab files. Can also be used to extract the contents of .cabs.

5. Reconvert back into a ms_.nbf using the HTC64 Tool. Drop it in the flash directory and run MaUpgradeUt_noID.exe. Or you could place both the ms_.nbf and the nk.nbf in the flash directory and flash both at the same time.

Original Link:

Code

http://forum.ppcgeeks.com/showthread.php?t=1904
Attached Files

You can't view or download attachments from this post before you thank it.Click Here for more information.

Reply With Quote
The Following 7 Users Say Thank You to jr5416 For This Useful Post:
Show/Hide list of the thanked
jr5416
View Public Profile
Find all posts by jr5416
  #2  
Old 08-29-2009, 02:10 PM
jdep1's Avatar
jdep1 jdep1 is offline    
Designer
Mobile Model: tmobile wing
Mobile Carrier: tmobile
Mobile OS: 6.5

 
Join Date: March 16th, 2009
Location: el paso, tx
Posts: 155
Downloads: 0
Uploads: 0
jdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuff


View jdep1's Profile   Edit Options Edit Profile Picture View jdep1's Photo Album Add jdep1's to Your Contacts Show Groups Edit Avatar Subscribed Threads Private Messages
Default Re: How To: Build your own Custom ROM

i had tought about throwing this post a while back but im too lazy to write all that lol.. but you did a great job! it should help many out there that are not satisfied with the Rom's that are out there
Reply With Quote
jdep1
View Public Profile
Find all posts by jdep1
  #3  
Old 08-29-2009, 02:25 PM
jr5416's Avatar
jr5416 jr5416 is offline   Thread Starter  
Supporter/Designer
Mobile Model: TOUCHpro2
Mobile Carrier: Sprint
Mobile OS: 7.0

 
Join Date: May 12th, 2008
Location: Hammonton, Nj
Posts: 3,254
Downloads: 0
Uploads: 0
jr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuffjr5416 Knows Their Stuff


View jr5416's Profile   Edit Options Edit Profile Picture View jr5416's Photo Album Add jr5416's to Your Contacts Show Groups Edit Avatar Subscribed Threads Private Messages
Default Re: How To: Build your own Custom ROM

“ Originally Posted by jdep1 View Post ”

i had tought about throwing this post a while back but im too lazy to write all that lol.. but you did a great job! it should help many out there that are not satisfied with the Rom's that are out there
Hey well stop being so lazy and post bro lol,Dash told me once just post whats out there someone will benefit from it may not be u but someone will so post alot of things that i know Wckediden members will enjoy .
Reply With Quote
jr5416
View Public Profile
Find all posts by jr5416
  #4  
Old 08-29-2009, 03:27 PM
jdep1's Avatar
jdep1 jdep1 is offline    
Designer
Mobile Model: tmobile wing
Mobile Carrier: tmobile
Mobile OS: 6.5

 
Join Date: March 16th, 2009
Location: el paso, tx
Posts: 155
Downloads: 0
Uploads: 0
jdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuffjdep1 Knows Their Stuff


View jdep1's Profile   Edit Options Edit Profile Picture View jdep1's Photo Album Add jdep1's to Your Contacts Show Groups Edit Avatar Subscribed Threads Private Messages
Default Re: How To: Build your own Custom ROM

“ Originally Posted by jr5416 View Post ”

Hey well stop being so lazy and post bro lol,Dash told me once just post whats out there someone will benefit from it may not be u but someone will so post alot of things that i know Wckediden members will enjoy .
lol i know what you & dash mean.. i think its great that we got this posted here that way the newb's don't have to go to other forums to look for this info like i did..
Reply With Quote
jdep1
View Public Profile
Find all posts by jdep1
  #5  
Old 08-29-2009, 03:31 PM
GokuSS3's Avatar
GokuSS3 GokuSS3 is offline    
Supporter
Mobile Model: HtC ToUcH PrIzZo 2
Mobile Carrier: T-Mobile
Mobile OS: 6.5

 
Join Date: June 2nd, 2008
Location: Cali
Posts: 2,793
Downloads: 0
Uploads: 0
GokuSS3 Knows Their StuffGokuSS3 Knows Their StuffGokuSS3 Knows Their StuffGokuSS3 Knows Their StuffGokuSS3 Knows Their StuffGokuSS3 Knows Their StuffGokuSS3 Knows Their StuffGokuSS3 Knows Their StuffGokuSS3 Knows Their StuffGokuSS3 Knows Their StuffGokuSS3 Knows Their Stuff


View GokuSS3's Profile   Edit Options Edit Profile Picture View GokuSS3's Photo Album Add GokuSS3's to Your Contacts Show Groups Edit Avatar Subscribed Threads Private Messages
Default Re: How To: Build your own Custom ROM

Thanks for the post this is basic for making a custom rom. Will need to do a whole more reading than this lol....
Reply With Quote
GokuSS3
View Public Profile
Find all posts by GokuSS3
Post New ThreadReply

Tags
build, custom, rom

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Thread Tools
Show Printable Version Show Printable Version
Search this Thread

Advanced Search
Donate Via PayPal
Amount:
Enter Short Message:
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apple’s newest custom chip could be an own goal for the iPhone 17 phillynews215 Digital Scoop 0 12-13-2024 03:43 AM
Another big brand could soon reveal its own custom smartphone chip phillynews215 Digital Scoop 0 11-26-2024 05:20 AM
Kaos's **** Sprint Custom rom Build 420 kaos Windows Mobile - COOKED ROM RELEASES 267 03-22-2009 04:23 PM
Kao's **** Sprint Custom Rom Build 420 Video kaos Society Cell Talk 3 03-27-2008 06:25 PM
Kaos's **** Sprint Custom rom Build 420 kaos PPC 6800 Questions 3 03-26-2008 03:51 AM


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

Wckediden Community - Archive - Privacy Statement - Terms of Service - Top


Powered by vBulletin® Version 3.8.14
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Template-Modifications by TMS
POWERED BY PHILLYFINESTSERVERSTAT FOR WCKEDIDEN|- NEXTELELITE| - PPCTHEME| - IDENINSIDER