yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] :
Hi It_ler

So if SII usuall has no dedicated recovery partition then what does

mmcblk0p6 show by name? Can you show your partition names? See mine in

appendix.

Some background

I just upgraded

from previous (Nordic Countries)

I9100XWMS1_I9100NEELS1_NEE.zip

with corresponding

PhilZ-cwm6-XWMS1-NEE-5.15.9-signed.zip

to current (Belgium)

I9100XWMS1_I9100BSELS3_BSE.zip

Note that I always pre-root+busybox and deodex+zipalign with

Android-Kitchen but that does not really matter (I guess).

After upgrade CWM was gone (mmcblk0p5 overwritten, I assume, with

XWMS1/BSE kernel). That's fine as I now have kernel that came with

ROM.

Note that, previous time, before I had flashed XWMS1/NEE, I had

replaced zImage with PhilZ one (which corresponded XWMS1/NEE). Then,

of course, the PhilZ and ROM kernel were same.

Which PhilZ CWM do you use? Perhaps philz_touch_6.12.8-i9100.zip?

What is /proc/version content on your ROM? See mine in appendix.

And, suppose I install philz_touch_6.12.8-i9100.zip, would that

(yes/no) also change my normal ROM kernel? I assume 'yes', please let

me know if that's correct. I know that PhilZ uses stock kernel and

only modified ram filesystem. But my question is: what is the exact

linux kernel version in philz_touch_6.12.8-i9100.zip?

I may sound a bit paranoid but, before changing linux kernel, I want

to be sure linux kernel corresponds with the kernel modules (see

appendix too). I know that XWMS1 gives indication of kernel version,

but having outputs from someone having philz_touch_6.12.8-i9100.zip

would give me some more confidence.

appendix:

# ls -l /dev/block/platform/dw_mmc/by-name

total 0

lrwxrwxrwx 1 0 0 20 Feb 14 22:44 CACHE -> /dev/block/mmcblk0p7

lrwxrwxrwx 1 0 0 21 Feb 14 22:44 DATAFS -> /dev/block/mmcblk0p10

lrwxrwxrwx 1 0 0 20 Feb 14 22:44 EFS -> /dev/block/mmcblk0p1

lrwxrwxrwx 1 0 0 20 Feb 14 22:44 FACTORYFS -> /dev/block/mmcblk0p9

lrwxrwxrwx 1 0 0 21 Feb 14 22:44 HIDDEN -> /dev/block/mmcblk0p12

lrwxrwxrwx 1 0 0 20 Feb 14 22:44 KERNEL -> /dev/block/mmcblk0p5

lrwxrwxrwx 1 0 0 20 Feb 14 22:44 MODEM -> /dev/block/mmcblk0p8

lrwxrwxrwx 1 0 0 20 Feb 14 22:44 PARAM -> /dev/block/mmcblk0p4

lrwxrwxrwx 1 0 0 20 Feb 14 22:44 RECOVERY -> /dev/block/mmcblk0p6

lrwxrwxrwx 1 0 0 20 Feb 14 22:44 SBL1 -> /dev/block/mmcblk0p2

lrwxrwxrwx 1 0 0 20 Feb 14 22:44 SBL2 -> /dev/block/mmcblk0p3

lrwxrwxrwx 1 0 0 21 Feb 14 22:44 UMS -> /dev/block/mmcblk0p11

# cat /proc/version

Linux version 3.0.31-1418025 (dpi@DELL226) (gcc version 4.4.3 (GCC) ) #3 SMP PREEMPT Wed Sep 25 18:29:28 KST 2013

# ls -al /lib/modules

drwxr-xr-x 2 system system 0 Sep 25 11:29 .

drwxr-xr-x 3 system system 0 Sep 25 11:29 ..

-rw-r--r-- 1 system system 35008 Sep 25 11:05 Si4709_driver.ko

-rw-r--r-- 1 system system 501076 Sep 25 11:05 dhd.ko

-rw-r--r-- 1 system system 49260 Sep 25 11:05 j4fs.ko

-rw-r--r-- 1 system system 1920 Sep 25 11:05 scsi_wait_scan.ko

# lsmod

dhd 415183 0 - Live 0x00000000

j4fs 70143 1 - Live 0x00000000 (P)

Si4709_driver 25232 0 - Live 0x00000000

