PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Titan Development (http://forum.ppcgeeks.com/forumdisplay.php?f=57)
-   -   How to use BaseKits (http://forum.ppcgeeks.com/showthread.php?t=18330)

pixelwix 02-11-2008 11:50 PM

How to use BaseKits
 
So I know a lot of people have been asking for this…. So here it is.

Step 1:
Download the Basekit version of your choosing from
ftp://up.ppcgeeks.com/Titan/Users/No2Chem/

Step 2:
Download the Basekit tools from
ftp://up.ppcgeeks.com/Titan/Users/Pixelwix/

Step 3:
Extract all of the files from both downloads into the same folder.

Step 4:
Add your own oems into the oem folder.

Step 5:
Click BuildOS.exe and select all the applications or hacks you want to build into the rom, and click the run button when your done.

Step 6:
Click BuildIt.bat, this will take all the files and what not and turn them in to RUU_signed.nbh in the RUU folder.

Step 7:
Flash your new rom by running ROMUpdateUtility.exe in the RUU folder.

Things that might and will go wrong , when you add an oem and it might say file already exits, more than likely said file is going to resides in the \OEM\OEMAPPS folder. What I do is if its an image file I delete the image file from the OEMAPPS folder because obviously I want the image that’s coming with the oem. If it’s a .dll or other system file then you need to figure out if the one you’re trying to replace it with is going to be better or newer than the one that’s in the OEMAPPS folder. (This where it gets tricky!!!)

azclown 02-12-2008 11:36 AM

So where are the files and folders that control the carrier? I see bits and pieces here and there that have Sprint in them.... Not sure what I can and cannot delete....

pixelwix 02-12-2008 12:02 PM

it will be in the OEMAPPS Folder

vossco32 02-12-2008 06:20 PM

Thanks for the post, now I finally have my VZW rom based on No2Chem's basekit! I removed all of the sprint stuff from OEMOPERATORS and OEMAPPS and then used the Carrier Customizations from DogGuy's Kitchen and everything seems to be working like a champ.

Thanks again

[sammich] 02-12-2008 10:35 PM

DANG IT! I CANT GIVE DOUBLE REP... THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU


And you're avatar's hair is very sexy lol

JimSmith94 02-13-2008 12:39 AM

I saw talks in other threads about saving and using the os.nb file after running prepit.bat on the nbh file in DogGuy's kitchen. I just followed your instructions, burned the resultant RUU_signed.nbh to my phone, and so far it seems to work great.

Am I correct that the nk.fat in the basekit is the OS, and os.nb is not needed anymore? That seems to be the case, otherwise my phone wouldn't have booted. ;)

pixelwix 02-13-2008 01:32 AM

Quote:

Originally Posted by JimSmith94 (Post 184986)
I saw talks in other threads about saving and using the os.nb file after running prepit.bat on the nbh file in DogGuy's kitchen. I just followed your instructions, burned the resultant RUU_signed.nbh to my phone, and so far it seems to work great.

Am I correct that the nk.fat in the basekit is the OS, and os.nb is not needed anymore? That seems to be the case, otherwise my phone wouldn't have booted. ;)

yup your right nk.fat is the same as os.nb

one thing that i did see in the new basekit is that welcome96 image file is missing from the kit so when you build you rom the screen is going to be white instead of the windows mobile 6.1 screen, just let it boot till you hear the alert sound, then just tap the screen to get to the screen calibration.

JimSmith94 02-13-2008 02:36 AM

Quote:

Originally Posted by pixelwix (Post 185048)
yup your right nk.fat is the same as os.nb

one thing that i did see in the new basekit is that welcome96 image file is missing from the kit so when you build you rom the screen is going to be white instead of the windows mobile 6.1 screen, just let it boot till you hear the alert sound, then just tap the screen to get to the screen calibration.

Thanks for the confirmation. :) I noticed that welcomehead.96.png was missing too. I just copied it from another kitchen. It's in SYS\Redist_dpi_96_resh_240_resv_320.

dishe 02-26-2008 02:28 AM

Re: How to use BaseKits
 
May just be me, but this seems like an oversimplification.
No2chem himself says:
"IMPORTANT! You must download the regular rom too and extract os.nb from the nbh to build or else you will be using the wrong XIP!"

Also, certain OEMs contain modules that need to be moved in order to prevent memory overlaps. For this you must use the Greloc program.

I might work the way you're describing, but it seems like there's some more details that might be important.

blazingwolf 02-26-2008 06:56 PM

Re: How to use BaseKits
 
Quote:

Originally Posted by dishe (Post 194035)
May just be me, but this seems like an oversimplification.
No2chem himself says:
"IMPORTANT! You must download the regular rom too and extract os.nb from the nbh to build or else you will be using the wrong XIP!"

Also, certain OEMs contain modules that need to be moved in order to prevent memory overlaps. For this you must use the Greloc program.

I might work the way you're describing, but it seems like there's some more details that might be important.

No2Chem changed how he does his ROMs. You can no longer extract the .nb file and get it to work.

Betis21 02-26-2008 06:58 PM

Re: How to use BaseKits
 
Can anyone help me with this please!! I wanted to find out if there was a software for my Mogul HTC to be able to view Youtube videos? Thanks!!!

lafester 02-26-2008 07:27 PM

Re: How to use BaseKits
 
Quote:

Originally Posted by Betis21 (Post 194746)
Can anyone help me with this please!! I wanted to find out if there was a software for my Mogul HTC to be able to view Youtube videos? Thanks!!!

LOL.

that was just a little off topic!!

to answer your question... yes there is.

biglcny 03-03-2008 12:08 AM

Re: How to use BaseKits
 
Quote:

Originally Posted by pixelwix (Post 183887)
Step 2:
Download the Basekit tools from
ftp://up.ppcgeeks.com/Titan/Users/Pixelwix/

The basekit tools are not present in this folder on the ftp site anymore. Does anyone have it or could re-upload it?

Thanks

biglcny 03-04-2008 11:13 AM

Re: How to use BaseKits
 
Quote:

Originally Posted by biglcny (Post 200255)
The basekit tools are not present in this folder on the ftp site anymore. Does anyone have it or could re-upload it?

Thanks

Bump - No one has this?

l33tlinuxh4x0r 03-04-2008 10:35 PM

Re: How to use BaseKits
 
I am also looking for basekit tools and it is missing for me too.

[sammich] 03-04-2008 10:41 PM

Re: How to use BaseKits
 
1 Attachment(s)
Wow... Idiot me didn't realize it was sitting on my desktop!

here you go

speedygraphixink 03-05-2008 10:50 AM

Re: How to use BaseKits
 
thanks for the zip. i too was looking for it.

biglcny 03-05-2008 12:33 PM

Re: How to use BaseKits
 
Thanks Saumaun! DCD's kitchen always overides alot of regedits I have in my personal oem package despite setting the guid to almost all f's. I've been dying to try to create my own kitchen.

five40 03-07-2008 02:00 AM

Re: How to use BaseKits
 
I keep getting "NBMerge.exe has stopped working" errors when I run buildit.bat
what am I doing wrong?

JimSmith94 03-07-2008 02:07 AM

Re: How to use BaseKits
 
Quote:

Originally Posted by five40 (Post 205904)
I keep getting "NBMerge.exe has stopped working" errors when I run buildit.bat
what am I doing wrong?

I'm getting that with No2Chem's basekit 5051. I never got it before, so I think it's something with this particular basekit.

OffUrRcker 03-07-2008 02:14 AM

Re: How to use BaseKits
 
Yes, it's a problem with the restructured partition table No2Chem uses. Many people have asked, in his thread, but nobody has responded to any questions about the partition table, so we do not know how to build roms from baskekits until No2Chem responds to someone. Literally, like 11 people have asked. Everyone just ignores us.

NexVision 03-07-2008 10:19 AM

Re: How to use BaseKits
 
It's not a question of ignoring you guys its a matter of the process being a major pain in the *** and with nothing set in stone right now it is not worth the effort to make the tools and teach people the methods when it can change at any moment as things are being experimented with. no2chem has released a super clean version with UC installed so u can customize it. I have also created fully loaded roms also with UC which are based off of 5051 as well to give u guys more options. Oh yeah and since u guys are giving no2 so much slack has anyone tried ripping dcd's latest you have no luck there either and he did that well before no2. SO BASICALLY BE PATIENT EVERYTHING WILL BE IN YOUR HANDS WHEN IT IS READY.

OffUrRcker 03-08-2008 01:38 AM

Re: How to use BaseKits
 
Uhm DCD releases his builds as kitchens as well, so why would anyone have tried to unpack the rom and create one themselves? I have 2.3.2 running on my phone right now, I used the kitchen and applied the vzw customizations, this is my issue, it's why I can't just install no2's rom, and I need to create a kitchen.

SiGGy 03-08-2008 01:45 PM

Re: How to use BaseKits
 
I started to work with no2chem on the issue but still have some lose ends I'm still trying to piece together.

The files I'll be referring to are "nk.fat" (orignal image) and the "os.nb.payload" (new image).

In those files the partition info ends at 0x200. The "55-AA" you will see is the end of sector terminator.
Partitions are done in 16 byte segments. Split them up (as I did below) But for now just contentrate on the last 8 bytes.

The last 8 bytes are split into two segments. 1st segment (4 bytes) is the sector offset. 2nd (4 bytes) is the total size of the partition.


Here's an example from the 5050 ROM.

**NOTE** All of partition data is little-endian! So for example 3e-51-01 is really 01-51-3e in terms of being a real number. If you don't know what that is you shouldn't be trying to fix this.


Code:

nk.fat (original)        sector start    size of part.
------------------------------------------------------
00 02 01 19 23 3f 01 33  02 00 00 00    be 0c 00 00
00 00 01 34 25 3d 41 c0  c0 0c 00 00    00 60 00 00
00 00 00 00 00 00 00 00  00 00 00 00    00 00 00 00
00 00 41 c1 04 3d c1 30  c0 6c 00 00    3e 51 01 00


The 4 Partitions are in order from top to bottom.

[xip1] - [imgfs] - [blank] - [storage]

Here's a example of a *broken* .nb file created that errors on NBmerge.
Code:

os.nb.payload              sector start    size of part.
--------------------------------------------------------
00 02 01 19 23 3f 01 33    02 00 00 00    be 0c 00 00
00 00 01 34 25 3d 81 3c    c0 0c 00 00    42 7e 00 00
00 00 00 00 00 00 00 00    00 00 00 00    00 00 00 00
00 00 41 c1 04 3d c1 30    c0 6c 00 00    3e 51 01 00

The all 00's partition is null (empty) ignore it.

Partition starting sectors are based on the size of the previous partition.

For example look at partition 1 it starts at sector "02" and has a size of "0cbe".
So in base16 02+0cb3=cc0. Note the starting sector for partition 2 is "0cc0" as it should be.

1st thing that I notice here is look at the starting sector for partition 4. It's wrong (if the partition 2 size is correct)
You can see based on the original ROM the sector start data just got moved across.

The starting sector for partition 4 should be partition 2 sector start + partition 2 size. Or ...

0cc0+7e42=8b02

So the starting sector for partiton 4 should 8b02 (or 028B little-endian)

I've tried this and it doesn't fix it. While the error goes away with nbmerge...

Code:

Partition 0: start sector: 0x00000002, total: 0x00000cbe
              first used: 0x00000002, used:  0x00000929
Partition 1: start sector: 0x00000cc0, total: 0x00007e42
              first used: 0x00000cc0, used:  0x00007e29
Checking OS.nb for bad NAND block marker
Checked 0x8b02 sectors successfully!
Done.

The 4th partition doesn't show up.

So perhaps it's a fixed size for partition 4 and now it's out of bounds because partition 2 is larger. So subtract the difference between them.

Original size for partition 2= 6000 new size = 7e42.

7e42-6000=1e42

So subtract size difference from partition 4 (01-51-3e) ...

1513e-1e42=132FC

I tried this as well... no luck.



This leads me to believe that the partition 2 size is incorrect. Or perhaps I need to adjust the starting CHS values and ending CHS values in the 1st 8 bytes of the partition header. You can see that it does change for partition 2 when it grows above.


I've only had 2 hours or so to screw around with this so far this week... I'll try again tonight. (I had family visiting at my house all week; I finally have free time now... well after I'm done shopping with the wife today. I'm getting yelled at to leave now)


I used these links to reference partition header information.

http://mirror.href.com/thestarman/as...PartTables.htm
http://ata-atapi.com/hiwtab.htm

p.s.

no2chem I was trying to send you a PM with this info but your mailbox is full ;)

