Augustus007 发表于 2020-7-24 10:32:18

编译u-boot出错

本帖最后由 Augustus007 于 2020-7-27 15:51 编辑

SDK下使用make u-boot编译NXP官方下载的u-boot编译不成功。
MKIMAGE u-boot.img
MKIMAGE u-boot-dtb.img
CAT   u-boot-dtb.bin
COPY    u-boot.bin
LD      u-boot.elf
CC      spl/common/spl/spl.o
CC      spl/arch/arm/cpu/armv8/fwcall.o
CC      spl/lib/display_options.o
LD      spl/arch/arm/cpu/armv8/built-in.o
LD      spl/common/spl/built-in.o
LD      spl/lib/built-in.o
LD      spl/u-boot-spl
OBJCOPY spl/u-boot-spl-nodtb.bin
COPY    spl/u-boot-spl.bin
MKIMAGE SPL
CFGCHKu-boot.cfg
make: Leaving directory '/home/ubuntu/workspace/imx8mm/sdk/OK8MM-linux-sdk/OK8MM-linux-uboot/uboot-imx'
install /home/ubuntu/workspace/imx8mm/sdk/OK8MM-linux-sdk/OK8MM-linux-uboot/uboot-imx/u-boot-nodtb.bin /home/ubuntu/workspace/imx8mm/sdk/OK8MM-linux-sdk/images/u-boot
install /home/ubuntu/workspace/imx8mm/sdk/OK8MM-linux-sdk/OK8MM-linux-uboot/uboot-imx/spl/u-boot-spl.bin /home/ubuntu/workspace/imx8mm/sdk/OK8MM-linux-sdk/images/u-boot
make -C /home/ubuntu/workspace/imx8mm/sdk/OK8MM-linux-sdk/tools/imx-boot-tools clean
make: Entering directory '/home/ubuntu/workspace/imx8mm/sdk/OK8MM-linux-sdk/tools/imx-boot-tools'
make: Leaving directory '/home/ubuntu/workspace/imx8mm/sdk/OK8MM-linux-sdk/tools/imx-boot-tools'
make -C /home/ubuntu/workspace/imx8mm/sdk/OK8MM-linux-sdk/tools/imx-boot-tools flash_ddr4_evk_no_hdmi SOC=iMX8MM
make: Entering directory '/home/ubuntu/workspace/imx8mm/sdk/OK8MM-linux-sdk/tools/imx-boot-tools'
make: *** No rule to make target 'fsl-imx8mm-evk.dtb', needed by 'u-boot.itb'.Stop.
make: Leaving directory '/home/ubuntu/workspace/imx8mm/sdk/OK8MM-linux-sdk/tools/imx-boot-tools'
Makefile:44: recipe for target 'u-boot' failed
make: *** Error 2
make: *** No rule to make target 'fsl-imx8mm-evk.dtb', needed by 'u-boot.itb'.Stop.
这个问题怎么解决呢?
谢谢!

Augustus007 发表于 2020-7-27 15:51:08

已解决,主要是没把uboot中的fsl-imx8mm-evk.dtb放到imx-boot-tools下,
创建软链接解决。
ubuntu@ubuntu:~/workspace/imx8mm/sdk/OK8MM-linux-sdk/tools/imx-boot-tools$ ln -s ../../OK8MM-linux-uboot/uboot-imx/arch/arm/dts/fsl-imx8mm-evk.dtb fsl-imx8mm-evk.dtb
页: [1]
查看完整版本: 编译u-boot出错