Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
d3athsd00r
Old
(Last edited by d3athsd00r; 16th April 2012 at 09:51 AM.)
#1  
Senior Member - OP
Thanks Meter 249
Posts: 1,406
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 249
Posts: 1,406
Join Date: Feb 2011
Bump. Anyone?

Sent from my MB860 using xda premium
 
solarnz
Old
#3  
solarnz's Avatar
Recognized Developer
Thanks Meter 2102
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 249
Posts: 1,406
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 249
Posts: 1,406
Join Date: Feb 2011
Having issues compiling. Here is what I get:

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
Recognized Developer
Thanks Meter 2102
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:
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 249
Posts: 1,406
Join Date: Feb 2011
Well, I just attempted to build the current 3.0.23 kernel and when I do I get
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:
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
Recognized Developer
Thanks Meter 2102
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 249
Posts: 1,406
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

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Guide Your Sheep to Safety with Finger Shepherd

Just a coupe of days ago, we brought you news about a game calledAgent Sheep. In that … more

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more

Careers in Android: Recruiter Reveals How Resumes are Chosen – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

HttpClient Tutorial to Upload and Download with Your App

Developers wanting to interact with the Internet need to choose a package to do the … more