Build msm kernel for bullhead fails

1,193 views
Skip to first unread message

Yu-Chih Tung

unread,
Feb 8, 2016, 1:38:35 PM2/8/16
to Android Linux Kernel Development
Guys, I am building kernel for Nexus 5x, but it fails and the resource of doing it is scarce.


Here is what I do
  1. Mainly follow the guid in https://source.android.com/source/building-kernels.html, but I need make few changes to proceed....
  2. I checkout the branch 

    origin/android-msm-bullhead-3.10-marshmallow-mr1

  3. I use the prebuild toolchain in my AOSP folder, which is "aosp/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin"

  4. So I set the following

    • export ARCH=arm64

      export SUBARCH=arm64

      export CROSS_COMPILE=home/Android/aosp/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-

      export PATH=home/Android/aosp/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin:$PATH

    • export CROSS_COMPILE=arm-eabi-

  5. make bullhead_defconfig is ok
  6. make fails....: (
    • error: 

      arm-eabi-gcc: error: unrecognized command line option '-mgeneral-regs-only'

My guess is I set it to use a wrong toolchain or wrong target. However, I have tried many different options but with no luck. For example, I have tried different msm branch, different toolchian version (4.6~4.8), and set different ARCH. ARCH seems must be set as arm64, otherwise, I can't set make bullhead_defconfig. Does anyone have any thought? Any suggestion will be very welcome.


DR

unread,
Feb 11, 2016, 10:18:31 AM2/11/16
to Android Linux Kernel Development
I have same issue. I have tried with different toolchain(arm-eabi-4.6, arm-eabi-4.8, arm-linux-androideabi-4.9) but results was same.

can anyone give help quickly?

bechts...@gmail.com

unread,
Feb 11, 2016, 10:18:31 AM2/11/16
to Android Linux Kernel Development
Building ARM64 kernels requires an aarch64 toolchain. Following config should work with vanilla AOSP sync:

  export PATH=<your_aosp_root>/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:$PATH
  export ARCH=arm64
  export CROSS_COMPILE=aarch64-linux-android-

류대희(Dae-Hee Ryoo)

unread,
Feb 11, 2016, 9:17:14 PM2/11/16
to android...@googlegroups.com
thanks. working well..

--
--
unsubscribe: android-kerne...@googlegroups.com
website: http://groups.google.com/group/android-kernel
---
You received this message because you are subscribed to a topic in the Google Groups "Android Linux Kernel Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-kernel/xg8BGtTQrhQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-kerne...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages