Problem setting up Eclipse IDE using yocto for toolchain compilation for i.MX 8QuadXPlus

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problem setting up Eclipse IDE using yocto for toolchain compilation for i.MX 8QuadXPlus

跳至解决方案
1,583 次查看
SimonSchnee
Contributor III

I used the following links for setting up an IDE for cross compiling for the i.MX 8QuadXPlus MEK board.

Yocto Programming with Eclipse v2 | Variscite Wiki (variwiki.com)
Setting up the Eclipse IDE for Yocto Application D... - NXP Community
I did the following steps (from Yocto Project Description: i.MX Yocto Project User's Guide (nxp.com)):

  • $mkdir imx-yocto-bsp 
  • $cd imx-yocto-bsp 
  • $repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-hardknott -m imx-5.10.52-2.1.0.xml
  • $repo sync
  • $DISTRO=fsl-imx-xwayland MACHINE=imx8qxpc0mek source imx-setup-release.sh -b build-xwayland
  • Now I want the toolchain: $bitbake meta-toolchain


I am facing the problem, that when building the toolchain using yocto/bitbake it takes several hours and always exceeds my storage capacity because it needs already at 40% completion around 40GB of storage.

Is there a possibility to disable some yocto packages or am I doing something wrong?

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,552 次查看
SimonSchnee
Contributor III

Thank you for your reply.

 

I extended the disk size of my virtual machine (Ubuntu LTS 20.04).

Then I repeated all the steps and could build the toolchain.

But your solution would also work

 

Do you know what is the exact difference between "imx-image-core" and "core-image-base"?

 

Best regards.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,570 次查看
Yuri
NXP Employee
NXP Employee

@SimonSchnee 
Hello,

   please try the following, as recommended in Chapter 2 (Porting Kernel) of "i.MX Porting Guide".

DISTRO=Target-Distro MACHINE=Target-Machine bitbake core-image-minimal -c populate_sdk

 

  https://www.nxp.com/docs/en/user-guide/IMX_PORTING_GUIDE.pdf

 

Regards,
Yuri.

0 项奖励
回复
1,476 次查看
MichaelBMiner
Contributor IV

Hello Yuri,

 

I have built my image using 

mkdir imx-yocto-bsp
cd imx-yocto-bsp
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-hardknott -m imx-5.10.72-2.2.0.xml
repo sync

DISTRO=fsl-imx-wayland MACHINE=imx6ull14x14evk source imx-setup-release.sh -b build-fb

bitbake-layers create-layer ../sources/meta-simpledaemon
bitbake-layers add-layer ../sources/meta-simpledaemon
mkdir ../sources/meta-simpledaemon/recipes-example/simpledaemon
recipetool create -V1.0 https://gitlab.com/MichaelBMiner/simpledaemon -o ../sources/meta-simpledaemon/recipes-example/simpledaemon/

bitbake fsl-image-machine-test

 Must I include the bitbake populate SDK argument? I want to develop new applications for my image using eclipse but I am not sure where to point the project compiler. 

0 项奖励
回复
1,467 次查看
Yuri
NXP Employee
NXP Employee

@MichaelBMiner 
Hello,

  I think it makes sense to generate the SDK (add "-c populate_sdk") for application development.

Regards,
Yuri.

0 项奖励
回复
1,553 次查看
SimonSchnee
Contributor III

Thank you for your reply.

 

I extended the disk size of my virtual machine (Ubuntu LTS 20.04).

Then I repeated all the steps and could build the toolchain.

But your solution would also work

 

Do you know what is the exact difference between "imx-image-core" and "core-image-base"?

 

Best regards.

0 项奖励
回复
1,548 次查看
Yuri
NXP Employee
NXP Employee

@SimonSchnee 
Hello,

   According to Table 1 (i.MX Yocto project images) of "i.MX Yocto Project User's Guide":

core-image-base:  A console-only image that fully supports the target device hardware.

imx-image-core:  An i.MX image with i.MX test applications to be used for Wayland backends.
                            This image is used by our daily core testing.

https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf

 

Regards,
Yuri.

0 项奖励
回复