account arrowhead-down arrowhead-up mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the Open Devices community!

This is where we discuss open source and development related questions on our Open Devices initiative.

Missing kernel-dtb-maple

SOLVED
Regular
Message 1 of 8
2,728 Views
Message 1 of 8

Missing kernel-dtb-maple

After making sure that I'm up to date with the build guide I run source build/envsetup.sh && lunch selecting 46 and then running make -j4, the build fails at:


[ 99% 723/724] glob tools/tradefederation/core/atest/**/*.py
ninja: error: 'kernel/sony/msm-4.9/common-kernel/kernel-dtb-maple', needed by 'out/target/product/maple/kernel', missing and no known rule to make it
13:35:43 ninja failed with: exit status 1

 

And this is what the LA.UM.6.4.r1.xml looks like:

 

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="sony" fetch="https://github.com/sonyxperiadev/" />
<remove-project name="platform/hardware/qcom/camera" />
<project path="kernel/sony/msm-4.4/common-headers" name="device-sony-common-headers" groups="device" remote="sony" revision="aosp/LA.UM.6.4.r1" />
<project path="kernel/sony/msm-4.4/common-kernel" name="vendor-sony-kernel" groups="device" remote="sony" revision="aosp/LA.UM.6.4.r1" clone-depth="1"/>
<project path="kernel/sony/msm-4.4/kernel" name="kernel" groups="device" remote="sony" revision="aosp/LA.UM.6.4.r1" />
<project path="kernel/sony/msm-4.4/kernel/drivers/staging/wlan-qc/fw-api" name="vendor-qcom-opensource-wlan-fw-api" groups="device" remote="sony" revision="aosp/LA.UM.6.4.r1" />
<project path="kernel/sony/msm-4.4/kernel/drivers/staging/wlan-qc/qca-wifi-host-cmn" name="vendor-qcom-opensource-wlan-qca-wifi-host-cmn" groups="device" remote="sony" revision="aosp/LA.UM.6.4.r1" />
<project path="kernel/sony/msm-4.4/kernel/drivers/staging/wlan-qc/qcacld-3.0" name="vendor-qcom-opensource-wlan-qcacld-3.0" groups="device" remote="sony" revision="aosp/LA.UM.6.4.r1" />
<project path="vendor/qcom/opensource/camera" name="camera" groups="device" remote="sony" revision="aosp/LA.UM.6.4.r1" />
</manifest>

 

It seems to be looking for a kernel-dtb-maple for the 4.9 kernel when there is none.

 

The kernel branch I choose is the same as the android branch (android-9.0.0_r6).

 

Should I've chosen the master branch?

1 ACCEPTED SOLUTION

Accepted Solutions
Developer World
Message 6 of 8
2,630 Views
Message 6 of 8

Re: Missing kernel-dtb-maple

Hi

the issue is that the kernel build script must run from common-kernel folder

in your case

/opt/android/kernel/sony/msm-4.9/common-kernel/build-kernels.sh

the commands taht will build your kernel will be

cd /opt/android/kernel/sony/msm-4.9/common-kernel/
./build-kernels.sh

 

View solution in original post

7 REPLIES 7
Adviser
Message 2 of 8
2,697 Views
Message 2 of 8

Re: Missing kernel-dtb-maple

I am getting the exact same issue for the f8331 (kagura)

 

[ 99% 723/724] glob frameworks/base/core/res/res/**/*
ninja: error: 'kernel/sony/msm-4.9/common-kernel/kernel-dtb-kagura', needed by 'out/target/product/kagura/kernel', missing and no known rule to make it
16:15:15 ninja failed with: exit status 1

#### failed to build some targets (02:07 (mm:ss)) ####

Highlighted
Adviser
Message 3 of 8
2,695 Views
Message 3 of 8

Re: Missing kernel-dtb-maple

So it seems like all prebuild kernels are missing, you have to compile the kernel yourself, but there is a easy way to do that

 

