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

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

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

Jump to solution
1,097 Views
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?

Labels (1)
Tags (2)
0 Kudos
1 Solution
1,066 Views
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.

View solution in original post

0 Kudos
5 Replies
1,084 Views
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 Kudos
990 Views
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 Kudos
981 Views
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 Kudos
1,067 Views
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 Kudos
1,062 Views
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 Kudos