i.MX8M Plus yocto build too slow

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

i.MX8M Plus yocto build too slow

Jump to solution
1,026 Views
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 Kudos
Reply
1 Solution
1,002 Views
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. 

View solution in original post

3 Replies
998 Views
Jimmychea
Contributor III

Noted. Thanks for the solution.

0 Kudos
Reply
1,012 Views
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.

1,003 Views
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.