have a nice day
[Galaxy S II Android Development] It_ler:
After flashing the new stock ROM just flash the same PhilZ-cwm6 kernel v5.15.9 for XWMS1.

Both ROM versions have the exact same kernel ... only the CSC is different.

You really don't need to flash the recovery separately.

Just flash PhilZ kernel. And you can flash the signed kernel zip file in stock recovery ... from external sd card.

This will root the phone, install superuser+busybox and PhilZ-touch recovery.

EDIT:

Screenshot with some Infos of my phone - as requested via PM:

My tapatalk signature:

Phone:

SGS2 (GT-I9100)

ROM:

XWMS2 NeatROM Lite v5.6 (PDA: XWMS2 / PHONE: XXMS4 / CSC: MOTLS3)

Kernel:

Apolo v4.13

If you have any question about or any issue with your SGS2, just ask in the New members friendly Q&A thread.

Have a :eek: at my latest kernel test results.
[Galaxy S II Android Development] :
Hi It_ler

Since I did not want to install old superuser+busybox I have flash restored kernel.img as follows:

# dd if=kernel.img of=/dev/block/mmcblk0p5 bs=8192

this kernel.img I had previously backed up (when it was PhilZ-cwm6 kernel v5.15.9 for XWMS1) as:

# dd of=kernel.img if=/dev/block/mmcblk0p5 bs=8192

Good news is that this is indeed exact same kernel as my stock XWMS1 BSE.

About my previous questions:

1) yes normal and recovery boot seem to share same kernel

# adb devices

List of devices attached

0019d7d074e47e recovery

# adb shell

~ # cat /proc/version

Linux version 3.0.31-1418025 (dpi@DELL226) (gcc version 4.4.3 (GCC) ) #3 SMP PREEMPT Wed Sep 25 18:29:28 KST 2013

^D

2) not sure yet what RECOVERY partition mmcblk0p6 is for

Thanks
[Galaxy S II Android Development] It_ler:
Same output for the dev block mounts:

My tapatalk signature:

Phone:

SGS2 (GT-I9100)

ROM:

XWMS2 NeatROM Lite v5.6 (PDA: XWMS2 / PHONE: XXMS4 / CSC: MOTLS3)

Kernel:

Apolo v4.13

If you have any question about or any issue with your SGS2, just ask in the New members friendly Q&A thread.

Have a :eek: at my latest kernel test results.
[Galaxy S II Android Development] freewing:
So sorry, but the PhilZ for CM11 doesn't seem to work at all: it doesn't let you install any update.

:eek:
[Galaxy S II Android Development] It_ler:
Sorry, can not comment on this, as I am on stock / Sammy ROM.

What exactly does not work?

Booting into system?

Booting into recovery?

Install/flash a zip file?

Maybe it only works from internal or only from external sd card.

... just guessing.
[Galaxy S II Android Development] freewing:
Well, 1st thanks for answering.

I use it on CM11; when I try to use the PhilZ kenel to update the latest CM nightly file (from external SD) after a while the installation is aborted; instead if I use KK kernel the installation goes fine.

I think CM11 should be a XWMS2 rom, and I tried both kernel:

PhilZ-cwm6-XWMS2-MOT-5.15.9-signed.zip

philz_touch_6.08.9-i9100.zip

...with the same result.

Should I try to update CM nightlies from internal memory?

Thanks
[Galaxy S II Android Development] It_ler:
Yes, you can try to flash it from internal sd card.

If it does not work, flash another KK compatible kernel (such as Gustavo_s kernel for CM11), boot directly into CWM recovery and flash the CM zip file.

And you ar sure that the zip file is OK?

Maybe it's a corrupt download ... please check its md5 checksum ... and re-download it.
[Galaxy S II Android Development] freewing:
Well, thanks.

KK Gustavo is the ONLY one that works for me.

And I do am sure the CM zipped file is good (I can open it on my pc with WinZip).

I'll try to install the CM update from internal SD with PhilZ (since my intention was to use a PhilZ stock derivated kernel), but it looks strange to solve the problem simply changing the origin of installation; I'm trying to.

Thanks for help!

Enrico
[Galaxy S II Android Development] Ganjax:
Please update this kernel and cwm to support KK CM11 and CWM 6.0.4.7
[Galaxy S II Android Development] ernest101:
kinda confused here, what is the difference between philz_touch_6.12.8-i9100.zip and PhilZ-cwm6-DXLSD-OLB-5.08.5-signed.zip? I'm using a DXLSD stock rom btw.
[Galaxy S II Android Development] Coempi:
AFAIK the later one is not touch recovery.

