TinkerBoard / android-7.1.2_kernel

Android Kernel source for Tinker Board
Other
13 stars 10 forks source link

Error building kernel for rk3288_box #20

Closed WrekLess closed 3 years ago

WrekLess commented 3 years ago

I am trying to build the rk3288_box from:

Source: https://bitbucket.org/TinkerBoard_Android/rk-device-rockchip-rk3288/src/a4ff9ca7d14c4ba5971ff54323c58be7302c1043/?at=sbc%2Ftinkerboard%2Frel%2FAndroid-7.1.2-14.01

Receive error when building kernel as follows:

$ make ARCH=arm rockchip_defconfig $ make ARCH=arm rk3288-box.img -j8

Error shown in Terminal (CLI):

wrekless@Inkubator:~/Inkubator/Projects/Firmware/Asus/AvA_RoM_RC_02/kernel$ make ARCH=arm rk3288-box.img -j8 scripts/kconfig/conf --silentoldconfig Kconfig CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK scripts/mod/devicetable-offsets.h CHK include/generated/utsrelease.h DTC arch/arm/boot/dts/rk3288-box.dtb arch/arm/boot/dts/rk3288-box.dts:5:24: fatal error: lcd-box.dtsi: No such file or directory

include "lcd-box.dtsi"

                    ^

compilation terminated. scripts/Makefile.lib:299: recipe for target 'arch/arm/boot/dts/rk3288-box.dtb' failed make[1]: [arch/arm/boot/dts/rk3288-box.dtb] Error 1 arch/arm/Makefile:335: recipe for target 'rk3288-box.dtb' failed make: [rk3288-box.dtb] Error 2

The rk3288-box.dts exists within:

kernel/arch/arm/arm/boot/dts

The lcd-box.dtsi exists within:

kernel/include/dt-bindings/display/screen-timing

I am able to build UBoot for rk3288_box as:

$ make rk3288_box_secure_defconfig $ make -j8

If there is any additional information I can provide, please let me know.

Thanks.

Regards.

WrekLess commented 3 years ago

Resolved the error with one of the following options:

Solution # 1: Add/copy lcd-box.dtsi to kernel/arch/arm/arm/boot/dts/include

Solution # 2: Edit the following lines as follows for rk3288-box.dts:

From:

include "lcd-box.dtsi"

To:

include <dt-bindingsdisplay/screen-timing/lcd-box.dtsi>