cancel
Showing results for 
Search instead for 
Did you mean: 

apt-get unable to locate some packages from OpenSTLinux package repository

rlin.1
Associate

0693W00000QN804QAD.png

1 ACCEPTED SOLUTION

Accepted Solutions
Kevin HUBER
ST Employee

Hello @rlin.1​ ,

You have to keep in mind that you are using an image generated with yocto. As explained in another topic by a community member: https://community.st.com/s/question/0D53W00000G0wfFSAR/i-am-having-issues-in-stlinux-getting-aptget-to-find-any-packages

You can only install the packages that you have built with bitbake. So when a package is missing in the image, it might be easier to include those in the image recipe.

For most of the packages, they are already included in OpenSTLinux or can be retrieve thanks to the layer "meta-st-pkgrepo-updates" handled by ST. We are trying to add package in it regularly.

You can find more information on this layer on the wiki and then by going on the github link: https://wiki.st.com/stm32mpu/wiki/Package_repository_for_OpenSTLinux_distribution#Organization

For your specific package "libopenblas-dev", this package is not included in OpenSTLinux nor in the layer "meta-st-pkgrepo-updates" for the moment.

In this other community post: https://community.st.com/s/question/0D53W00000FQWpbSAH/how-do-i-configure-additional-rootfsadditional-directory-more-package-like-as-lighttpd

@KnarfB​ explained how to add an additional package into yocto.

By doing a search on "https://layers.openembedded.org/", you can find several layers that contains the recipe that you are looking for:

0693W00000QNBu0QAH.pngYou must add the layer that fills your need into yocto. I made some test on my Distribution Package and the one compatible with Kirkstone is "meta-neural-network". Kirkstone is the latest version of Yocto used to build OpenSTLinux in the latest Ecosystem release of ST.

If you are just starting to work with OpenSTLinux, I recommend you to upgrade to the new ecosystem v4.0.0 : https://wiki.st.com/stm32mpu/wiki/STM32_MPU_OpenSTLinux_release_note#OpenSTLinux_layers_part

To add a layer you can follow this community post where I explained the process: https://community.st.com/s/question/0D53W00001iHxOkSAK/i-want-to-add-flutter-layer-for-my-stm32mp157fdk2-board-with-kirkstone-branch-can-yo-help-me-out-with-the-steps-that-i-need-to-follow-i-did-compile-distribution-package-for-stimageweston

Then you have to follow the explanation of:

https://wiki.yoctoproject.org/wiki/Cookbook:Example:Adding_packages_to_your_OS_image

To build the openblas recipe and use it in your image.

Hope it helps,

Regards,

Kévin

Thanks to @KnarfB​  for his well explained answers.

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Kevin HUBER
ST Employee

Hello @rlin.1​ ,

You have to keep in mind that you are using an image generated with yocto. As explained in another topic by a community member: https://community.st.com/s/question/0D53W00000G0wfFSAR/i-am-having-issues-in-stlinux-getting-aptget-to-find-any-packages

You can only install the packages that you have built with bitbake. So when a package is missing in the image, it might be easier to include those in the image recipe.

For most of the packages, they are already included in OpenSTLinux or can be retrieve thanks to the layer "meta-st-pkgrepo-updates" handled by ST. We are trying to add package in it regularly.

You can find more information on this layer on the wiki and then by going on the github link: https://wiki.st.com/stm32mpu/wiki/Package_repository_for_OpenSTLinux_distribution#Organization

For your specific package "libopenblas-dev", this package is not included in OpenSTLinux nor in the layer "meta-st-pkgrepo-updates" for the moment.

In this other community post: https://community.st.com/s/question/0D53W00000FQWpbSAH/how-do-i-configure-additional-rootfsadditional-directory-more-package-like-as-lighttpd

@KnarfB​ explained how to add an additional package into yocto.

By doing a search on "https://layers.openembedded.org/", you can find several layers that contains the recipe that you are looking for:

0693W00000QNBu0QAH.pngYou must add the layer that fills your need into yocto. I made some test on my Distribution Package and the one compatible with Kirkstone is "meta-neural-network". Kirkstone is the latest version of Yocto used to build OpenSTLinux in the latest Ecosystem release of ST.

If you are just starting to work with OpenSTLinux, I recommend you to upgrade to the new ecosystem v4.0.0 : https://wiki.st.com/stm32mpu/wiki/STM32_MPU_OpenSTLinux_release_note#OpenSTLinux_layers_part

To add a layer you can follow this community post where I explained the process: https://community.st.com/s/question/0D53W00001iHxOkSAK/i-want-to-add-flutter-layer-for-my-stm32mp157fdk2-board-with-kirkstone-branch-can-yo-help-me-out-with-the-steps-that-i-need-to-follow-i-did-compile-distribution-package-for-stimageweston

Then you have to follow the explanation of:

https://wiki.yoctoproject.org/wiki/Cookbook:Example:Adding_packages_to_your_OS_image

To build the openblas recipe and use it in your image.

Hope it helps,

Regards,

Kévin

Thanks to @KnarfB​  for his well explained answers.

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hello Huber,

I have installed packages like apache2 etc., but it only works with st-image-weston, not with st-image-core.

So how do I enable this in st-image-core?