您好,
我是 NXP 的新手,在为自定义主板构建镜像时遇到了问题。
这是我在构建镜像时遇到的错误。
This is the err i got during building the imageThis is the err i got during building the imageThis is the err i got during building the image这是我在构建镜像时遇到的错误。
added the custom board dts name in imx8mp_evk.hadded the custom board dts name in imx8mp_evk.hadded the custom board dts name in imx8mp_evk.h在 imx8mp_evk.h 中添加了自定义板的 DTS 名称
如何解决这个错误?
你是否修改过与 u-boot 相关的任何配置?
请运行以下命令重新构建 u-boot。
$ bitbake u-boot-imx -c cleansstate
$ bitbake u-boot-imx
你好,
我在 sources/meta-freescale/conf/machine/imx8mp-lpddr4-evk.conf 文件中的变量 KERNEL_DEVICETREE:append:use-nxp-bsp 中添加了“freescale/imx8mp-evk-delta.dtb”。
i got this erri got this erri got this err我收到这个错误
here i added the dtshere i added the dtshere i added the dts这里我添加了dts
我收到错误提示
请在 sources/meta-freescale/conf/machine/imx8mp-lpddr4-evk.conf 文件中的 KERNEL_DEVICETREE:append:use-nxp-bsp 变量中添加“freescale/imx8mp-evk-delta.dtb”。
然后运行“bitbake virtual/kernel”。
这是我添加到 u-boot 配置中的内容
CONFIG_DEFAULT_FDT_FILE="imx8mp-evk-delta.dtb"
u-boot config i added this lineu-boot config i added this line我在 u-boot 配置中添加了这一行
清理并重新构建 u-boot 后,我仍然遇到同样的错误。
请参考以下步骤在 u-boot 中添加和使用新的 dts 文件。
$ bitbake u-boot-imx -c cleansstate
$ bitbake u-boot-imx -c patch
进入 u-boot 源代码文件夹 tmp/work/imx8mp_lpddr4_evk-poky-linux/u-boot-imx/2024.04/git,请将 dts 文件 imx8mp-evk-delta.dts 添加到 arch/arm/dts/ 文件夹中。
请按如下方式修改configurations/imx8mp_evk_defconfig。
CONFIG_DEFAULT_DEVICE_TREE="imx8mp-evk"
修改为:
CONFIG_DEFAULT_DEVICE_TREE="imx8mp-evk-delta"
然后重新构建 u-boot:
$ bitbake u-boot-imx