Where is kirin970-hikey970.dtb?


#1

Build doc says it is in arch/arm64/boot/dts/hisilicon/ kirin970-hikey970.dtb but it is not there after cloning. It is also not in 96boards-hikey970 git repo online.


#2

Which build doc? (always better to put a link into questions like this)


#3


It saying,

Copy Pre-Built Kernel Binaries

  • Copy kirin970-hikey970.dtb.dtb (arch/arm64/boot/dts/hisilicon/ kirin970-hikey970.dtb) to the device/linaro/hikey-kernel directory as file: kirin970-hikey970.dtb-4.9

Where can I find it???


#4

I don’t think hikey970 repos contain pre-built kernel binaries so what this section really means is how to copy a self-built kernel into where the AOSP build system expects to find it (put another way, AOSP does not build the kernel itself… it assumes that it is pre-built before compiling AOSP).

It looks to me like the instructions on the web site were originally a single document and they have been split appart with hyperlinking them together properly. I have filed a bug about this:

For now the instructions to build the kernel yourself are found in the other document:


#5

Right. Something is wrong on the documents.
I generate it using this build step.

  1. Download kernel from git ( git clone https://github.com/96boards-hikey/linux.git )
  2. build kernel and use it. When I need to use ramdisk.img, I get it from http://hihope.org/resource/hikey970_android_8_images.rar )
  3. Build Android

But for my case, I failed to use built android when I used it with master branch. I think something still missing. I don’t know which android version I should use to build. I didn’t feel Hikey’s software support is good.


#6

When building kernel images the dtb can be built manually using:

make dtbs

that will create the dtb file arch/arm64/boot/dts/hisilicon/kirin970-hikey970.dtb

Hope that answers the question