Compile Kernel using bitbake
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-08-11 6:29 AM
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 :
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.
Solved! Go to Solution.
- Labels:
-
STM32MP15 Lines
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-08-12 3:11 AM
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-08-11 7:45 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-08-12 2:21 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-08-12 2:44 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-08-12 2:52 AM
Hi @Jean-Marc B : So recently my Ubuntu got upgraded to Ubuntu 21.04. Might also be why i am running into these issues. Is there any timeline when OpenSTLinux is expected to be supported on 21.04. ? Looks like i have to go back to Ubuntu20.04. for now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-08-12 3:11 AM
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-08-16 4:34 AM
Hi @Jean-Marc B . Downgraded to UB20 . Works like a charm. Thanks for all the patience and support.
