amjeg 发表于 2021-1-4 00:33:41

编译uboot报错rk3036-sdk.dtb.pre.tmp:77.1-10 syntax error

报错日志如下: 已排除是不是device-tree-compiler的问题;报语法错误的.tmp文件在尾部#include前面多了个"\",删掉后编译会重新生成。。已经查了三天了毫无头绪,求大神带带。
CC      drivers/video/drm/rockchip_display.o
CC      drivers/video/drm/rockchip_crtc.o
CC      drivers/video/drm/rockchip_phy.o
CC      drivers/video/drm/rockchip_bridge.o
CC      drivers/video/drm/rockchip_vop.o
LD      lib/built-in.o
CC      drivers/video/drm/rockchip_vop_reg.o
CC      drivers/video/drm/bmp_helper.o
CC      drivers/video/drm/drm_mipi_dsi.o
CC      drivers/video/drm/dw_mipi_dsi.o
CC      drivers/video/drm/rockchip_dw_hdmi.o
CC      drivers/video/drm/dw_hdmi.o
CC      drivers/video/drm/analogix_dp.o
CC      drivers/video/drm/analogix_dp_reg.o
CC      drivers/video/drm/rockchip_panel.o
LD      drivers/video/drm/built-in.o
LD      drivers/video/built-in.o
LD      drivers/built-in.o
CC      examples/standalone/hello_world.o
CC      examples/standalone/stubs.o
LD      examples/standalone/libstubs.o
LD      examples/standalone/hello_world
OBJCOPY examples/standalone/hello_world.srec
OBJCOPY examples/standalone/hello_world.bin
LD      u-boot
OBJCOPY u-boot.srec
OBJCOPY u-boot-nodtb.bin
SYM   u-boot.sym
DTC   arch/arm/dts/rk3036-sdk.dtb
DTC   arch/arm/dts/rk3188-radxarock.dtb
DTC   arch/arm/dts/rk3288-miqi.dtb
DTC   arch/arm/dts/rk3288-phycore-rdk.dtb
DTC   arch/arm/dts/rk3288-popmetal.dtb
DTC   arch/arm/dts/rk3288-rock2-square.dtb
start=$(/home/saflam/rk3399/rk3399-android-10/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(/home/saflam/rk3399/rk3399-android-10/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x00200000 $start $end
DTC   arch/arm/dts/rk3288-tinker.dtb
Error: arch/arm/dts/.rk3036-sdk.dtb.pre.tmp:77.1-10 syntax error
FATAL ERROR: Unable to parse input tree
make: *** 错误 1
make: *** 正在等待未完成的任务....
Error: arch/arm/dts/.rk3188-radxarock.dtb.pre.tmp:383.1-10 syntax error
FATAL ERROR: Unable to parse input tree
make: *** 错误 1
make: *** 错误 2
make: *** 错误 2

amjeg 发表于 2021-1-4 00:35:55

这是报错.tmp文件的部分内容

&usb_host {
        vbus-supply = <&vcc5v0_host>;
        status = "okay";
};

&usb_otg {
        vbus-supply = <&vcc5v0_otg>;
        status = "okay";
};

&pinctrl {
        usb_otg {
                otg_vbus_drv: host-vbus-drv {
                        rockchip,pins = <0 26 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };

        usb_host {
                host_vbus_drv: host-vbus-drv {
                        rockchip,pins = <2 23 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
};
\#include "rk3036-sdk-u-boot.dtsi"

amjeg 发表于 2021-1-4 22:19:38

有大神给分析下嘛

amjeg 发表于 2021-1-10 00:35:45

本帖最后由 amjeg 于 2021-1-10 01:40 编辑

找到方法了 给同样困扰的朋友们借鉴下https://blog.csdn.net/qq3965470/article/details/112419619 https://i.loli.net/2021/01/10/4ClA6tjgfJsFWBL.png


页: [1]
查看完整版本: 编译uboot报错rk3036-sdk.dtb.pre.tmp:77.1-10 syntax error