SiGGy 03-08-2008 09:23 PM

Re: How to use BaseKits
 
Hmm, no comments... I was hoping to screw with this again tonight but we have guests comming over now :( boo... If anyone has any input I'd love to hear it. Perhaps no one is reading this thread.

vetvito 03-09-2008 04:03 AM

Re: How to use BaseKits
 
I was going to look in to it, but I have a Statistics Class, so I don't want to look at anymore numbers. Quick Fix, use DCD xip.

SiGGy 03-09-2008 11:56 AM

Re: How to use BaseKits
 
Quote:

Originally Posted by vetvito (Post 208080)
I was going to look in to it, but I have a Statistics Class, so I don't want to look at anymore numbers. Quick Fix, use DCD xip.

Ya, or just use DCD kitchen...

a1jatt 03-09-2008 12:29 PM

Re: How to use BaseKits
 
filler
filler

SiGGy 03-10-2008 08:50 AM

Re: How to use BaseKits
 
Quote:

Originally Posted by vetvito (Post 208080)
I was going to look in to it, but I have a Statistics Class, so I don't want to look at anymore numbers. Quick Fix, use DCD xip.


I do love my Saturday statistics classes :rolleyes:

I was hoping someone else would have chimed in with how to fix it by now; showing me what I was missing. Sarcasm runs high around here I guess... I honestly haven't had much time to mess around with it.

Interesting the DCD XIP would fix it. I haven't tried that; I just used DCD's kitchen instead when I ran out of time to mess with it.

I didn't gather no2chem knew exactly what was going wrong with the imgfstools at the time when I asked him either...

jeepers128 03-10-2008 01:30 PM

Re: How to use BaseKits
 
What Kitchen does No2Chem use to make his? He has to start somewhere.

biglcny 03-11-2008 10:58 AM

Re: How to use BaseKits
 
Quote:

Originally Posted by jeepers128 (Post 210123)
What Kitchen does No2Chem use to make his? He has to start somewhere.

He makes his own using the basekit tools just like we have to... The difference here is that he made a change to the partition tables in his basekit that increases performance. Unfortunately the current tools cannot handle this change. Therefor everytime he cooks a rom he has to manually fix the rom during the building process. Until new tools are developed to beable to swing this, we are just gonna have to deal with it.


All times are GMT -4. The time now is 04:24 AM.

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


Content Relevant URLs by vBSEO 3.6.0