Yocto Build (imx8m nano):- How many PC core needed for fast Compilation?

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

Yocto Build (imx8m nano):- How many PC core needed for fast Compilation?

Jump to solution
2,344 Views
milav_soni
Contributor III

 

Hello All,

I need to build Yocto for imx8m nano evk in Linux PC.

Currently I have Following PC Configuration. is it okay for making multimedia or full image?

Processor :- Intel Core2 Duo CPU E4500@2.20Ghz x 2
Graphics   :- Intel G33
OS TYpe    :- 64-Bit
Disk           :- 1 TB
Memory     :- 4 GiB
OS             :- Linux (Ubuntu 16.04 LTS)
Core          :- 2
 
If it is not okay, than what is minimum PC requirements for compile Yocto for imx8m nano for less time (5-6 hours or less).
 
How many RAM is need? How many core is needed? Which cpu processor is best for this?
 
Can you please help me out in this problem?
 
Thank You
 
 
0 Kudos
1 Solution
2,335 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello milav,

Your setting are right for running yocto for best practices you might add ram to your system and ubuntu 18. it will reduce the building time a lot.

Regards

 

View solution in original post

4 Replies
2,336 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello milav,

Your setting are right for running yocto for best practices you might add ram to your system and ubuntu 18. it will reduce the building time a lot.

Regards

 

2,325 Views
milav_soni
Contributor III

Hello @Bio_TICFSL 

Thank You for your answer.

Is there any configuration needed  in local.conf file or any another file to fast out build time of yocto in my PC?

Can your please suggest me?

 

0 Kudos
2,320 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

 

In your local.conf instead of have -j2 you can add -j4 or -j8 for more process running on your host this will reduce time.

 

Regards

 

0 Kudos
2,310 Views
milav_soni
Contributor III

 

Hello @Bio_TICFSL 

 

Thank You for your reply.

I have added following two line in my local.conf file and build opencv separately using "bitbake opencv -c compile" command, but the result is failed at do_compile task of opencv.

local.conf file :-

BB_NUMBER_THREADS ?= " 4"

PARALLEL_MAKE ?= "-j 4"

I have used following command to build opencv using bitbake.

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

$DISTRO=fsl-imx-wayland MACHINE=imx8mnevk source ./imx-setup-release.sh -b imx8mn_wayland_build

$bitbake opencv -c compile

 

I have used local.conf variable for speed up the task, but i face error on the same.

Error :- ERROR: Task (../Embedded_Software/Yocto/imx-yocto-bsp-py3/sources/meta-imx/meta-bsp/recipes-support/opencv/opencv_4.2.0.imx.bb:do_compile) failed with exit code '1'

please help me to sort out this error.

0 Kudos