[Root] Samsung Epic 4G Official Froyo EB13 w/Optional EXT4

ragnarokx

Well-known member
Apr 20, 2010
6,915
1,696
0
Visit site
Standard Disclaimer: as with any Android modification, proceed at your own risk.

There are two parts listed below. Part 1 will root your phone and install ClockworkMod Recovery v2.5.1.0. You can stop at the end of Part 1 if you do not want EXT4. If you do want EXT4, after Part 1 continue to Part 2, which will install ClockworkMod Recovery v3.0.0.6 and convert your RFS filesystem to EXT4, allowing you to flash the latest ROMs and kernels.

---------------------
Alternative Method
This thread has flashable Odin files that will give you a pre-rooted version of Froyo EB13 with Clockwork and RFS or EXT4. If the below rooting procedure does not work for you, or if you are not on Froyo EB13 already and would like to upgrade and get root/Clockwork at the same time, this may be for you. Note: This will wipe your entire system, whereas the below rooting procedure will not.
---------------------

It is recommended that you backup anything on your phone that you need before proceeding.

What is a filesystem?
A filesystem is a method of storing and organizing files and their data. Basically, a filesystem organizes your files into a database for the storage, organization, manipulation, and retrieval by the Android operating system.

What's the difference between RFS and EXT4?
RFS is Samsung's proprietary filesystem, which has a pretty poorly written driver and is overall not very efficient. EXT4 is the filesystem used by Linux, and is more efficient than RFS. EXT4's efficiency over RFS gives a noticeable boost in operating system responsiveness/performance (the nimble Nexus S uses EXT4).

What are the pros and cons of converting to EXT4?
Pros: increased OS speed/responsiveness, ability to install newer ROMs that require EXT4. Cons: once you convert to EXT4, if you want to flash a ROM that does not support EXT4 you must use Odin or flash a special zip in Clockwork to return to RFS (see last question before the procedure for more info).

What does this procedure do to my phone exactly?
It will permanently root your phone (if not already rooted; also safe for rooted phones), as well as install Clockwork v3.0.0.6, which will format "/cache", "/data" and "/system" from RFS to EXT4. Having an EXT4 filesystem will enable you to install ROMs with EXT4 support, and having Clockwork v3.0.0.5 will enable you to flash ROMs, kernels, themes, etc. that use Edify scripts.

What's an Edify script?
There are currently two ways to create flashable zip scripts. The first one is "update-script", also known as Amend. Amend was the first version of the scripting language created by Google, and was used in Android 1.0 and Cupcake (1.5). However, Amend has two serious design flaws: function arguments can not span more than 1 word, and the scripting language is compiled into the recovery causing image bloat and inflexibility. Because of this reason Google removed Amend support in Donut and beyond, and instead switched to update-binary and updater-script, which is also known as Edify.

However, Amend support was left in Clockwork, to help ease the transition off its usage in ROM creation. Clockwork needed to transition to using the newer Edify scripts to be compatible with Gingerbread. So we now have a recovery that is Gingerbread ready and uses the better Edify scripts instead of Amend scripts.

