i.MX8M Plus yocto build too slow

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX8M Plus yocto build too slow

ソリューションへジャンプ
714件の閲覧回数
Jimmychea
Contributor III

Why the i.MX8M Plus build took 1day ? Below are my PC spec :

Ubuntu 20.04.5 LTS

Disk Space 500GB

RAM 32GB

Processor AMD 8cores 16 threads

 

Anything can i do in order to speed up the Yocto Build ???

 

IMX8MPLUS

 

0 件の賞賛
1 解決策
690件の閲覧回数
edwardtyrrell
Senior Contributor I

Hi @Jimmychea,

khang_letruong is correct, there's no real way to speed up the initial build, but as an exercise you can fetch all the packages using the bitbake fetch/fetch all command i.e. bitbake <image> -c fetchall. This simply fetches all the necessary packages before building. A lot of time can be lost by a slow internet connection fetching packages, however once all the packages are on your machine the build time reduces considerably for further builds. Rebuilds can take 1-4 hours depending on your machine and the image type. 

元の投稿で解決策を見る

3 返答(返信)
686件の閲覧回数
Jimmychea
Contributor III

Noted. Thanks for the solution.

0 件の賞賛
700件の閲覧回数
khang_letruong
Senior Contributor III

Hi @Jimmychea,

For first bitbaking, packages are needed to be downloaded and this depends on the network status (both your network and the servers that host the packages). As a practical habit, I save the downloaded packages to a separate place (other than default DL_DIR ?= "${BSPDIR}/downloads/").

Regards,
K.

691件の閲覧回数
edwardtyrrell
Senior Contributor I

Hi @Jimmychea,

khang_letruong is correct, there's no real way to speed up the initial build, but as an exercise you can fetch all the packages using the bitbake fetch/fetch all command i.e. bitbake <image> -c fetchall. This simply fetches all the necessary packages before building. A lot of time can be lost by a slow internet connection fetching packages, however once all the packages are on your machine the build time reduces considerably for further builds. Rebuilds can take 1-4 hours depending on your machine and the image type.