• Welcome, Guest. Please login.
 

[Tutorial]Porting the ELFPack |The Real PortKit|

Started by NiKSY, May 02, 2008, 01:02:26 pm

previous topic - next topic

0 Members and 1 Guest are viewing this topic.

NiKSY

May 02, 2008, 01:02:26 pm Last Edit: August 11, 2010, 11:01:53 am by ZduneX25
TEMPORARY STICKY



All questions on porting the ElfPack - HERE!

For succesfull portation you need:
1. ADS ;for compilation. - download
2. PortKit_v1_0 + updates ;for portation - download
3. Bin Editor ;for cutting the empty bytes [You can use XVI32 - its free]
4. R?flash ; the CG1 of the firmware youre using (withouth the empty bytes on the end)
5. FB v3.06 ; for applying the patches
6. resman5.4pro ;not neccesary
7. Clean head and steady hands  ,\'-}

So here we go.... :)


.1 Make folder "PortKit" on disk "C:\" ;you can make it anywhere but this is the easiest way


.2 Extract files from archives ADS and PortKit_v1_0 into folder "C:\PortKit"


Before you start PortKit you should replace the libgen with a newer one, I recommend Macho's libgen :)(its updated regularly)
You should copy the libgen content into C:\PortKit\libgen folder :)


.2.1 Folder "arm" copy to root "C:\" ;thats the way it must be!


.2.1 Now! Control Panel/System/Advanced/Environment Variables/System Variables/ - Path - add ";C:\PortKit" (I say again, C:\PortKit is the easiest place)


.3 Further settings:
C:\PortKit\obj\sysinfo.c ; open with NotePad and set for your phone, example for E398:
Code Select
const char n_phone[]    = "E398";
const char n_platform[] = "LTE";
const char n_majorfw[]  = "R373";
const char n_minorfw[]  = "42R";



.4 Next:
C:\PortKit\make.cmd ; open with NotePad and look:
Code Select
@echo off
rem The target platform, change this to yours (LTE | LTE2 | V3i)
set PLATFORM=NONE

=> instead of NONE enter platform of your phone:
Code Select
(LTE | LTE2 | V3i)



.5 Now we need that reflash, actually the CG1.smg in folder "C:\PortKit" (extract it from reflash with SHX Codec)


.6 Rename CG1.smg to CG1.bin (or put the whole name of the firmware, important is to change the format to .BIN) ;


.7 Next, we make a new text document and put in it:
Code Select
make.cmd CG1.bin


.8 Save it in PortKit folder and name it run.bat (not run.bat.txt but run.bat)


.9 Double click run.bat ; If you did everything correctly you will get patches, elfloader, and Lib.o in build folder!

Hope you liked the tutorial, its mostly,but not completely, a translation of WhiteHotIce's tutorial from motofan ;)


Cheers!



NiKSY

Add me some karmaaaaa...It took me an hour to translate it into Serbian and english :P
Glad you like it :D

gayoe

yeah...i'll add you ++ N!kola.
although i've already know how to do it :P

why took you an hour to translate?
don't you get google translate? :D

NiKSY

Quote from: gayoe on May 02, 2008, 03:43:00 pm
yeah...i'll add you ++ N!kola.
although i've already know how to do it :P

why took you an hour to translate?
don't you get google translate? :D


Because google translation is always crappy and sometimes even lacks the meaning of the text translated... So I did it manually.. Slowly increasing my Russian language knowledge :)

Thanks rotten gayoe lol :)

alemurillo


juklitinov


54mmd13

May 03, 2008, 03:50:35 am #8 Last Edit: May 03, 2008, 04:53:13 am by [54mmd13]
NiKSY
thank you  ;)


------------------------------------------------------------------------
                                             next
------------------------------------------------------------------------

A question:

works well in Windows Vista?
I was looking
in control panel
this direction and found the back of neck
Control Panel/System/Environment Variables/System Variables/

Help!
I´m sammdie.:D

NiKSY

Soooorrry Samdie, I have no idea! I never used Vista so I dont know... Havent read anything on that neither... :(

Jithin

I'm late on this.. Thanks for the guide Niksy ;)

@[54mmd13],
Its there in Vista too.. Control panel --> System --> Advanced system settings --> Environment variables --> System variables

54mmd13

@ Jithin and NiKSY
Thank you for information
I wonder as I increase your karma?
+ + For you

I´m sammdie.:D

NiKSY

Quote from: [54mmd13] on May 21, 2008, 02:10:10 am
@ Jithin and NiKSY
Thank you for information
I wonder as I increase your karma?
+ + For you


Press the praise button (:
Thanks!

silentsnow31802

July 06, 2008, 11:52:03 pm #13 Last Edit: July 06, 2008, 11:57:36 pm by silentsnow31802
I tried this and got an error, does anyone know what I did wrong?
I took the CG1.smg off my phone both with and without empty bites and renamed it .bin and put it in the portkit folder, why is it saying not found?

http://i33.photobucket.com/albums/d63/silentsnow31802/error.jpg

NiKSY

July 07, 2008, 10:20:31 am #14 Last Edit: July 07, 2008, 10:22:08 am by NiKSY
From the picture I assume that you didnt set up all the folders and files...
Have you followed the tutorial through all steps? Check through them again (no affense afcourse)

*EDIT* I unstickied it... Has been there for enough time :)