[KERNEL] ClockworkMod Recovery 5.0.2.3 // Initramfs Template for Devs

codeworkx

Senior Recognized Developer
Nov 20, 2010
8,493
57,074
0
Bad Neustadt
CLOCKWORKMOD-RECOVERY FOR GALAXY S II (AT&T)
for use with Stock ROMs​

I'll update it every time something important has changed, like CWM changes or kernel updates from samsung.
It's built from samsung kernel sources + teamhacksung initramfs template.

Instructions
  • Power your device off
  • Boot into Download-Mode using Volume Up + Volume Down + Power
  • Hit Volume Up to accept the warning
  • Start Odin
  • Choose "SGH-I777_ClockworkMod-Recovery_X.X.X.X.tar" as PDA (no repartition)
  • Connect your Phone
  • Start flashing
  • After reboot you can easily root your device using SuperOneClick

Usage
Volume Up + Power brings your Phone into Recovery Mode.

VolUp + VolDn = Highlight Up/Dn
Power = toggles menus off/on
Home = Select
Back = Back

Download
Testing - 5.0.2.3: http://www.multiupload.com/QQKN7NJAFT (md5: 4fb905992461586966ee1a7991206e93)


Don't forget to thank koush for his awesome work on ClockworkMod / ROMManager.


INITRAMFS TEMPLATE FOR DEVELOPERS
Here's a initramfs template you can use as a base for your haxx0ry:
https://github.com/teamhacksung/clockworkmod_galaxys2att_initramfs

It's KG1 initramfs + ClockworkMod Recovery and necessary modifications to make it work.

Instructions

To make sure to include fresh modules (vermagic) use a buildscript like this:

build.sh (inside your kernel dir)
Code:
#!/bin/bash

INITRAMFSDIR=/home/user/android/samsung/galaxys2att_initramfs
TOOLCHAIN=/home/user/android/cyanogenmod/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-

make c1_rev02_usa_att_defconfig
make -j8 CROSS_COMPILE=$TOOLCHAIN CONFIG_INITRAMFS_SOURCE="$INITRAMFSDIR"

cp drivers/bluetooth/bthid/bthid.ko $INITRAMFSDIR/lib/modules/
cp drivers/net/wireless/bcm4330/dhd.ko $INITRAMFSDIR/lib/modules/
cp drivers/samsung/j4fs/j4fs.ko $INITRAMFSDIR/lib/modules/
cp drivers/scsi/scsi_wait_scan.ko $INITRAMFSDIR/lib/modules/
cp drivers/samsung/vibetonz/vibrator.ko $INITRAMFSDIR/lib/modules/

make -j8 CROSS_COMPILE=$TOOLCHAIN CONFIG_INITRAMFS_SOURCE="$INITRAMFSDIR"
Example updater-script: http://pastebin.com/RXqiVTMv
Kernel Sources: http://opensource.samsung.com

greets
codeworkx
 
Last edited:

jivy26

Inactive Recognized Developer
Aug 7, 2010
1,824
1,115
0
Virginia Beach, Va
Explain a little further because I am not real bright but I may can help. I followed the "easy root" instructions in the general forum. Have not done anything else since.
He is trying to help Devs. All he needs to do is boot into CWM goto backup and backup. After its complete boot into phone then upload system img to dropbox and pm codeworkx(if they need more sources).
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,095
25,085
0
Owego, NY
Sent

Sent from my SAMSUNG-SGH-I777 using xda premium
Thanks. I have, in theory, a stock rooted Heimdall-flashable image now.

Less than an hour until my AT&T store opens - hopefully they give me some sort of FAN discount. :)

BTW, one small question (already PMed you this) - what is the partition size of /system?
 

codeworkx

Senior Recognized Developer
Nov 20, 2010
8,493
57,074
0
Bad Neustadt
Thanks. I have, in theory, a stock rooted Heimdall-flashable image now.

Less than an hour until my AT&T store opens - hopefully they give me some sort of FAN discount. :)

BTW, one small question (already PMed you this) - what is the partition size of /system?
Should be:

BOARD_SYSTEMIMAGE_PARTITION_SIZE := 536870912
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,095
25,085
0
Owego, NY
Should be:

BOARD_SYSTEMIMAGE_PARTITION_SIZE := 536870912
512M right on the dot.

This means that in theory, Fenny and I have flashable stock and stock rooted images now. We'll know in a few hours. My AT&T store doesn't open for 45 more minutes and I'm not sure what discounts I may have available. If I get the right deal, I'll flash from my laptop, dump kernel, and upload the kernel from Panera. :p
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone