Hi all,

Finally I success to build my own kernel it works fine and i add some
drivers for my kernel too.
Building SGS2 kernel in x steps:

   1. Download from samsung open source site the kernel tree (i
   used samsung_kernel_update2)
   2. Download android ndk (for CROSS_COMPILE, i used /android-ndk-r5b)
   3. you need basic ramdisk (you can compile samsung platform or download
   from http://forum.xda-developers.com/showthread.php?t=1294436 (thanks to
   Chenglu)
   4. if you want to edit your kernel config file make ARCH=arm menuconfig
   or default make ARCH=arm c1_rev02_defconfig
   5. compile the kernel with: make ARCH=arm
   
CROSS_COMPILE=/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-

   6. copy all kernel modules to new directory ramdisk/lib/modules (the
   default is 7 modules)
   7. open your .config file and add the path to your ramdisk
   (CONFIG_INITRAMFS_SOURCE="/ramdisk")
   8. compile the kernel make ARCH=arm
   
CROSS_COMPILE=/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
   9. under /arch/arm/boot you receive the zImage
   10. tar -cvf new_I9100.tar zImage
   11. use odin to burn your new kernel (PDA)

good luck

On Mon, Dec 19, 2011 at 9:18 PM, s.rawat <[email protected]> wrote:

> I tried even this too, I may have misconifgured the step but what I know
> is that after
> combining it along with the initramfs(aka rootfs) either by giving the
> path in deconfig or manually tarring it using xvf .The kernel zimage does
> comes out to be bigger than previous one(~6.5 mb) but on flashing it via
> odin or heimdall the boot screen couldn't go any further.
> Can you plz post your experience if you have actually done hands on it.
> Rgds,
> saurabh
>
> "..pain is temporary.....quitting lasts forever......"
>
>
>
> On Thu, Dec 15, 2011 at 6:42 PM, cd <[email protected]> wrote:
>
>> This gonna be a long post!
>> Samsung kernels have a initramfs
>> so
>> get the stock zImage, and then unpack it(a chinese guy posted an
>> unpacker on xda (sgs2 dev sub-forum), it works fine for me with sgs/
>> tab/s2 kernels
>>
>> Once you have extracted the initramfs, open up your deconfig, and set
>> the path to it
>> Then compile, and it should boot fine.
>>
>> P.S. The first line was meant to be correct, but i dont wanna do
>> that :D , but if you need any help, feel free to ask :)
>>
>> --
>> unsubscribe: [email protected]
>> website: http://groups.google.com/group/android-kernel
>>
>
>  --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-kernel
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to