Post Reply

[Q] Help a noob build a kernel

16th June 2014, 06:07 AM   |  #1  
OP Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Nov 2010
I'm hoping one of you can help me, my google foo isn't working here and neither is IRC. Probably simple, i'v never built a kernel before.

So I got the source from: github.com/MotorolaMobilityLLC/
and I'm trying to build a stand alone kernel, so I setup my build environment:

Code:
export CROSS_COMPILE=~/NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-

export ARCH=arm
and then I make the config file:

Code:
me@ubuntu:~/android/kernel$ make msm8610_defconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
arch/arm/configs/msm8610_defconfig:443:warning: override: reassigning to symbol REGULATOR_TPS65132
arch/arm/configs/msm8610_defconfig:528:warning: override: reassigning to symbol PPP
arch/arm/configs/msm8610_defconfig:529:warning: override: reassigning to symbol PPP_ASYNC
arch/arm/configs/msm8610_defconfig:531:warning: override: reassigning to symbol PPP_DEFLATE
arch/arm/configs/msm8610_defconfig:532:warning: override: reassigning to symbol PPP_BSDCOMP
arch/arm/configs/msm8610_defconfig:534:warning: override: reassigning to symbol PPPOLAC
arch/arm/configs/msm8610_defconfig:535:warning: override: reassigning to symbol PPPOPNS
arch/arm/configs/msm8610_defconfig:536:warning: override: reassigning to symbol PPP_MPPE
arch/arm/configs/msm8610_defconfig:544:warning: override: reassigning to symbol MOT_UTAG
arch/arm/configs/msm8610_defconfig:546:warning: override: reassigning to symbol SECURITY
arch/arm/configs/msm8610_defconfig:547:warning: override: reassigning to symbol AUDIT
arch/arm/configs/msm8610_defconfig:548:warning: override: reassigning to symbol SECURITY_NETWORK
#
# configuration written to .config
#
By the way, what is the difference between msm8610_defconfig and msm8610-perf_defconfig?

I would now use menuconfig but I don't want to try to customize the kernel this first go, although I get the same results using menuconfig or not.
So now I just make right?

Code:
me@ubuntu:~/android/kernel$ make
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CC      arch/arm/kernel/asm-offsets.s
  GEN     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CC      init/main.o
  CHK     include/generated/compile.h
  CC      init/version.o
  CC      init/do_mounts.o
  CC      init/do_mounts_rd.o
  CC      init/do_mounts_initrd.o


...



  CC      arch/arm/mach-msm/perf_trace_counters.o
  CC      arch/arm/mach-msm/perf_debug.o
  CC      arch/arm/mach-msm/platsmp.o
  CC      arch/arm/mach-msm/hotplug.o
  AS      arch/arm/mach-msm/idle-v7.o
  CC      arch/arm/mach-msm/smd.o
  CC      arch/arm/mach-msm/smd_debug.o
  CC      arch/arm/mach-msm/remote_spinlock.o
/tmp/ccNV5VPY.s: Assembler messages:
/tmp/ccNV5VPY.s:174: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccNV5VPY.s:201: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
  CC      arch/arm/mach-msm/smd_private.o
  CC      arch/arm/mach-msm/smem.o
  CC      arch/arm/mach-msm/smd_init_dt.o
arch/arm/mach-msm/smd_init_dt.c:24:25: fatal error: smd_private.h: No such file or directory
 #include <smd_private.h>
                         ^
