Is there a workaround for automatically logging out when building Yocto BSP?

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

Is there a workaround for automatically logging out when building Yocto BSP?

Jump to solution
2,123 Views
bskimaaa
Contributor II

Create an Ubuntu VM environment to build Yocto BSP 

If I did the same as above site,
When I ran the "bitbake fsl-image-qt5-validation-imx" command,
Only when BB_NUMBER_THREADS = "1" in conf / local.conf,
The build could be completed.

BSP : L4.14.98_2.0.0 for Linux Yocto BSP

BOARD : MCIMX8M-EVKB

I've tried OS ubuntu 16.04, ubuntu 14.04, ubuntu 18.04
Etc. are all the same result.

 

If BB_NUMBER_THREADS is greater than 1,
vmware Linux will be logged out automatically.

I used up to 32GB of memory and used up to 16 cores.

The build will complete successfully only if BB_NUMBER_THREADS is 1.

The build takes about 9 hours.

It takes too long to use this.

 

Is there any way to solve this?

1 Solution
1,972 Views
jccho
Contributor I

I have experienced the same symptoms.
You have successfully built yocto by connecting to the network, not logging main screen.

View solution in original post

6 Replies
1,973 Views
jccho
Contributor I

I have experienced the same symptoms.
You have successfully built yocto by connecting to the network, not logging main screen.

1,972 Views
bskimaaa
Contributor II

Hi Jaechul Cho

Thanks for your reply.

I will try to your recommand method !

Thank you.

0 Kudos
1,972 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Byung,

    I often use 4 cores to compile yocto bsp, I also tested 6 cores, which is also no problem.

Have a nice day!

BR,

weidong

0 Kudos
1,972 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Byung,

    pastedImage_1.png

pastedImage_2.png

Since your PC has 16 cores, you can set CPU number to be 8 cores here.

Then when you start to build yocto BSP,  8 tasks will be performed at the same time.

Have a nice day!

BR,

Weidong

0 Kudos
1,972 Views
bskimaaa
Contributor II

Thank you for your reply.

As you said, If you configure as above and build, 8 tasks build approximately 4000 jobs at the same time

and log out automatically.

I tried using 2, 3, 4, 8, 16 cores.
After building everything, ubuntu linux will automatically log out.

FYI my PC has 16 cores.

0 Kudos
1,972 Views
bskimaaa
Contributor II

i.MX8M Yocto Project Bitbake Unexpected Termination 

This is the same issue as the above site.

0 Kudos