Skip to main content
NPal.2
Associate III
August 11, 2021
Solved

Compile Kernel using bitbake

HI all,

Is it possible to just compile the kernel in yocto environment for stm32mp1 using command : bitbake -C compile virtual/kernel

This command is currently failing with below error message :

0693W00000D2AzyQAF.png 

If not this , then what is the correct way to do it?

I have another thread running here , where in if try to build it stand-alone with SDK it is failing due to GLIBC issues.

This topic has been closed for replies.
Jean-Marc B
Jean-Marc BBest answer
ST Employee
August 12, 2021

@NPal.2​ 

Before downgrading your own machine from Ub21 to Ub20, you might give a try by using a virtual machine running Ubuntu20.04.

About the planning for the next supported Ubuntu platforms, I am sorry but I don't have any clue. Anyway, we are relying on Yocto supported linux distributions.

Best regards,

--JM

6 replies

Jean-Marc B
ST Employee
August 11, 2021

Hello @NPal.2​ 

yes, the command

bitbake -C compile virtual/kernel

will build the dedicated package linux-stm32mp. You can also achieve this by using this command

bitbake -f -c deploy linux-stm32mp

There should not be any error from these two commands.

Could you give it a try from a fresh OpenSTLinux environment please i.e. without any change brought to the kernel please?

Best regards,

--JM

NPal.2
NPal.2Author
Associate III
August 12, 2021

Hi @Jean-Marc B​ : I tried on the fresh checkout. Looks like it fails due some missing variable definition. I have attached the log file. Is this expected?

I just gave

bitbake -C compile virtual/kernel

and had failure mentioned in the file.

Jean-Marc B
ST Employee
August 12, 2021

Hi @NPal.2​ 

I thank you for provindig your log file.

At first glance, I see two items:

  • it seems to me you use a computer running Ubuntu 21.04. At now, the OpenSTLinux environment is only supported and verified with Ubuntu18.04 or Ubuntu20.04.
  • the first line of the log is quite interesting: «WARNING: Your host glibc verson (2.33) is newer than that in uninative (2.32). Disabling uninative so that sstate is not corrupted.

IMHO, I think there is some incompatibilities between Ubuntu21.04 and OSTL-3.0 but I am not 100% sure.

Could it be possible to have an access to a machine or a container with Ubuntu20?

Best regards,

--JM