Building the Kernel manually using the script in

 

/opt/android/kernel/sony/msm-4.9/common-kernel/build-kernels.sh

But this scripts builds all kernels for all devices, you should first adjust the script so that it only builds the kernel you want (in my case tone/kagura), you just have to edit two variables.

So i did that and run number one

 

[ 99% 955/956] glob vendor/oss/release-keys
[ 76% 153/201] Yacc: dtc <= external/dtc/dtc-parser.y
external/dtc/dtc-parser.y: conflicts: 3 shift/reduce
[100% 201/201] Install: out/host/linux-x86/bin/mkdtimg
./build-kernels.sh: line 31: cd: ../../../../kernel/sony/msm-4.9//kernel: No such file or directory

It doesn't like the first variable, seems like something is wront there, i hard-set the path to my path (should be looked into what is wrong here by someone with more time)

 

run number two

#
# configuration written to .config
#
make[1]: Leaving directory '/opt/android/out/kernel-tmp'
make[1]: Entering directory '/opt/android/out/kernel-tmp'
  GEN     ./Makefile
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  GEN     ./Makefile
  WRAP    arch/arm64/include/generated/asm/bugs.h
  WRAP    arch/arm64/include/generated/asm/clkdev.h
  WRAP    arch/arm64/include/generated/asm/cputime.h
  WRAP    arch/arm64/include/generated/asm/delay.h
  WRAP    arch/arm64/include/generated/asm/div64.h
  WRAP    arch/arm64/include/generated/asm/dma.h
  WRAP    arch/arm64/include/generated/asm/dma-contiguous.h
  WRAP    arch/arm64/include/generated/asm/early_ioremap.h
  WRAP    arch/arm64/include/generated/asm/emergency-restart.h
  WRAP    arch/arm64/include/generated/asm/errno.h
  WRAP    arch/arm64/include/generated/asm/hw_irq.h
  WRAP    arch/arm64/include/generated/asm/ioctl.h
  WRAP    arch/arm64/include/generated/asm/ioctls.h
  WRAP    arch/arm64/include/generated/asm/ipcbuf.h
  WRAP    arch/arm64/include/generated/asm/irq_regs.h
  WRAP    arch/arm64/include/generated/asm/kdebug.h
  WRAP    arch/arm64/include/generated/asm/kmap_types.h
  WRAP    arch/arm64/include/generated/asm/kvm_para.h
  WRAP    arch/arm64/include/generated/asm/local.h
  WRAP    arch/arm64/include/generated/asm/local64.h
  WRAP    arch/arm64/include/generated/asm/mcs_spinlock.h
  WRAP    arch/arm64/include/generated/asm/mm-arch-hooks.h
  WRAP    arch/arm64/include/generated/asm/mman.h
  WRAP    arch/arm64/include/generated/asm/msgbuf.h
  WRAP    arch/arm64/include/generated/asm/msi.h
  WRAP    arch/arm64/include/generated/asm/mutex.h
  WRAP    arch/arm64/include/generated/asm/poll.h
  WRAP    arch/arm64/include/generated/asm/preempt.h
  WRAP    arch/arm64/include/generated/asm/resource.h
  WRAP    arch/arm64/include/generated/asm/rwsem.h
  WRAP    arch/arm64/include/generated/asm/segment.h
  WRAP    arch/arm64/include/generated/asm/sembuf.h
  WRAP    arch/arm64/include/generated/asm/serial.h
  WRAP    arch/arm64/include/generated/asm/shmbuf.h
  WRAP    arch/arm64/include/generated/asm/simd.h
  WRAP    arch/arm64/include/generated/asm/sizes.h
  CHK     include/generated/uapi/linux/version.h
  WRAP    arch/arm64/include/generated/asm/socket.h
  WRAP    arch/arm64/include/generated/asm/sockios.h
  WRAP    arch/arm64/include/generated/asm/swab.h
  UPD     include/generated/uapi/linux/version.h
  WRAP    arch/arm64/include/generated/asm/switch_to.h
  WRAP    arch/arm64/include/generated/asm/termbits.h
  WRAP    arch/arm64/include/generated/asm/termios.h
  WRAP    arch/arm64/include/generated/asm/trace_clock.h
  WRAP    arch/arm64/include/generated/asm/types.h
  WRAP    arch/arm64/include/generated/asm/unaligned.h
  WRAP    arch/arm64/include/generated/asm/user.h
  WRAP    arch/arm64/include/generated/asm/xor.h
  WRAP    arch/arm64/include/generated/asm/vga.h
  WRAP    arch/arm64/include/generated/uapi/asm/kvm_para.h
  HOSTCC  scripts/basic/bin2c
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/recordmcount
  HOSTCC  scripts/sortextable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/extract-cert
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/genksyms/genksyms.o
  HOSTCC  scripts/dtc/flattree.o
  SHIPPED scripts/genksyms/parse.tab.c
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/mod/mk_elfconfig
  HOSTCC  scripts/dtc/checks.o
  CC      scripts/mod/empty.o
  HOSTCC  scripts/dtc/util.o
  CC      scripts/mod/devicetable-offsets.s
  SHIPPED scripts/dtc/dtc-lexer.lex.c
  HOSTCC  scripts/selinux/mdp/mdp
  SHIPPED scripts/genksyms/lex.lex.c
  SHIPPED scripts/dtc/dtc-parser.tab.h
  SHIPPED scripts/dtc/dtc-parser.tab.c
  SHIPPED scripts/genksyms/keywords.hash.c
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  SHIPPED scripts/genksyms/parse.tab.h
  HOSTCC  scripts/dtc/dtc-parser.tab.o