What do I need to get started?
A Windows computer (this is also possible on OSX and Linux, however there will be procedural differences not covered here), a USB cable, and an Epic 4G with official Froyo EB13 installed (does not matter if you're already rooted or have a custom ROM).

Is there any way to go back to my original setup after I do this?
Yes, you can use Odin to return to a completely stock state - see this thread.
 
Last edited:

ragnarokx

Well-known member
Apr 20, 2010
6,915
1,696
0
Visit site
[How To] Root Samsung Epic 4G Official Froyo EB13

Part 1 - gives root access and leaves filesystem untouched (stock RFS)

Note: This may take several tries before being successful, so be patient.

0. You must have Froyo EB13 (official Android 2.2) before continuing to the next step. If you need to update from Eclair or the leaked Froyo DK28, go to this thread: How to Update to Froyo EB13. Once you're done, come back and head down to the next step.

1. Download and install the appropriate drivers for your Windows system:
32-bit drivers
64-bit drivers

Plug your Epic into your computer via USB and let Windows recognize your phone/configure the drivers. After Windows is done with the drivers, unplug your Epic.

2. Download the one click root exploit (credit: noobnl) and extract it to a folder on your Windows desktop.

3. On your phone, push MENU, then select Applications > Development, then enable USB debugging and connect your phone to your computer via USB.
5247348177_81f69fe529.jpg


The type of USB cord and the specific USB computer port can make or break your ability to successfully root. If you are getting errors in the command prompt during step 4, trying swapping USB cables and/or switching USB ports (even the USB cord that came with the phone can cause problems!).

4. Now double click "run.bat" in the folder from Step 2. If all goes well, your Windows command prompt should look something like this:
5466276321_6cd76153a6_z.jpg

5466872636_e58ec8380d_z.jpg


If the command prompt asks you to restart adb, you need to go into Windows Task Manager (ctrl-alt-del on your keyboard) and end adb in the process tab, then go into the folder from Step 2 and double-click on the "adb" file to restart adb.

If the command prompt says "device not connected", disconnect the phone and reboot it, turn debugging mode back on, reconnect the phone via USB, and rerun the "run.bat" file again. If you're still getting "device not connected", try repeating these steps one at a time or in a different order, for example just kill adb and rerun "run.bat" or only reboot the phone and then rerun "run.bat".


5. If you would also like to convert to EXT4, continue to Part 2.

After Rooting
An easy way to confirm that the rooting process was successful is to download a free app called Titanium Backup from the Market - upon startup the app will tell you if you have root access. If a "Superuser" pop-up window appears when you start Titanium Backup, push "Allow".

What is Superuser? It is an app that was installed when you rooted. Anytime there is a request to modify a low-level file or folder on your phone, Superuser will let you know and give you the chance to confirm or deny it access. This is a safety measure. If you happen to download a malicious app, Superuser will stop it from modifying low-level data and notify you. If an app you trust is requesting root access, just check the "Always Allow" box and it won't ask you again.
 
Last edited:

ragnarokx

Well-known member
Apr 20, 2010
6,915
1,696
0
Visit site
[How To] Root Samsung Epic 4G Official Froyo EB13

Part 2 - converts your RFS filesystem to EXT4 (Note: as of 2/25 at 11:23am, EXT4 kernel breaks some bluetooth functionality. Until we get an updated kernel, if you need 100% bluetooth functionality, stay on RFS)

A big thanks to Paul627g for his help with this method

1. Go to this thread (download mirror) and download "EB13-stock-deodex.zip", place it on your SD card, boot into Clockwork, and go to sdcard>choose zip from sdcard>(navigate to "EB13-stock-deodex.zip" on your SD card)>(select it using the camera button)>yes

2. Go to this thread and download "OneClickRootCWM3-EB13.zip" onto your computer, then extract it to a folder on your Windows desktop.

3. Go to this thread (download mirror) and download "EB13-DUALFS-KERNEL.zip", then place it on your phone's SD card.

4. On your phone, push MENU, then select Applications > Development, then enable USB debugging and connect your phone to your computer via USB.
5247348177_81f69fe529.jpg


5. Now double click "run.bat" in the folder from Step 2.

The type of USB cord and the specific USB computer port can make or break the success of this installation. If you are getting errors in the command prompt during this step, trying swapping USB cables and/or switching USB ports (even the USB cord that came with the phone can cause problems!).

5326073720_bffb40368d_z.jpg


If the command prompt asks you to restart adb, you need to go into Windows Task Manager (ctrl-alt-del on your keyboard) and end adb in the process tab, then go into the folder from Step 2 and double-click on the "adb" file to restart adb.

If the command prompt says "device not connected", disconnect the phone and reboot it, turn debugging mode back on, reconnect the phone via USB, and rerun the "run.bat" file again. If you're still getting "device not connected", try repeating these steps one at a time or in a different order, for example just kill adb and rerun "run.bat" or only reboot the phone and then rerun "run.bat".

Antivirus programs can also cause problems. If you still can't get the run.bat file to work, try disabling your antivirus software.


If all goes well your command prompt should look something like this:

5325466259_8ac1e8f118_z.jpg

5325466439_a51dab0675_z.jpg


6. Turn off your phone, and then hold these buttons: volume down+camera+power, until you see the Clockwork screen that has orange text. Clockwork v3.0.0.6 will now automatically convert your filesystem from RFS to EXT4. This may take a while. Once Clockwork is finished DO NOT reboot. First proceed to Step 7 below.

7. Now before you reboot, you need to flash the kernel from Step 3. Go to: install zip from sdcard>choose zip from sdcard>(navigate to "EB13-DUALFS-KERNEL.zip" on your SD card)>(select it using the camera button)>yes. The kernel will now be flashed. Once the flashing is complete, you can now reboot and enjoy your new EXT4 filesystem :D

Optional: you can confirm you have successfully converted to EXT4 by using the command
Code:
adb shell mount
or
Code:
adb shell df

Your command prompt will return something like this:

5364948600_9350fc4096_z.jpg

Picture courtesy of BlackPearl890

Notice it mentions "ext4", not "rfs".


Important Notes
You will notice odd startup animation behavior, this is normal. It is because the EB13 RXT4 kernel supports custom boot animations. To fix this, see this thread.

You must boot into Clockwork v3.0.0.6 by turning off your phone and holding volume down+camera+power buttons. If you boot into Clockwork using a program like ROM Manager or Quickboot, you will get errors.

A quick way to manually boot into Clockwork is to press volume up+camera+power buttons to reset your phone, then immediately hold volume down+camera+power buttons until you see the recovery screen with orange text.

Also, as long as you have EXT4 in place you can only flash ROMs and kernels with EXT4 support. To flash a ROM or kernel without EXT4 support, you must use Odin to return to stock.

Any flashable zips you want to install must by compatible with the new Clockwork v3.0.0.6. This will be explicitly indicated, or there will be a note saying the zip is using the new Edify script (as opposed to the old Amend script).
 
Last edited:

Epic4G80

Member
Nov 19, 2010
22
3
0
Visit site
I've manually updated to EB13, and rerooted successfully using this method, but what about ROMS, are we gonna have to wait until they're developed, and what about EXT format?
 
  • Like
Reactions: tomy2001

ragnarokx

Well-known member
Apr 20, 2010
6,915
1,696
0
Visit site
I converted to EXT4 fine, but it appears the Genocide kernel is not 100% compatible with EB13 (getting boot loops shortly after 1st boot). We'll need to wait for a new kernel before going EXT4 with official Froyo.
 

Kikoshi

Well-known member
Dec 7, 2010
278
19
0
Visit site
Btw Ragna, would i be able after EXT4/Root and this version of froyo, to be bel to flash 1.5 over? and have this Froyo version fixes? or thats not how it works?
 

Kikoshi

Well-known member
Dec 7, 2010
278
19
0
Visit site
Sorry, doesn't work that way. TER is DK28 only. And no EXT4 for official Froyo yet either. We'll post updates as they become available.

Thanks man! I'll mess around this and see how things go on the realworld use :), either way i can always Odin myself back to TER ;)! haha
thanks for all your hardwork man!
Can't wait to see the future of this version now
 

Forum statistics

Threads
943,143
Messages
6,917,491
Members
3,158,839
Latest member
akbarramadhani12