• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[TUTORIAL][VIDEO]Build your own Android kernel

Which developer are you?


  • Total voters
    265
Search This thread

brakke97

Senior Member
Jul 16, 2012
412
216
Leuven
Hello, @brakke97 !
I have some error when I build kernel for Moto G KitKat from source without modding. I use linaro toolchain 4.8 and Xubuntu x64 on VirtualBox. Can you help me? Sry for my English :eek:

Code:
CC      lib/string.o
  CC      lib/timerqueue.o
  CC      lib/vsprintf.o
  AR      lib/lib.a
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: vmlinux.o(.data+0xbce4): Section mismatch in reference from the variable msm_mpm_debug_mask to the function .init.text:mpm_irq_domain_linear_size()
The variable msm_mpm_debug_mask references
the function __init mpm_irq_domain_linear_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: vmlinux.o(.data+0xbcfc): Section mismatch in reference from the variable msm_mpm_debug_mask to the function .init.text:mpm_irq_domain_legacy_size()
The variable msm_mpm_debug_mask references
the function __init mpm_irq_domain_legacy_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

To build the kernel despite the mismatches, build with:
'make CONFIG_NO_ERROR_ON_MISMATCH=y'
(NOTE: This is not recommended)
make[2]: *** [vmlinux.o] Error 1
make[1]: *** [vmlinux.o] Error 2
make: *** [sub-make] Error 2

Have you used the right defconfig? Or otherwise need to compile your kernel with another toolchain.
 
G

GuestK00191

Guest
Have you used the right defconfig? Or otherwise need to compile your kernel with another toolchain.

defconfig is right. Compile with tollchain 4.6 by google good. Linaro 4.6.4-4.8 маке warnings and mismatches for me, but I want build kernel with linaro toolchain =(
 
Last edited:

YamyYugi

Senior Member
Nov 14, 2013
166
11
@brakke97 hey, im try this:
i do:
[email protected]:~/android-kernel/linux$ export CROSS_COMPILE=/home/yamyyugi/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-

and next:
make clean && make mrproper
and says: make: *** no rule to make target `clean'. stop

please help me :S idk what do more. thanks
 

juangcardoso

Senior Member
Mar 6, 2015
122
40
23
Rio de Janeiro
Can please anyone help, me?

When I try to use the command line make clean && make mrproper I get the fallowing error:

Code:
[email protected]:~/Desktop/ForceKernel/Victara/source-victara$ make clear && make mrproper
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
fs/Kconfig:232: can't open file "fs/f2fs/Kconfig"
/home/juangcardoso/Desktop/ForceKernel/Victara/source-victara/scripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
/home/juangcardoso/Desktop/ForceKernel/Victara/source-victara/Makefile:501: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target 'clear'.  Stop.

Anyone know how to fix it?

PS¹: Using Motorola Moto X 2014 Stock Marshmallow Kernel's Sources;
PS²: Using UBUNTU in VirtualBox.
PS³: Java, SDK and NDK correctly installed.

Edit:

Issue solved... Is just a problem with Motorola Source's files and I get it on Github! :D
 
Last edited:

ranchu-panchu

Senior Member
Nov 16, 2016
144
4
device tree

Hi,

Isn't it required to build the device tree (dts source , dtb after compilation) ? If not - then how it is being builded and where is it in ROM ?

Thanks,
Ranchu
 

Top Liked Posts