/opt/android/kernel/sony/msm-4.9/kernel/scripts/extract-cert.c:21:25: fatal error: openssl/bio.h: No such file or directory
compilation terminated.
scripts/Makefile.host:101: recipe for target 'scripts/extract-cert' failed

So i looked which package contains openssl/bio.h --> libssl-dev --> installed this package, run number three

 

/bin/sh: 1: bc: not found
/opt/android/kernel/sony/msm-4.9/kernel/./Kbuild:42: recipe for target 'include/generated/timeconst.h' failed
make[2]: *** [include/generated/timeconst.h] Error 127

So i installed bc, run number four and now it worked fine =) the kernel compiles

 

And now also the AOSP Build continues, looks fine so far, will report if everything worked out and built completely

Learner
Message 4 of 8
2,662 Views
Message 4 of 8

Re: Missing kernel-dtb-maple

 
Developer World
Message 5 of 8
2,631 Views
Message 5 of 8

Re: Missing kernel-dtb-maple

Hi,

all Android 9 kernels have been released !

 

Please sync and build

 

Regards

Alin

 

Developer World
Message 6 of 8
2,631 Views
Message 6 of 8

Re: Missing kernel-dtb-maple

Hi

the issue is that the kernel build script must run from common-kernel folder

in your case

/opt/android/kernel/sony/msm-4.9/common-kernel/build-kernels.sh

the commands taht will build your kernel will be

cd /opt/android/kernel/sony/msm-4.9/common-kernel/
./build-kernels.sh

 

View solution in original post

Regular
Message 7 of 8
2,533 Views
Message 7 of 8

Re: Missing kernel-dtb-maple

Good answer, but wouldn't it be easier if you just had that fixed instead of telling future builders to do the suggestion above? This is a quick fix and it won't work for everyone in the long run.

 

No harm meant.

Developer World
Message 8 of 8
2,478 Views
Message 8 of 8

Re: Missing kernel-dtb-maple

Hi,

 

I your case you wanted to build device images while the device was in the early development stages and we decided not to provide kernel images untill device reaches a stability checkpoint.

 

The kernel is provided as a binary and the kernel compilation works as it is intended since it is not part of the android build.

 

Regards

Alin