Best regards, Coempi
[Galaxy S II Android Development] plctech:
error message while trying to install on gt-i9100p

can anybdy help with this

E:Error in /tmp/sideload/package.zip

(status 7)

phone is on 4.1.2 stock orange rom but phone is rooted

many thanks

lee
[Galaxy S II Android Development] marjune23:
I guess you are trying to install kk rom...you have a wrong choice of cwm or twrp...flash this kk compatible cwm...

My tapatalk Signature

Phone: Samsung Galaxy S2 i9100

Currently on Dualboot

1st Rom: NeatRom v5.7

2nd Rom: AOSP NeatRom v2.6

Kernel: Dorimanx 8.43vXX

My procedure in dualbooting NeatRom

Flashing Stock Firmware and Custom Rom

Hit thanks button if you think I helped you...:o
[Galaxy S II Android Development] plctech:
i've got a problem with a customers phone, i'm trying to wipe the delvik partition so i can wipe the phone and start with a clean canvas

the phone has lost its imei, s/n and product code and i'm having problems with both a z3x and an nspro box trying to sort it out.
[Galaxy S II Android Development] dancano:
A quick question:

I have a stock Galaxy S2 i9100 with Jellybean 4.1.2.

Is it the right way to just install philz kernel/cwm via stock recovery and install any 4.4 (or earlier?) rom?
[Galaxy S II Android Development] It_ler:
Basically yes ... but ... if you want to flash a KK ROM (4.4.x), you have to use a KK compatible CWM recovery.

Try latest PhilZ kernel for CM (download link is in post #3).

If it does not work, try Gustavo_s kernel for CM11 or OMNI ROM with KK compatible CWM recovery.
[Galaxy S II Android Development] dancano:
okay.. is it actually better to flash a kernel(cwm) with the (near-)exact buildnumber or to get the latest one, if i would want to flash a 4.3 rom?

Sorry for those newbish questions, but i had once a problem with odin and since that never touched this topic - but with philz method of flashing a new recovery via the old one, i am tempted to finally get rid of the samsung ui and apps.
[Galaxy S II Android Development] It_ler:
For flashing any ROM < 4.4, just flash the PhilZ kernel corresponding to your current ROM / Build version number.
[Galaxy S II Android Development] pepziman:
I still confused , if i flashed the kernel, will it also automatically install the philZ cwm6 ?
[Galaxy S II Android Development] It_ler:
Yes, the PhilZ-touch CWM recovery is built in the kernel.

Download and flash the signed kernel zip file for your current ROM / Build version number from external sd card, and you will have a rooted device with PhilZ-touch recovery :good:
[Galaxy S II Android Development] Qvoth:
so guys, the last time i updated was PhilZ-cwm6-ZSLSJ-OZS-5.08.5-signed.zip version

if i want to update to the latest one, can i try the philz_touch_6.12.8-i9100.zip?
[Galaxy S II Android Development] It_ler:
No, it's just the recovery ... not a kernel with recovery.

Please post your current ROM/Build version number. Then we can point you to the latest corresponding PhilZ kernel.
[Galaxy S II Android Development] Qvoth:
well checking from about device inside settings, it says android version 4.1.2, baseband version I9100XXLS8, kernel version 3.0.31-863962, build number JZO54K.I9100ZSLSJ
[Galaxy S II Android Development] It_ler:
So it that case, you have already the latest PhilZ kernel for your ROM version.

If you want to flash a newer PhilZ kernel version, you should update your ROM first.

Latest PhilZ kernel for stock ROMs of the SGS2 (GT-I9100) is v5.15.9.

And here are those kernel files.

I suggest to flash XWMS2 or XWMS3 first, then flash PhilZ kernel for XWMS2 (will work on both ROM versions).
[Galaxy S II Android Development] Qvoth:
i was told long time ago in the new members friendly q&a thread that i should download the ones that have the letters LSJ... i don't see that anywhere in 5.15.9 version...

is that still ok?
[Galaxy S II Android Development] It_ler:
As I have the feeling that you misunderstood my suggestion, I will re-phrase it for you:

1. If you want to keep your current ROM, don't flash any other PhilZ kernel than you already have.

It is the latest version for your ROM.

2. If you want to flash a newer PhilZ kernel, you have to flash a newer ROM version first.

a) Flash new ROM

