Moto Hell - The Motorola Modding Community
April 24, 2024, 07:03:42 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The forum is no longer active and registration is disabled; however you can still fetch everything as guest.
 
   Home   Help Facebook Search Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: [REQ] Port Elf to Rainbow POG  (Read 4726 times)
enslaved
Guest
« on: September 10, 2009, 03:53:32 am »

does anyone port elf on e398 to v3x?
Logged
ZduneX25
Horrors fan :)
Global Moderator
Lord of the mod
*****

Karma: 267
Offline Offline

Posts: 3063


I've missed something


View Profile WWW
« Reply #1 on: September 10, 2009, 08:11:26 am »

Maybe you mean this one:

PortKitTutorial   by thecor3
How-to use the PortKit.
Needed things

First of all, we need:
  • GCC for M*Core (check repository for win32 version, to install GCC extract the archive and add the path to gcc's bin dir to "PATH" environment var)
  • portkit.php or .exe (check repository)
  • functions.pat (check repository)
  • RSA free CG1 from the firmware in which you intend to use the elfloader (named in this tutorial CG1.smg)
  • ElfLoader source code (check repository)
  • ElfLoader Spawner source code (check repository)

Let's start

Put portkit.exe or .php and functions.pat in the same folder of CG1.smg.

Execute one of these commands:
  • portkit.exe -sf functions.pat CG1.smg if you are in win
  • php ./portkit.php -sf functions.pat CG1.smg if you are in linux

Then run the created file and a file named newlib.sym will be created.

Open the file and check the all functions have been found, if not you will have to look for them.
Porting ElfLoader Spawner

In the portkit dir execute:
  • portkit.exe -fl newlib.sym
  • php ./portkit.php -fl newlib.sym

Copy functions.asm into elf_loader_spawner\SDK.

Open CG1.smg and check where the file ends and you want to put the ElfLoader Spawner code, for example, if file end is located at 0x1145AB6F you will have to write into linker.ld this code:

Code:
INPUT(main.o functions.elf)
OUTPUT_FORMAT("binary")
ENTRY(_main)
SECTIONS
{
  . = 0x1145AB70;
  .text :
  {
    *(.text)
  }
}

Now go into elf_loader_spawner, compile the elf_loader_spawner and paste the content of "out.bin" at the address you wrote in linker.ld.

Copy portkit into elf_loader_spawner and run:

portkit.exe -install cg1.smg ADDRESS_OF_SPWNER (example: 1145AB70)
Porting ElfLoader


As for the spawner copy functions.asm into elfloader\SDK then goto elfloader and compile it, ElfLoader is ported.
End

The last thing you have to do is to rename newlib.sym to library.def and upload library.def & ldr.bin to /a/ into your mobile, then flash the modified CG1 and you will have the elf loader running!


http://rainbowelfloader.googlecode.com/svn/trunk/
« Last Edit: September 10, 2009, 08:13:33 am by ZduneX25 » Logged

Z.d.u.n.e.X's Stuff: Personal Site | My skins
enslaved
Guest
« Reply #2 on: September 11, 2009, 04:52:00 pm »

aw aw aw great tutor z, ur my best friend add your buddy now n give u ++
how about the aplication of the elf n library too?same like e398
Logged
ZduneX25
Horrors fan :)
Global Moderator
Lord of the mod
*****

Karma: 267
Offline Offline

Posts: 3063


I've missed something


View Profile WWW
« Reply #3 on: September 12, 2009, 06:29:34 am »

now n give u ++

no you didn't yet Tongue

how about the aplication of the elf n library too?same like e398

yeah I think so Wink
« Last Edit: September 12, 2009, 07:51:28 am by ZduneX25 » Logged

Z.d.u.n.e.X's Stuff: Personal Site | My skins
enslaved
Guest
« Reply #4 on: September 17, 2009, 08:05:05 am »

Wew sorry i'm forgot to pres praise thx again n very2 thanks.now i will pres it
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Design By Forum Hosting
Powered by SMF 1.1.21 | SMF © 2015, Simple Machines