• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

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

Search This thread

codeworkx

Senior Recognized Developer
Nov 20, 2010
8,493
57,080
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,845
1,141
OnePlus 9
Yes they are working fine no issues. Root with superoneclick was fairly straight forward as well.
 

jivy26

Inactive Recognized Developer
Aug 7, 2010
1,845
1,141
OnePlus 9
CodeworkX check pm dropbox link is in there

Sent from my SAMSUNG-SGH-I777 using xda premium
 

jivy26

Inactive Recognized Developer
Aug 7, 2010
1,845
1,141
OnePlus 9
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,094
25,088
Owego, NY
Looks like you guys will have a rooted system image before I can even get to the store! :)

Could you PM me a link to the system dump so I can start looking at it?
 
  • Like
Reactions: isaacpeh

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,094
25,088
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,080
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,094
25,088
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
 

Top Liked Posts

  • There are no posts matching your filters.
  • 46
    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
    3
    I have cf-root-sgs2_xw_oxa_kk5_v5.0-cwm5.zip

    Does anyone know if this will be ok to flash to my stock rooted uckk6?




    Download Link 1

    Download Link 2
    2
    Without doing a whole restore, is there a simple way to re-flash this kernel? I don't see a CWM flashable kernel, so any advice would be greatly appreciated . . .

    I actually made one for myself. I'll share :).

    MAKE A BACKUP.
    2
    Can someone please post the kernel download again? The OP points to multiupload which doesn't work.

    Thanks!

    Sent from my Nexus S using XDA App

    +1 downloading all the stuff i will need so as soon as i get my phone i can flash everything.

    http://forum.xda-developers.com/showpost.php?p=19012937&postcount=201

    Sent from my Galaxy S II (i777)
    2
    I flashed the .tar in the OP using odin, and then used superoneclick to root. When i hold volume up and power, I just get the yellow triangle and then the phone boots. Can anyone help me out?

    Hold Volume up/down + power, when you see the screen with yellow triange, let go of power but keep holding both volume buttons until you see CWM.