Tutorials

Thanks to kidscracker here is a great tutorial about compilling applications for E2 phone in Windows environment. Check it out at The Moto Hell Forums

And the downloads:
Download dev_ezx

Huge thanks to cherr from motofan.ru for that tutorial!

The Java Heap size on Motorola ROKR E2 is controlled by the following file:
/ezx_user/download/appwrite/setup/ezx_system.cfg

Download this file and edit it with Notepad. Find the line which says "JavaHeapSize = 4". Now you can change that number from 1 to 6. They corresponds to:
1 - 512 KB
2 - 768 KB
3 - 1024 KB
4 - 2048 KB (default)
5 - 4096 KB
6 - No limit

Here is an example picture for "JavaHeapSize = 5":
Motorola ROKR E2
You can download 4MB heap config file directly HERE

Changing the bootscreen picture tutorial by lelvisl

 

We appologise in advance for the bad translation

You need:
SBFCodec
XVI32
SBF file for E2
RSD
240x320 GIF

Let's start:

1. Unpack the firmware with SBFCodec
Click on Open

Motorola ROKR E2 

You will see all SMG files extracted.

Motorola ROKR E2

Get CG39 and delete the others

Motorola ROKR E2

Copy the GIF files in that folder

Motorola ROKR E2

Rename the gif file like shown below:.

Motorola ROKR E2

Open the file with Win Hex
Check if the start is with 47

Motorola ROKR E2

Go to Edit->Insert string. Choose Hexstring, mode FF, and type $800

Motorola ROKR E2

Save it. Open the original file in the 39 folder with XVI32
Insert the string at the end of the file
You can see that at the end there are many FF values and then you will see digits. In text mode you will be able to see words. Select and use Edit->Clipboard->Copy as Hex String as shown on the screenshot

Motorola ROKR E2

Go back to the modified file and at the end go to Edit->Insert String. Paste the copied string. The value $800 change to $1 and press OK 

Motorola ROKR E2

The rest to the end of the file can be deleted like shown in the image below

Motorola ROKR E2

Go to Tools and choose Overwrite. Choose G (code 47 in hex)

Motorola ROKR E2

Place FF 8000 times before. To do this go to Edit->Insert String. Value should be FF, $8000. Save file.

Motorola ROKR E2

The problem that comes is that the file should be exactly 131*072 bytes. For that before G(47) insert FF's as many times as needed to make the size exactly 131*072 bytes. Remove the original file and save the new one. Back in SBFCodec remove everything except RDL3 and CG39

Motorola ROKR E2

Choose CG39 and Replace. Compille and flash with RSD Lite

Information from dimichxp @ motofan.ru!

Q: What is managing the CPU frequency on E2?
A: That is the daemon called AMPD trough ipm functions of the kernel in linux-2.4.17/arch/arm/mach-ezx/dvfs.c

Q: Can I change the CPU frequency?
A: Yes. In the standart there are three default levels - 104 Mhz, 208 Mhz and 312 Mhz. Increasing the voltage will provide more Mhz

Q: How can I do it?
A: The start of the array of structure ipm_config is on 0x46a8. You can modify yourself or use the preconfigured ampd below

Q: I changed the file. Now how do I apply the change on the phone?
A: The file is read-only and you cannot directly replace it. The first variant is to modify it within the code groups and flash your phone. However there is much faster and easier variant - to apply the change each time the system boots (that way it is very easy to reverse back). First copy the new ampd file in /ezxlocal. After that edit your startup file (/ezxlocal/startup_test.txt in TheOneb2) and add the following lines:
             #!/bin/bash
             mount --bind /ezxlocal/apmd /usr/bin/apmd

Q: How do I check if it is properly applied?
A: Check out BogoMIPS in /proc/cpuinfo
Q: Where is the preconfigured file?
A: You can get the ampd on 416Mhz on 1.5V HERE

Note: You must use modified kernel in order to use AMPD. For example this one: http://www.e2mod.com/content/view/220/26/

Now we are able to execute commands via telnet to localhost directly from the phone (no longer need for computer- you can mod no matter where you are!). Thanks for khalid for the tutorial and dion for finding it

Motorola ROKR E2

1. Download the following libraries: libmyfake.so.zip
2. Unpack libmyfake.so.zip (it's archive - you can use winrar or other archivator) to the root folder of the memory card (/mmc/mmca1/)
3. Download MidpSSH and install it (it is a java application). Give it full permissions (optional)
4. Telnet to the phone (from the computer) and type one after another:
# export LD_PRELOAD=/mmc/mmca1/libmyfake.so
# . /home/native/.profile
# /usr/SYSjava/kvm -launch xxxxx
Where xxxxx is the number of MidpSSH in /mmc/mmca1/.system/java/DownloadApps/
5. Start MidpSSH on the phone and set the following settings:
Alias - telnet
Host - localhost
Type - Telnet
6. Save it and enjoy telnet from the phone to the phone :)

For easier use you can write yourself a bash script:

#!/bin/sh
export QTDIR=/usr/lib/ezx
cd /mmc/mmca1/
export LD_PRELOAD=/mmc/mmca1/libmyfake.so
. /home/native/.profile
exec /usr/SYSjava/kvm -launch xxxxx

Note: You need to start inetD application before following all steps!