OK so i actually compiled everything but the helloworld program still doesn't work but it compiles... also i will tell you how to make an FPA ELF patch for *any* CG1 of a RSA removed motorola MP. The patch would have to applied manually cause as Bullfrog said it patches something beyond the normal CG1.
First download the following :
1. ADS
2. PortKit
3. MotoSDK 1.0a
4. GNUARM (optional alternative way i found of compiling useful if working from Linux)
Follow this procedure then
- create a folder in root of C as PortKit (u can choose any)
- extract SDK folder form MotoSDK into C:\PortKit
- All files from ADS (the exe's and dll's ) into C:\PortKit
- Copy the arm folder from the ADS archive into c. so u should have c:\arm . This need not contain the exe's and dll's
- Extract PortKit into c:\Portkit
- Add to the PATH variable C:\Portkit
? ->
http://www.computerhope.com/issues/ch000549.htm[/list]
OPTIONAL way setting up GnuArm
- Install Gnuarm from gnuarm.com
- Search for include folders in the Gnuarm install directory. There should be two of them. Copy header files from SDK folder in motoSDK to both
- Compile with arm-elf-cpp
Creating FPA patches for any firmware.
- Split the firmware using ShxCodec.
- Copy the CG1 into the PortKit folder and rename it to CG1.smg
- Edit make.cmd file with notepad search for 'set PLATFORM = NONE'. Replace none with your phone type e.g. E398 would be LTE L7 would be LTE2 and a special one for V3i
- Edit file c:\PortKit\obj\sysinfo.c with notepad. There replace the default settings with your phone settings. Remember if you are not aware of programming then do not delete the semi-colon at the end and also make sure the text is within the double quotes
- Goto Start -> Run -> cmd. In the console type
cd c:\Portkit
make.cmd CG1.smg
[/li]
- Now in the build folder u will have the two fpa patches Register.fpa and elfpack.fpa Also u will have elfloader.lib and lib.o. Copy the elfloader.lib and lib.o into b/elf on your phone
- For compiling u need to keep the lib.o
I have tried to make this as simple and correct as possible... please correct if there is anything wrong.
Regards