b) Flash new PhilZ kernel corresponding to the new ROM version

I hope that you got me right now :fingers-crossed:
[Galaxy S II Android Development] Qvoth:
Is there an idiot's guide anywhere to flash roms? Lol

Actually what about kernels from other creators? I know this isn't the thread to be saying this, I'm just looking to update since its been a while since I last updated :crying:

edit: might as well ask this, i'm mainly looking to update my phone so that the android is version 4.2 and up, because to run the muzei live wallpaper app i need that lol, so if you can point me out to what i should be looking for i'd appreciate it (doesn't have to be philz kernel)

like i mentioned above, i'm at 4.1.2
[Galaxy S II Android Development] It_ler:
As Samsung abandoned creating new stock ROMs for our device, Android 4.1.2 is the latest one we have officially.

If you want/need a newer OS version, such Android 4.4.2, you have to flash a custom ROM.

There is official CM11 and OMNI ROM ... and many other custom ROMs for the SGS2 (GT-I9100).

Check this thread (or this) for the different ROMs.

As (nearly) all custom ROMs already come with a nice rooted kernel, I recommend to stay on the ROM's default kernel first.

And if you want to ask a question and don't know where, you can always come here.

But each custom ROM thread should have at least installation instructions how to flash it.

Usually the ROM is provided as a CWM flashable zip file. So you may only have to flash a kernel with a compatible CWM recovery version first.
[Galaxy S II Android Development] Lister Of Smeg:
Hi Guys,

Wonder if you can help, whilst I don't personally own this phone... a friend of mine does. And much like the issues i had with my N7000, I have no idea what version of this Recovery I need...

So wondered if you could help me, and point out what file I need based on these details please....

Many thanks, Lister
[Galaxy S II Android Development] It_ler:
Hi Lister,

as there is no exact match for the BVLPD ROM, you can try PhilZ kernel for XWLPD, which is also Android 4.0.3.

It's the signed zip file, which can be flashed in stock recovery from external sd card.

Your friend should consider to flash a newer ROM version, e.g. XWMS2 or XWMS3. (For both you can use PhilZ kernel for XWMS2.)
[Galaxy S II Android Development] Lister Of Smeg:
Hi [MENTION=4229457]It_ler[/MENTION],

Thank you so much, like my N7000.... I always find it hard to find/know which of the Recoveries to flash first.... However thank you for being so helpful and helping me choose the right one.

Do I assume (like with my N7000) that once he has flashed this recovery, that any newer rom (even if it's KitKat) will come with its own "safe" recovery, much like the N7000. So he'll never have to look for Recoveries again... As all current custom roms should come with their latest Kernel/Recovery at the time...??

- ignore the above question, as I have noticed the post up from my original one already states this... Apologies. So it is much like dealing with the N7000, you flash a custom rom and you get the Kernel/Recovery with it... many thanks :)

And indeed, don't worry... I've already advised him not to do anything with the version of OS as it is... As I guess much like the N7000, anything ICS based is a no-no on unprotected Recoveries...

Many thanks for your help, Lister
[Galaxy S II Android Development] wassk:
im confused also...long time since i use sammy roms...now im back....kk is not yet useful for me....so which kernel can i flash on neat rom v 5.8 xwms3 ? do i have to flash cwm6-xwms2-mot- 5.15.9 or can i flash philz_touch_6.12.8 ? i know u answer this few times alread but still i dont get it....is this new 6.12.8 still sammy based or is for cm or others?
[Galaxy S II Android Development] It_ler:
PhilZ kernel v5.15.9 for XWMS2 is the latest one and works fine for XWMS3 NeatROM v5.8.

PhilZ touch is only the recovery.

My tapatalk signature:

Phone:

SGS2 (GT-I9100)

ROM:

XWMS3 NeatROM Lite v5.8 (PDA: XWMS3 / PHONE: XXMS4 / CSC: FOPLS6)

Kernel:

Apolo v4.13

If you have any question about or any issue with your SGS2, just ask in the New members friendly Q&A thread.

Have a :eek: at my latest kernel test results.
[Galaxy S II Android Development] Lister Of Smeg:
Hi [MENTION=4229457]It_ler[/MENTION],

Thanks once again for replying to my post the other day, I've not had chance to see/speak to my friend yet. However having a little look around, it seems the S2 does differ slightly from the N7000 (Galaxy Note), in that whenever we flash a Recovery to our Note, we flash the Kernel too. And vice versa, if we flash a Kernel we flash the Recovery with it too...

However from what I have now read in some of these forums, and some of your posts... It seems the Recoveries are separate from Kernels...

So...

1) The Recovery you have included here, will this allow flashing of TouchWiz roms, CM9 / ICS (but not official Samsung), CM10.x / JB, CM11 / KK roms... - all from this Recovery? Or will it fail if it doesnt support SElinux?

