96boards-hikey / tools-images-hikey960

Tools and images for HiKey960
BSD 2-Clause "Simplified" License
53 stars 47 forks source link

uefi does not recognize aosp images #35

Open yaoshenzhen opened 6 years ago

yaoshenzhen commented 6 years ago

I had a working 960, then 1: repo sync the latest aosp, 2: under folder device/linaro/hikey/installer/hikey960 , run uefi-flash-all.sh 3: the script upgrade partition to 8 and alignment to 1M 4: fastboot flash all images, reboot. 5: it reports "Device Tree header not valid (err:-9)".

I cannot go back to non-uefi mode, is there any way to fix?

hzhuang1 commented 6 years ago

The boot image is different when you run uefi. You need to refer to cc script in (https://github.com/96boards-hikey/l-loader/blob/testing/hikey960_v1.2/cc).

The boot image should be kernel image binded with DTB.

yaoshenzhen commented 6 years ago

thanks for your quick reply. according to https://source.android.com/setup/build/devices , I use boot images hi3660-hikey960.dtb and Image.gz-dtb, the same with the link's you gave.