Firefly开源社区

标题: ubuntu 内核编译 添加mipi 配置 编译失败 [打印本页]

作者: smartwell    时间: 2020-4-6 13:51
标题: ubuntu 内核编译 添加mipi 配置 编译失败
想添加mipi 显示, 按照官网的wiki:
1. 在arch/arm/configs/firefly_linux_defconfig 中添加了三个mipi的配置,
2. 复制 kernel/include/dt-bindings/display/screen-timing/lcd-h546dlb01-mipi.dtsi 到arch/arm/boot/dts/ 路径下
3. 在rk3288-firefly.dts 中添加了 #include "lcd-h546dlb01-mipi.dtsi ",
在没有添加mipi配置的时候, 编译都正常,编译的ubuntu系统可以运行,
添加mipi时, 编译kernel的时候信息:
============Start build kernel============
TARGET_ARCH          =arm
TARGET_KERNEL_CONFIG =firefly_linux_defconfig
TARGET_KERNEL_DTS    =rk3288-firefly
==========================================
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     scripts/mod/devicetable-offsets.h
make[1]: 'include/generated/mach-types.h' is up to date.
  DTC     arch/arm/boot/dts/rk3288-firefly.dtb
Error: arch/arm/boot/dts/lcd-h546dlb01-mipi.dtsi:50.17-30 syntax error
FATAL ERROR: Unable to parse input tree
scripts/Makefile.lib:320: recipe for target 'arch/arm/boot/dts/rk3288-firefly.dtb' failed
make[1]: *** [arch/arm/boot/dts/rk3288-firefly.dtb] Error 1
arch/arm/Makefile:339: recipe for target 'rk3288-firefly.dtb' failed
make: *** [rk3288-firefly.dtb] Error 2
make: *** 正在等待未完成的任务....
  CHK     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
====Build kernel failed!====


作者: 时间的蝴蝶    时间: 2020-4-7 09:54
Error: arch/arm/boot/dts/lcd-h546dlb01-mipi.dtsi:50.17-30 syntax error
FATAL ERROR: Unable to parse input tree
看信息是dts文件的对应行存在格式错误,检查下格式问题
作者: smartwell    时间: 2020-4-8 22:14
时间的蝴蝶 发表于 2020-4-7 09:54
Error: arch/arm/boot/dts/lcd-h546dlb01-mipi.dtsi:50.17-30 syntax error
FATAL ERROR: Unable to parse ...

嗯, 这个是官方提供的lcd dts 文件,我什么都没有改
作者: 时间的蝴蝶    时间: 2020-4-9 10:13
WIKI上驱动开发部分是基于Android进行说明的,而且也不是说直接使用那个lcd文件。
可以参考SDK的文档进行配置:SDK/docs/Develop reference documents/DISPLAY/Rockchip_DRM_Panel_Porting_Guide_V1.6_20190228.pdf




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1