2) The BVLPD kernal/build ?? why is this build not widely supported? Is it a standard i9100 ? or is it the i9100-G model?

3) If my mate wants to switch from CM9, CM10.x, CM11 and even TouchWiz roms, whats the best procedure, Recovery wise??

Many thanks for all your help and support...

Thanks, Lister
[Galaxy S II Android Development] It_ler:
You misunderstood something.

The is no separate partition for the recovery on the SGS2.

Recovery is always built into the kernel.

The recovery can be included in different kernels for various ROMs.

BV... ROMs are branded firmwares... that's why they are not very common/popular.

I recommend to try the ROM's kernel/recovery first before flashing another one. Not every kernel is compatible with each ROM.

My tapatalk signature:

Phone:

SGS2 (GT-I9100)

ROM:

XWMS3 NeatROM Lite v5.8 (PDA: XWMS3 / PHONE: XXMS4 / CSC: FOPLS6)

Kernel:

Apolo v4.13

If you have any question about or any issue with your SGS2, just ask in the New members friendly Q&A thread.

Have a :eek: at my latest kernel test results.
[Galaxy S II Android Development] Lister Of Smeg:
Hi [MENTION=4229457]It_ler[/MENTION],

Ah, thank you for clearing that up... So I was right the first time (just I got myself confused with too much further reading.. lol), the way the S2 and N7000 handle their Kernel/Recoveries is much the same on BOTH hardware (S2 vs N7000).

So basically just need to flash that Recovery, from Stock Recovery first...

And then all future roms flashed with it, will include their own Recovery/Kernel inside the rom...??

Many thanks, Lister
[Galaxy S II Android Development] It_ler:
Basically yes.

Flashing PhilZ kernel will give you CWM recovery.

Most custom ROMs can be flashed in this CWM recovery.

But some (nearly all) Kit Kat ROMs (e. g. CM11 and OMNI ROM) need a KK compatible CWM recovery.

But you will find the installation instructions in the first post of the corresponding ROM thread.

My tapatalk signature:

Phone:

SGS2 (GT-I9100)

ROM:

XWMS3 NeatROM Lite v5.8 (PDA: XWMS3 / PHONE: XXMS4 / CSC: FOPLS6)

Kernel:

Apolo v4.13

If you have any question about or any issue with your SGS2, just ask in the New members friendly Q&A thread.

Have a :eek: at my latest kernel test results.
[Galaxy S II Android Development] sheshnag:
Error in flashing through stock recovery

First of apologies if I have got this completely wrong as I am new to custom recovery.

I have SGS 2 - i9100p which is on Orange and untouched. Android version is 4.1.2.

I want to root my phone and also have a user friendly recovery. Being a new comer to "root" word I thought I was in luck when I read through this post. So my understanding was - all I needed to do was flash .zip file from the download link through stock recovery. I could not find any up to date zip file for i9100p, so I used philz_touch_6.19.3-i9100.

All looked ok till I got an error message as below:

E:Error in /tmp/sideload/package.zip (Status 7)

I have tried this multiple times and also performed battery pull.

Please help!:confused:
[Galaxy S II Android Development] It_ler:
You should flash the kernel for GT-I9100P.

Here is the latest PhilZ kernel for GT-I9100P > http://d-h.st/users/philz_touch/?fld_id=23936#files

After flashing the recovery, you may have to flash the kernel tar version with Odin.

But try to boot into recovery first to flash the kernel zip file, as this will root your phone directly.

My tapatalk signature:

Phone:

SGS2 (GT-I9100)

ROM:

XWMS3 NeatROM Lite v5.8 (PDA: XWMS3 / PHONE: XXMS4 / CSC: FOPLS6)

Kernel:

Apolo v4.13

