[Epic 4G Android Development] DRockstar:
NOTICE: If you have flashed any ROM, including CyanogenMod, that has converted the phone to MTD (yaffs2 filesystem), then this will not work. I abandoned ReRFS when MTD became the standard for CyanogenMod for the Epic. Only ODIN can be used to restore the phone to RFS from MTD.

The purpose of this ROM is to format the Epic 4G back to RFS, and give a stock EC05 system. Most current ROMs format ext4, and this will bring it back to RFS. This flashes a stock odexed EC05 system, stock EC05 kernel, and ClockworkMod 3.1.0.1 Purple Edition. This can be flashed from either cwm2 for cwm3, and can even be used as a stock ROM on phones already formatted as RFS.

Updated to cwm 3.1.0.1, and as long as your current reboot recovery boots to cwm 3.0.2.5 or 3.1.0.1, ReRFS can be flashed using ROM Manager.

Todo: I'd like to kang chris41g's autoconvert scripts for an automatic backup portion before flashing... I haven't been able to reach him lately, and I'd like his permission before using his script.

This does not touch the modem... use odin to flash the EC05 modem, or use the zip library of tools for ClockworkMod for the epic below, including modem flashes for oder stock modems, stock kernels, and stock recoveries.

IMPORTANT: Make a backup before flashing this- it will format everything on the phone, and destroy all data. It does not touch the sdcard. As with any tool here, I can't be held responsible for any trainwreck that happens to your phone.

I would highly recommend powering off the phone, and booting into cwm with vol down, camera, and power button combo. In recent testing, I've successfully been able to flash ReRFS with ROM Manager with Clean Kernel, as long as reboot recovery brings you to cwm 3.0.2.5 or greater, ROM Manager shouldn't pose any troubles. In the event of flash failure, read the next paragraph.

If for some reason the flash doesn't take, and the phone will not boot afterwards, then perform a 4 finger boot (Vol up + Vol down + camera + power), and flash the ROM again. I haven't needed to do this in my testing, but formatting RFS can be buggy at times, and a reflash of the ROM should take care of it.

If you need to turn in the phone for service or exchange, then flash the ReRFS ROM, and make sure the phone boots. Then go back to ClockworkMod with the 3 finger boot, and flash the Samsung stock recovery, to uninstall ClockworkMod. Only flash the Samsung stock recovery if you need to turn in the phone.

I extend a very special thanks to supercurio- without his voodoo lagfix source, I wouldn't have known the proper fat.format usage, and a trick to write zeros to the system partition before formatting. The exact source is here:

https://github.com/project-voodoo/lagfix/blob/stable/voodoo_initramfs_parts/scripts/rfs_formatter.sh

Thanks to: bikcmp for fossnet server space, and Shabbypenguin for graciously hosting files as mirrors.

Link:

ReRFS Format Stock ROM EC05 v1.01

Tools:

epic4g.stock.recovery.ec05.zip

The Samsung stock recovery, for uninstalling ClockworkMod, useful for turning in the phone to Sprint.

Do not flash the stock recovery unless your phone boots into system, and you need to turn the phone in.

modem.DI18toEC05.zip

update modem from DI18 to EC05, particularly important, coming from DI18

modem.EB13toEC05.zip

modem from EB13 to EC05

modem.DI07toDI18.zip

modem from DI07 to DI18

kernel.stock.EC05.epic4g.zip

Just the stock EC05 kernel by itself, if it's ever needed

DRockstar.Clean.Kernel.EC05.v1.05.zip

Flash this kernel to have root and busybox, this kernel has reboot recovery to cwm 3.1.0.1, and is ROM Manager compatible.

Support:

Either here in the forum, or live at irc.fossnet.info channel #epic

Weblink: http://webchat.fossnet.info/?channels=epic