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

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

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

跳至解决方案
4,034 次查看
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 项奖励
回复
1 解答
4,025 次查看
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

 

在原帖中查看解决方案

4 回复数
4,026 次查看
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

 

4,015 次查看
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 项奖励
回复
4,010 次查看
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 项奖励
回复
3,999 次查看
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 项奖励
回复