cancel
Showing results for 
Search instead for 
Did you mean: 

Building Linux image with Distribution package

tatsuya
Associate II

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:

1 ACCEPTED SOLUTION

Accepted Solutions
Kevin HUBER
ST Employee

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 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
OlivierK
ST Employee

Hello tatsuya (Community Member)

Any disk space or proxy/access rights issue?

https://community.st.com/s/question/0D53W00000EnsO8SAJ/error-in-recipe-stimageresizeinitrd-while-building-openstlinux54dunfellmp1200624

Did you check all the prerequisites first?

https://wiki.st.com/stm32mpu/wiki/PC_prerequisites

Regards,

Olivier

Kevin HUBER
ST Employee

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 'Accept as Solution' on the reply which solved your issue or answered your question.

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,