Unable to build bluecross kernel

508 views
Skip to first unread message

Lance Vick

unread,
Nov 15, 2018, 2:44:31 PM11/15/18
to Android Building
I am unable to build a kernel for crosshatch. 

Looks like a missing file or broken path?

Also I am only assuming "android-msm-bluecross-4.9-pie-dr1-release" for the branch and "sdm845-perf" for the defconfig from looking at git history as there is no documentation for crosshatch or blueline in https://source.android.com/setup/build/building-kernels

Build commands:

cd "kernel/msm"
git checkout android-msm-bluecross-4.9-pie-dr1-release

export ARCH=arm64
export CROSS_COMPILE="$PWD/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-${gcc_version}/bin/aarch64-linux-android-"

make "sdm845-perf_defconfig"
make -j8


Failure output:

In file included from drivers/clk/qcom/mdss/mdss_pll_trace.h:116:0,                                                                              
                 from drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.c:24:                                                                              
./include/trace/define_trace.h:88:43: fatal error: ./mdss_pll_trace.h: No such file or directory                                                 
 #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)

compilation terminated.

scripts/Makefile.build:336: recipe for target 'drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.o' failed
make[4]: *** [drivers/clk/qcom/mdss/mdss-dsi-pll-10nm.o] Error 1
make[4]: *** Waiting for unfinished jobs....
scripts/Makefile.build:650: recipe for target 'drivers/clk/qcom/mdss' failed
make[3]: *** [drivers/clk/qcom/mdss] Error 2                          
scripts/Makefile.build:650: recipe for target 'drivers/clk/qcom' failed 
make[2]: *** [drivers/clk/qcom] Error 2                               
scripts/Makefile.build:650: recipe for target 'drivers/clk' failed     
make[1]: *** [drivers/clk] Error 2
make[1]: *** Waiting for unfinished jobs....                                      
create image file: arch/arm64/boot/dtbo.img...                         
Can not read file: arch/arm64/boot/dts/google/sdm845-v2-b1c1-devboard.dtbo
arch/arm64/boot/Makefile:71: recipe for target 'arch/arm64/boot/dtbo.img' failed
make[1]: *** [arch/arm64/boot/dtbo.img] Error 255                      
arch/arm64/Makefile:214: recipe for target 'dtbo.img' failed
make: *** [dtbo.img] Error 2
make: *** Waiting for unfinished jobs....                                    
Makefile:1117: recipe for target 'drivers' failed                                                                                                
make: *** [drivers] Error 2  


Emanuele Vannacci

unread,
Mar 11, 2019, 1:16:54 PM3/11/19
to Android Building
i have the same problem. Do you solve this error?

Saurabh Sakhare

unread,
Mar 11, 2019, 2:24:34 PM3/11/19
to android-...@googlegroups.com
Use Makefile in KSRC to get to know more about kernel requirements and compatibility. And check build.config file that'll give you specific requirements for kernel compilation.
I'm compiling wahoo kernel so in my build.config i found 
"ARCH=arm64
BRANCH=android-msm-wahoo-4.4
CC=clang
CLANG_TRIPLE=aarch64-linux-gnu-
CROSS_COMPILE=aarch64-linux-android-
CROSS_COMPILE_ARM32=arm-linux-androideabi-
DEFCONFIG=wahoo_defconfig
EXTRA_CMDS=''
KERNEL_DIR=private/msm-google
POST_DEFCONFIG_CMDS='check_defconfig'
CLANG_PREBUILT_BIN=prebuilts-master/clang/host/linux-x86/clang-4053586/bin/
LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin
LINUX_GCC_CROSS_COMPILE_ARM32_PREBUILTS_BIN=prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin
LZ4_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/lz4
DTC_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/dtc
LIBUFDT_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/libufdt"

This info so I got all requirements to build the kerne. And do add path properly check path using tab.

Saurabh Sakhare



--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Fries

unread,
Mar 11, 2019, 2:35:08 PM3/11/19
to Android Building
The b1c1_defconfig should be the one you want for Pixel 3.  Does that resolve the issue?

-Chris

Saurabh Sakhare

unread,
Mar 12, 2019, 1:08:06 AM3/12/19
to android-...@googlegroups.com
No I wanted for pixel 2. It has wahoo board. so wahoo_defconfig works fine for it's configuration. 

Thanks Mate

Saurabh Sakhare


Reply all
Reply to author
Forward
0 new messages