New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
dsixda
Old
(Last edited by dsixda; 22nd November 2012 at 10:38 PM.)
#1  
dsixda's Avatar
Recognized Developer / Retired Senior Moderator - OP
Thanks Meter 3784
Posts: 9,560
Join Date: Nov 2007
Location: Ottawa

 
DONATE TO ME
Default [GUIDE] dsixda's Android Kitchen - Now with SGS2 I9100 support (Windows/Linux/Mac)

dsixda's Android Kitchen - Now for Samsung Galaxy SII GT-I9100

Compatible with Windows (Cygwin) / Linux / Mac OS X

The following is a guide to assist you with creating your own Samsung Galaxy S2 custom ROMs with the kitchen. This is NOT a guide to help you become Cyanogen or do fancy things with AOSP, but it may be your springboard to bigger things in the future.

For the benefit of other readers and to prevent confusion, please stay on topic and only discuss Samsung Galaxy S2 in this thread!

Some of you already know about the Android Kitchen. It is a project I started on back in February 2010 to help newbies create their own custom ROMs and learn more about Android. The kitchen has been designed almost exclusively for HTC devices, although many people have had success using it with other manufacturers' ROMs. Recently I bought a Samsung Galaxy S2, and of course, I wanted to take control and create my own custom ROMs. However, ROMs for this device are totally different from those that I had worked on before, and so I decided to take on the project of supporting this device in the Android Kitchen. So, as of version 0.175, you can now create your own ROMs with the kitchen.

First, I'd like to thank pulser_g2 of Villain ROM for voluntarily helping me during his vacation to get started on this SGS2 project. Secondly, a big thanks to Noonski for testing and providing feedback.




PROCEDURE


IMPORTANT: For this guide to work, you need one of the original Exynos-based Galaxy S2 variants, including the Galaxy Note GT-N7000. Unfortunately this means there is no support for the I9100G, since it uses a different chipset. For the Qualcomm-based AT&T Skyrocket, T-Mobile SGH-T989, Telus Galaxy S2 X (SGH-T989D) and other variants, please follow this thread instead.
  1. First, you need a rooted Samsung Galaxy S2 with a ClockworkMod custom recovery.
  2. Visit the Android Kitchen thread to download the kitchen. Then, follow the link to the FAQ which will show you how to install it on Windows, Linux or Mac OS X. Ensure you read the FAQ carefully.
    • IMPORTANT: To verify your variant of the Galaxy S2 works in the kitchen, read this post.
  3. Put your base ROM(s) under the original_update folder. For the Samsung Galaxy S2, there is support for the following formats which can be placed in that folder (you can place multiple ROMs there):
    • Stock firmware:
      • factoryfs.img, cache.img, zImage, hidden.img (if it exists), and modem.bin (optional)
      • TAR file containing factoryfs.img, cache.img, zImage (and optional modem.bin)
      • TAR.MD5 file - Same as above but must be renamed *without* the MD5 part in the file name
      • ZIP file containing factoryfs.img, cache.img, zImage (and optional modem.bin)
    • Custom ROM:
      • ZIP file created by the kitchen from the stock firmware (other ROMs such as CyanogenMod may use a different file structure that is incompatible with the kitchen!)
    • Nandroid backup from ClockworkMod recovery
      • system.img and boot.img
      • system.ext4.tar and boot.img
  4. Here are some basic steps to creating your first ROM after you have your base of files under original_update (more options are available in the kitchen):
    1. Start the kitchen with: ./menu
    2. Create a working folder (by choosing your base ROM)
      • If you used a stock factoryfs.img but then didn't include the cache.img, then you have the option to add a cache.img later using the Extract CSC script in the Advanced menu's 'Plugins' section.
    3. Optional: Add a rooted kernel (zImage) to the base of your working folder
      • If your working folder currently has the stock kernel (zImage), you should replace it with the CF-Root kernel (or any other custom rooted kernel) which must match the stock ROM's Android OS version. Just replace the stock zImage with this zImage any time before you build the ROM. Otherwise, if you keep the stock kernel you will lose access to ClockWorkMod recovery!
      • OR, you can create a ROM without a zImage and thus keep the existing kernel on your device, although you must ensure the kernel is compatible with the ROM!
    4. Optional: Add a modem.bin to the base of your working folder, or remove the existing modem.bin if you don't want it. You can flash the ROM with or without a modem.bin.
    5. Root your ROM (Not required if you are using the CF-ROOT zImage)
    6. Add Busybox (Not required if you are using the CF-ROOT zImage)
    7. Disable boot sounds (if you find the Samsung starting sound a bit annoying)
    8. In the Advanced options menu: De-odex your ROM
      • If you have trouble deodexing the leaked 4.0.3 ROMs, read this post for help.
    9. Build ROM
      • The ROM is built into a ZIP file meant for flashing from the custom recovery menu. No Odin.
  5. Some notes:
    • Just select the defaults whenever you are asked about something in the kitchen and are unsure whether to type 'y' or 'n'.
    • There are lots of questions answered in the FAQ in Posts 3 and 4 of the main Android Kitchen thread. So please go through that first if you have any issues.


Direct your questions to this thread, please do not PM me for tech support. Most of all, have patience, take your time and enjoy!!



USEFUL LINKS
The Following 107 Users Say Thank You to dsixda For This Useful Post: [ Click to Expand ]
 
dsixda
Old
#2  
dsixda's Avatar
Recognized Developer / Retired Senior Moderator - OP
Thanks Meter 3784
Posts: 9,560
Join Date: Nov 2007
Location: Ottawa

 
DONATE TO ME
Reserved...
The Following 6 Users Say Thank You to dsixda For This Useful Post: [ Click to Expand ]
 
dsixda
Old
#3  
dsixda's Avatar
Recognized Developer / Retired Senior Moderator - OP
Thanks Meter 3784
Posts: 9,560
Join Date: Nov 2007
Location: Ottawa

 
DONATE TO ME
Preserved...
The Following 4 Users Say Thank You to dsixda For This Useful Post: [ Click to Expand ]
 
Noonski
Old
(Last edited by Noonski; 21st August 2011 at 12:06 AM.) Reason: Moved Down Post
#4  
Noonski's Avatar
Senior Moderator / Recognized Developer
Thanks Meter 105
Posts: 5,273
Join Date: Apr 2005
Location: Amsterdam

 
DONATE TO ME
Reserved For something Fun.....

All the hiccups I had where because I was to anxious to read.
For Real Newbs setting up Sygwin on Windows is harder then baking the rom, I enjoyed myself thanks for that and thanks for your hours of work on this project since the beginning it already gave me great hours with my desire.
Enough with the ass kissing
Attached Thumbnails
Click image for larger version

Name:	Brow.jpg
Views:	52972
Size:	17.5 KB
ID:	695539  
Searching for Anwsers on XDA? Try The FireFox & IE Search Bar Plug In

www.noonski.nl For My Device History, BackLog, Beer Gifting, Off Topic Rants and everything else that won't fit in my Signature.

The Following 4 Users Say Thank You to Noonski For This Useful Post: [ Click to Expand ]
 
D.O.C
Old
#5  
D.O.C's Avatar
RC - RT Committee / Senior Moderator / Recognized Developer - The Android Surgeon
Thanks Meter 3515
Posts: 2,923
Join Date: Jun 2006

 
DONATE TO ME
Thankyou!...many thanks bro...nice job!

The Following User Says Thank You to D.O.C For This Useful Post: [ Click to Expand ]
 
carcassudo
Old
#6  
carcassudo's Avatar
Senior Member
Thanks Meter 9
Posts: 161
Join Date: Jun 2010
sure i will try...
The Following User Says Thank You to carcassudo For This Useful Post: [ Click to Expand ]
 
raffaele88
Old
#7  
raffaele88's Avatar
Senior Member
Thanks Meter 6469
Posts: 2,021
Join Date: Mar 2010
Location: Salerno

 
DONATE TO ME
Big thanks man

Ufficial Site Foxhound www.gearengine.it
The Following User Says Thank You to raffaele88 For This Useful Post: [ Click to Expand ]
 
alesscam
Old
#8  
alesscam's Avatar
Senior Member
Thanks Meter 131
Posts: 2,228
Join Date: Jul 2008
Location: Ancona
wow....welcome dsixda......finally
thanks for your hard work man!!!
My Device:
Galaxy Note
Nexus S


If you like my work,please
DONATE


Italian Support on HDBlog.it

My AxLor ROM:
Galaxy Note
GalaxyS2
NexusS
HTC HD2
The Following User Says Thank You to alesscam For This Useful Post: [ Click to Expand ]
 
clavicle
Old
#9  
clavicle's Avatar
Senior Member
Thanks Meter 35
Posts: 260
Join Date: Sep 2009
Location: Simla
Wonderful news, I always wanted to learn some cooking and you have made my life simpler by showing me the way. thanks a lot man
The Following User Says Thank You to clavicle For This Useful Post: [ Click to Expand ]
 
stian230
Old
#10  
stian230's Avatar
Senior Member
Thanks Meter 1174
Posts: 1,205
Join Date: Oct 2009
Location: Penguin land,way up north.

 
DONATE TO ME
Cooking time
samsung GALAXY SIII Lte I9305
Htc one X
samsung Galaxy S2
Htc vision x 2

Nexus one
Htc Magic x 2
Htc Diamond
Sony ericsson p1i
Htc TyTN II
Sony ericsson p800
Qtek 9000
Qtek 9090



The Following User Says Thank You to stian230 For This Useful Post: [ Click to Expand ]