Skip to main content
tatsuya
Associate II
October 7, 2022
Solved

Building Linux image with Distribution package

  • October 7, 2022
  • 3 replies
  • 1590 views

Hi ST Community,

I'm trying to build my linux image for STM32MP157F-EV1 board with the following commands.

Linux Commands:

PC $>cd <working directory path>/Distribution-Package

PC $>mkdir openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15

PC $> cd openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15

PC $>repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15

PC $>repo sync

PC $>DISTRO=openstlinux-weston MACHINE=stm32mp15-eval source layers/meta-st/scripts/envsetup.sh

PC $>bitbake st-image-weston

The following error is outputed and the build stops.

Could you please tell me the cause of the error?

**********************************

ERROR: st-image-resize-initrd-1.0-r0 do_rootfs: Unable to update the package index files. Command '['/home/toku/STM32MPU_workspace/STM32MP1-Ecosystem-v4.0.0/Distribution-Package/openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/build-openstlinuxweston-stm32mp15-eval/tmp-glibc/work/stm32mp15_eval-ostl-linux-gnueabi/st-image-resize-initrd/1.0-r0/recipe-sysroot-native/usr/bin/apt-get', 'update']' returned 100:

This topic has been closed for replies.
Best answer by Kevin HUBER

Hello @tatsuya​ ,

Since you are still using the OpenSTLinux Distribution package v4.0.0, I recommand you to try again with the version v4.0.2 which contains several patchs: https://community.st.com/s/question/0D53W00001lSXndSAG/openstlinux-distribution-patch-release-v402-is-available

You can find it here: https://wiki.st.com/stm32mpu/wiki/STM32_MPU_OpenSTLinux_release_note#Minor_release_updates

---

The error that you have seems similar to this one: https://community.st.com/s/question/0D53W00001njRuoSAE/filesdirectories-were-installed-but-not-shipped-in-any-package

Please take a look at the message that I sent in this community topic, you must be careful to have your distribution package in a folder with a short path.

Hope it helps,

Best Regards,

Kevin

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'

3 replies

OlivierK
ST Technical Moderator
October 7, 2022
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.
Kevin HUBER
Kevin HUBERBest answer
ST Employee
October 7, 2022

Hello @tatsuya​ ,

Since you are still using the OpenSTLinux Distribution package v4.0.0, I recommand you to try again with the version v4.0.2 which contains several patchs: https://community.st.com/s/question/0D53W00001lSXndSAG/openstlinux-distribution-patch-release-v402-is-available

You can find it here: https://wiki.st.com/stm32mpu/wiki/STM32_MPU_OpenSTLinux_release_note#Minor_release_updates

---

The error that you have seems similar to this one: https://community.st.com/s/question/0D53W00001njRuoSAE/filesdirectories-were-installed-but-not-shipped-in-any-package

Please take a look at the message that I sent in this community topic, you must be careful to have your distribution package in a folder with a short path.

Hope it helps,

Best Regards,

Kevin

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 'Best answer' on the reply which solved your issue or answered your question.
tatsuya
tatsuyaAuthor
Associate II
October 14, 2022

Hi Kevin-san

Thank you for your reply.

My problem was the same as the link below.

https://community.st.com/s/question/0D53W00001njRuoSAE/filesdirectories-were-installed-but-not-shipped-in-any-package

It was solved by shortening the path of the directory as below.

/opt/st/DP-MP1-4.0.2

Best regards,