怎么编译imx8mmevk的固件

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

怎么编译imx8mmevk的固件

2,357 Views
2046880190
Contributor III

大家好:

   之前我刚编译yocto的时候,选错了板子,选了imx8mqevk,导致我编译出来的东西是下面这样的,这是我用dd将。sdcard烧录之后,磁盘里面的内容。很明显名字是mqevk

pastedImage_1.png

现在设备是无法启动的

看nxp官方提供的固件。

是下面这样的,使用dd命令,可以正常启动设备

pastedImage_2.png

现在我需要编译出适合我的板子的固件,我将MACHINE改为imx8mmevk,bitbake的时候报错,说是无效的板子,请问我现在应该怎么办

pastedImage_3.png

Labels (1)
0 Kudos
5 Replies

2,172 Views
jimmychan
NXP TechSupport
NXP TechSupport

in the imx-yocto-bsp folder, type the following command to build the bsp for i.mx8mmevk again.

e.g.

DISTRO=fsl-imx-xwayland MACHINE=imx8mmevk source fsl-setup-release.sh -b build-xwayland-8mm

it will create a folder "build-xwayland-8mm". you can check the conf/local.conf, the machine should be imx8mmevk.

0 Kudos

2,172 Views
2046880190
Contributor III

你好:

   今天我重新repo sync,遇到几个问题,https://community.nxp.com/thread/504115,请问你能帮助我一下么?谢谢

0 Kudos

2,172 Views
jimmychan
NXP TechSupport
NXP TechSupport

I would suggest you to create a new folder to build the BSP.

repo (google) may not work in China. You can use the tsinghua one.

Git Repo | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror 

then follow the Yocto user's guide to do the "repo init" and "repo sync".

and then

DISTRO=fsl-imx-xwayland MACHINE=imx8mmevk source fsl-setup-release.sh -b build-xwayland-8mm

and then

bitbake core-image-minimal

It should work.

0 Kudos

2,172 Views
2046880190
Contributor III

你好:

   出错的时候是新的文件夹,我在硬盘的另外一个位置重新构建了yocto的相关文件。

   我曾经考虑是不是因为我在中国,有的东西不能被正常拿到,于是我现在搭建了一个云服务器,在云服务器里面编译。

   为了之后不被这些问题困扰,我还是想知道我在本地电脑上编译出错的原因。

0 Kudos

2,172 Views
2046880190
Contributor III

你好:

   谢谢你的回复,问题已解决。原因是我repo的时候,选错了分支,我看的技术文档是2018年4月的,里面还没有8mini的内容,现在我重新拉取新的分支。

   谢谢!

0 Kudos