DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 1 of 1

Thread: compiling Linux kernel for Samsung Galaxy 5 : compiled zImage doesn't work

  1. Junior Droid
    preetb123's Avatar
    Member #
    170391
    Join Date
    Feb 2011
    Posts
    25
    Phone
    Android Emulator(1.5 to 2.3)
    #1

    compiling Linux kernel for Samsung Galaxy 5 : compiled zImage doesn't work

    I am trying to compile Linux kernel for my Samsung Galaxy 5 with full Netfilter support:
    The phone specifications are:

    Code:
     Model number : GT-I5503
        Firmware version : 2.1-update1
        Baseband version : I5503DDJG5
        Kernel version : 2.6.29-perf root@SE-S605 #5
        Build number : ERE27
    I downloaded **GT-I5500_OpenSource.zip** and **GT-I5503T_OpenSource.zip** from opensource.samsung.com as they contain the required kernel trees for the samsung phone, and did the following steps:

    I modified the .config file for enabling full netfilter support and then for **GT-I5500_OpenSource.zip**

    Code:
    root@preetam:~/GT-I5500_OpenSource_Kernel/kernel# ./make_kernel.sh
    
        root@preetam:~/GT-I5500_OpenSource_Kernel/kernel# ARCH=arm CROSS_COMPILE=~/myandroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- make

    Here i chose the toolchain from android source.

    Now i got the required output, i.e.

    Code:
      CHK     include/linux/compile.h
          Kernel: arch/arm/boot/Image is ready
          Kernel: arch/arm/boot/zImage is ready
          Building modules, stage 2.
          MODPOST 30 modules
        root@preetam:~/GT-I5500_OpenSource_Kernel/kernel#
    I copied this zImage in the phones sdcard, and tried to flash the kernel using **SGS Kernel Flasher**. The phone rebooted, but i could still see the old kernel version in the settings... And there is no netfilter(iptables) functionality.

    I followed the same steps with **GT-I5503T_OpenSource.zip**

    Code:
     preetam@preetam:~/GT-I5503T_OpenSource_Kernel/kernel$ ./make_kernel.sh
    
        root@preetam:~/GT-I5503T_OpenSource_Kernel/kernel# find . -type f -name ‘*’ -exec dos2unix {} \;
    
        root@preetam:~/GT-I5503T_OpenSource_Kernel/kernel# make ARCH=arm CROSS_COMPILE=~/myandroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
    and finally

    Code:
     CHK     include/linux/compile.h
          Kernel: arch/arm/boot/Image is ready
          Kernel: arch/arm/boot/zImage is ready
          Building modules, stage 2.
          MODPOST 30 modules
        root@preetam:~/GT-I5503T_OpenSource_Kernel/kernel#
    But this kernel also doesn't work in the real device(Samsung Galaxy 5).

    The third time, I copied the .config file from GT-I5503T_OpenSource.zip into the common folder, here the common folder has the kernel from

    Code:
    $git clone git://android.git.kernel.org/kernel/common
    and did the same steps, I got zImage but it failed to work in the phone.

    Please someone tell, what exactly am i doing wrong or do i need to go for kernel tree from some other sources. I did kernel compilation process for almost 5-7 times, but failed.

    I tried to flash kernel from windows with fastboot, but that also didn't work...

    please someone help... Thank you!!!
  2. Sponsor
    DF Advertising
    Join Date
    Nov 2008
    Location
    DroidForums.net
     
     
     
     

Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Replies: 0
    Last Post: 03-21-2011, 11:13 AM
  2. error with “pmem.c” compiling linux source code for android
    By preetb123 in forum Droid Development
    Replies: 2
    Last Post: 03-19-2011, 08:25 PM
  3. Replies: 2
    Last Post: 03-19-2011, 01:35 AM
  4. error while compiling linux kernel source for android
    By preetb123 in forum Droid Development
    Replies: 0
    Last Post: 03-17-2011, 08:33 PM
  5. Samsung Galaxy S roms - do they work on different phones?
    By Silverwing in forum Android General Discussions
    Replies: 1
    Last Post: 09-03-2010, 04:30 PM

Search tags for this page

android emulator zimage

,
android kernel compile howto
,

android zimage

,
best kernel for gt-i5503
,

compile android kernel

,

compile samsung kernel

,

edit zimage

,

how to compile android from source for samsung galaxy

,

how to compile android kernel#gsc.tab

,

how to compile kernel

,

how to edit kernel galaxy

,

kernel galaxy 5

,

samsung galaxy 5 model number

,
what is inside a zimage android samsung galaxy
,

zimage android

Click on a term to search our site for related topics.
Find us on Google+