Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,296 Members 52,656 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Build Kernel From Source

Tip us?
 
d3athsd00r
Old
(Last edited by d3athsd00r; 16th April 2012 at 09:51 AM.)
#1  
Senior Member - OP
Thanks Meter 279
Posts: 1,508
Join Date: Feb 2011
Default [Q] Build Kernel From Source

Been messing around with the Tiamat kernel to add a couple things, and now I need to build it, but I'm not exactly sure how.

Can someone point me to or explain how to do it exactly? I'm using a Wi-Fi Xoom so that's what I plan to build it for if that makes any difference.
 
d3athsd00r
Old
#2  
Senior Member - OP
Thanks Meter 279
Posts: 1,508
Join Date: Feb 2011
Bump. Anyone?

Sent from my MB860 using xda premium
 
solarnz
Old
#3  
solarnz's Avatar
Retired Recognized Developer
Thanks Meter 2114
Posts: 678
Join Date: May 2010
Location: Sydney

 
DONATE TO ME
I kinda answered this on the android kernel mailing list the other day as well.
https://groups.google.com/d/msg/andr...U/D9EmeFyn47sJ

To flash, download one of the kernel zip files I have released and update the modules and zImage in it.

It is important to note I use the prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- toolchain from AOSP to compile my kernels.


Join me in #xoom on freenode.net.
Need to contact me? I'm on IRC, Twitter and G+
The Following User Says Thank You to solarnz For This Useful Post: [ Click to Expand ]
 
d3athsd00r
Old
#4  
Senior Member - OP
Thanks Meter 279
Posts: 1,508
Join Date: Feb 2011
Sweet thanks. Going to try this out later today possibly.

Sent from my Xoom using XDA Premium HD app
 
d3athsd00r
Old
#5  
Senior Member - OP
Thanks Meter 279
Posts: 1,508
Join Date: Feb 2011
Having issues compiling. Here is what I get:

Code:
Select Code
root@brettclavier-VirtualBox:/home/brettclavier/Downloads/Tiamat_3.0.13# ARCH=arm make mrproper
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   include/config
  CLEAN   .config
root@brettclavier-VirtualBox:/home/brettclavier/Downloads/Tiamat_3.0.13# ARCH=arm make stingray_defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
arch/arm/configs/stingray_defconfig:442:warning: override: reassigning to symbol NTFS_FS
arch/arm/configs/stingray_defconfig:443:warning: override: reassigning to symbol NTFS_RW
#
# configuration written to .config
#
root@brettclavier-VirtualBox:/home/brettclavier/Downloads/Tiamat_3.0.13# ARCH=arm CROSS_COMPILE=/home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- make
make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  Generating include/generated/mach-types.h
  CC      kernel/bounds.s
/bin/sh: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
Does anyone know what the problem here is?
 
solarnz
Old
#6  
solarnz's Avatar
Retired Recognized Developer
Thanks Meter 2114
Posts: 678
Join Date: May 2010
Location: Sydney

 
DONATE TO ME
Quote:
Originally Posted by d3athsd00r View Post
Having issues compiling. Here is what I get:

Code:
Select Code
make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  Generating include/generated/mach-types.h
  CC      kernel/bounds.s
/bin/sh: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
Does anyone know what the problem here is?
"make: /home/brettclavier/Downloads/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found"

It can't find your tool chain.


Join me in #xoom on freenode.net.
Need to contact me? I'm on IRC, Twitter and G+
 
d3athsd00r
Old
#7  
Senior Member - OP
Thanks Meter 279
Posts: 1,508
Join Date: Feb 2011
Well, I just attempted to build the current 3.0.23 kernel and when I do I get
Code:
Select Code
kernel/bounds.c:1: warning: switch -mcpu=cortex-a0 conflicts with -march= switch
kernel/bounds.c:1: sorry, unimplemented: -mfloat-abi=hard and VFP
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
this happens right after issuing the command of
Code:
Select Code
ARCH=arm CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- make
does anyone know how to fix this? Version 3.0.13 builds with no problems. Did something change? Should I be using a different toolchain now?
 
solarnz
Old
#8  
solarnz's Avatar
Retired Recognized Developer
Thanks Meter 2114
Posts: 678
Join Date: May 2010
Location: Sydney

 
DONATE TO ME
You will need to use this toolchain: git://git.teameos.org/eos/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6.git


Join me in #xoom on freenode.net.
Need to contact me? I'm on IRC, Twitter and G+
 
d3athsd00r
Old
#9  
Senior Member - OP
Thanks Meter 279
Posts: 1,508
Join Date: Feb 2011
Quote:
Originally Posted by solarnz View Post
You will need to use this toolchain: git://git.teameos.org/eos/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6.git
thanks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Xperia Z1 Stereo Speaker Mod, Cell Phone Unlocking Legal Again! – XDA Developer TV

Cell Phone Unlocking is legal again!! That and much … more

[OTA Captured] Verizon LG G Pad 8.3 Finally Gets Official KitKat Update

It’s been almost nine months since the LG G Pad … more

Enjoy Wallpaper Overload with PhotoPhase

We don’t usually feature live wallpapers on the XDA Portal unless they are somewhat innovative … more

Monitor What Your Phone’s Camera Sees with Android Wear

Having a smart device strapped to your wrist certainly has its merits. A … more