Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Mobile
User Name
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Firefox OS, Sailfish OS, Maemo, MeeGo, Ubuntu Mobile, WebOS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site:


  Search this Thread
Old 04-09-2011, 05:28 AM   #1
LQ Newbie
Registered: Jan 2011
Posts: 28

Rep: Reputation: 0
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:

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 and from 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 ****

root@preetam:~/GT-I5500_OpenSource_Kernel/kernel# ./

    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.

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
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

preetam@preetam:~/GT-I5503T_OpenSource_Kernel/kernel$ ./

    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

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
But this kernel also doesn't work in the real device(Samsung Galaxy 5).

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

$git clone git://
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!!!


android, crosscompile, kernel, kernel config, samsung

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samsung Galaxy S moromendas01 Linux - Mobile 3 01-30-2011 07:20 PM
LXer: Samsung Galaxy Tab review LXer Syndicated Linux News 0 11-17-2010 12:00 PM
LXer: Samsung Galaxy Tab Gets Official LXer Syndicated Linux News 0 09-02-2010 10:01 PM > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 10:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration