[Q] Build Kernel From Source

Search This thread

d3athsd00r

Senior Member
Feb 24, 2011
1,529
274
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.
 
Last edited:

d3athsd00r

Senior Member
Feb 24, 2011
1,529
274
Sweet thanks. Going to try this out later today possibly.

Sent from my Xoom using XDA Premium HD app
 

d3athsd00r

Senior Member
Feb 24, 2011
1,529
274
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

Retired Recognized Developer
May 23, 2010
679
2,121
Sydney
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.
 

d3athsd00r

Senior Member
Feb 24, 2011
1,529
274
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

Retired Recognized Developer
May 23, 2010
679
2,121
Sydney
You will need to use this toolchain: git://git.teameos.org/eos/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6.git
 

Top Liked Posts