If you have any question about or any issue with your SGS2, just ask in the New members friendly Q&A thread.

Have a :eek: at my latest kernel test results.
[Galaxy S II Android Development] sheshnag:
So I need to flash the kernel using stock recovery - updated from external memory and then flash the recovery?

Thank you for your response.
[Galaxy S II Android Development] It_ler:
No. Just flash the kernel which already contains the touch CWM recovery.

My tapatalk signature:

Phone:

SGS2 (GT-I9100)

ROM:

XWMS3 NeatROM Lite v5.8 (PDA: XWMS3 / PHONE: XXMS4 / CSC: FOPLS6)

Kernel:

Apolo v4.13

If you have any question about or any issue with your SGS2, just ask in the New members friendly Q&A thread.

Have a :eek: at my latest kernel test results.
[Galaxy S II Android Development] -sanosuke-:
im stock 4.1.2 but i have root mi phone... i can do this directly or o i need use this step post?

"Note: you can skip superuser installation when flashing using a config file: read this post to know how to use it"

this is mi device info its will ok that i use ?

<< 27.03.2013 - PhilZ-cwm6 v4.91.2 with CWM 6.0.3.0 based recovery >>

UHMS8

thx ...
[Galaxy S II Android Development] Lister Of Smeg:
Hi [MENTION=4229457]It_ler[/MENTION],

Just wanted to THANK YOU with that link you sent me, I have now managed to flash Philz Recovery.

From there, I have managed to flash an updated CWM (even though it said it was supposed to be TWRP) it supports KitKat...

I have since flashed a KitKat rom too, so from here on in, i feel comfortable now in flashing a ROM of his choosing, and getting it setup for him.

Many thanks for all your help, much appreciated.

Thanks, Lister
[Galaxy S II Android Development] ykumar00:
Can someone tell me Which ZIP I should flash, I'm having 4.12 official ROM, and build number ; XWLPX - NEE, I searched OPs but couldn't find the file to flash for JB, they are all for ICS AFAIK. my device is a Nexus 4, so I don't know much about samsung. Thanks!
[Galaxy S II Android Development] sheshnag:
How did you flash the latest CwM? I have an older version that came with Philz rooted kernel. I want to install CM 11 but my research tells me I need the latest version of CwM. I want to stick with Philz recovery if possible even though I know Philz uses CwM.
[Galaxy S II Android Development] It_ler:
Here is the PhilZ kernel zip file for XWLPX (NEE).
[Galaxy S II Android Development] Lister Of Smeg:
Hi [MENTION=3337777]sheshnag[/MENTION],

Well, I was really after finding a TWRP version of recovery, as I like it to be touch based... However after a Google, it took me to this site: http://galaxys2root.com/cwmtwrp-recovery/

From there, downloaded the first file: http://downloadandroidrom.com/file/GalaxyS2/recovery/CWM-KitKatCompatible-i9100.zip

And flashed that, I was hoping it was TWRP, but looking at the file name it does say CWM now anyway... Anyway, its a CWM that is compatible with KitKat. From there, I've flashed about 3x KK based roms... However I am gonna try flashing a JB rom now, to see how thats like.

Hope that helps...

Cheers, Lister
[Galaxy S II Android Development] ykumar00:
Thanks a lot, I have a few other questions, I have posted it in the federal Q&A thread, here http://xdaforums.com/showthread.php?p=50732191, I would be grateful if you can answer those too :) thanks again!

EDIT: Nevermind, they got answered! :)
[Galaxy S II Android Development] sheshnag:
Sorry guys I am getting confused here. :confused: Is there no way of updating the Phil recovery I have to be able to use it with kitkat rooms?

Do I have to flash Cwm or twrp?
[Galaxy S II Android Development] It_ler:
AFAIK, the stock (Android 4.1.2) compatible CWM recovery does not support Kitkat (Android 4.4.x) and the other way round.

So if you are on a stock (Android 4.1.2) ROM and want to flash a Kitkat (Android 4.4.2) ROM, then you need to flash a kernel with a KK compatible recovery first (tehn directly boot into recoery and flash the new ROM).

And I recommend CWM recovery for flashing custom ROMs ... except the installation instructions of the ROM you want to flash says something different.

And after flashing the new ROM, you will have the ROM's kernel with its recovery ... could be CWM or TWRP. Depends on the ROM you flash.