compilation terminated.
make[1]: *** [arch/arm/mach-msm/smd_init_dt.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
me@ubuntu:~/android/kernel$
i have checked of course, smd_private.h is right where it should be and where make says it isn't. What gives?
Last edited by kdomn37; 16th June 2014 at 06:16 AM. Reason: make it look better
10th July 2014, 09:44 AM   |  #2  
newhor1z0n's Avatar
Member
Flag San Francisco
Thanks Meter: 367
 
43 posts
Join Date:Joined: Jul 2014
Donate to Me
More
Fix
Quote:
Originally Posted by kdomn37

I'm hoping one of you can help me, my google foo isn't working here and neither is IRC. Probably simple, i'v never built a kernel before.

So I got the source from: github.com/MotorolaMobilityLLC/
and I'm trying to build a stand alone kernel, so I setup my build environment:

Code:
export CROSS_COMPILE=~/NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-

export ARCH=arm
and then I make the config file:

Code:
me@ubuntu:~/android/kernel$ make msm8610_defconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
arch/arm/configs/msm8610_defconfig:443:warning: override: reassigning to symbol REGULATOR_TPS65132
arch/arm/configs/msm8610_defconfig:528:warning: override: reassigning to symbol PPP
arch/arm/configs/msm8610_defconfig:529:warning: override: reassigning to symbol PPP_ASYNC
arch/arm/configs/msm8610_defconfig:531:warning: override: reassigning to symbol PPP_DEFLATE
arch/arm/configs/msm8610_defconfig:532:warning: override: reassigning to symbol PPP_BSDCOMP
arch/arm/configs/msm8610_defconfig:534:warning: override: reassigning to symbol PPPOLAC
arch/arm/configs/msm8610_defconfig:535:warning: override: reassigning to symbol PPPOPNS
arch/arm/configs/msm8610_defconfig:536:warning: override: reassigning to symbol PPP_MPPE
arch/arm/configs/msm8610_defconfig:544:warning: override: reassigning to symbol MOT_UTAG
arch/arm/configs/msm8610_defconfig:546:warning: override: reassigning to symbol SECURITY
arch/arm/configs/msm8610_defconfig:547:warning: override: reassigning to symbol AUDIT
arch/arm/configs/msm8610_defconfig:548:warning: override: reassigning to symbol SECURITY_NETWORK
#
# configuration written to .config
#
By the way, what is the difference between msm8610_defconfig and msm8610-perf_defconfig?

I would now use menuconfig but I don't want to try to customize the kernel this first go, although I get the same results using menuconfig or not.
So now I just make right?

Code:
me@ubuntu:~/android/kernel$ make
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CC      arch/arm/kernel/asm-offsets.s
  GEN     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CC      init/main.o
  CHK     include/generated/compile.h
  CC      init/version.o
  CC      init/do_mounts.o
  CC      init/do_mounts_rd.o
  CC      init/do_mounts_initrd.o


...



  CC      arch/arm/mach-msm/perf_trace_counters.o
  CC      arch/arm/mach-msm/perf_debug.o
  CC      arch/arm/mach-msm/platsmp.o
  CC      arch/arm/mach-msm/hotplug.o
  AS      arch/arm/mach-msm/idle-v7.o
  CC      arch/arm/mach-msm/smd.o
  CC      arch/arm/mach-msm/smd_debug.o
  CC      arch/arm/mach-msm/remote_spinlock.o
/tmp/ccNV5VPY.s: Assembler messages:
/tmp/ccNV5VPY.s:174: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccNV5VPY.s:201: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
  CC      arch/arm/mach-msm/smd_private.o
  CC      arch/arm/mach-msm/smem.o
  CC      arch/arm/mach-msm/smd_init_dt.o
arch/arm/mach-msm/smd_init_dt.c:24:25: fatal error: smd_private.h: No such file or directory
 #include <smd_private.h>
                         ^
compilation terminated.
make[1]: *** [arch/arm/mach-msm/smd_init_dt.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
me@ubuntu:~/android/kernel$
i have checked of course, smd_private.h is right where it should be and where make says it isn't. What gives?

Open smd_init_dt.c and replace:
Code:
#include <smd_private.h>
with
Code:
#include "smd_private.h"
Should do the trick!

Bye the way, are you sure that the msm8610_defconfig should be used? I don't own the device so I'm not sure.

Cheers.

If I helped you or you like my work please click the Thanks button.
The Following 6 Users Say Thank You to newhor1z0n For This Useful Post: [ View ]
10th July 2014, 11:02 AM   |  #3  
dr34m3r94's Avatar
Junior Member
Flag New Delhi
Thanks Meter: 2
 
7 posts
Join Date:Joined: Jul 2014
More
Quote:
Originally Posted by newhor1z0n

Open smd_init_dt.c and replace:

Code:
#include <smd_private.h>
with
Code:
#include "smd_private.h"
Should do the trick!

Bye the way, are you sure that the msm8610_defconfig should be used? I don't own the device so I'm not sure.

Cheers.

If I helped you or you like my work please click the Thanks button.

Thanks! I was getting the same error. Fixed now!

Sent from my Nexus 5 using XDA Premium 4 mobile app
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools
Display Modes


Top Threads in Moto E General by ThreadRank