cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP15 ECO 5.0.0 Unable to create distribution repo

debugging
Senior III

I had the distribution package installed, deleted it and wanted to recreate it in another folder. However init repo gives the below message and repo sync only download the layers folder.

repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-mickledore-mp1-v23.06.21
Downloading Repo source from https://gerrit.googlesource.com/git-repo

... A new version of repo (2.35) is available.
... New version is available at: /media/user/H3D2P1/Tools/distro/.repo/repo/repo
... The launcher is run from: /usr/bin/repo
!!! The launcher is not writable. Please talk to your sysadmin or distro
!!! to get an update installed.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Fixed. The key issues is not to initialize the SDK, and DISTRO failure was a typo.

DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh

.

View solution in original post

4 REPLIES 4
Jean-Marc B
ST Employee

Hi @debugging 

The message you see when running the command «repo init...» shows the script tries to update your «repo» binary file but can't do it as it doesn't have root access rights. You can safely ignore it.

The «repo sync» only downloads layers. That's correct too.

Then you need to follow the next steps from the wiki page : https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package#Initializing_the_OpenEmbedded_build_environment 

Best regards

--JM

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.

started from scratch,

1. deleted the distro folder

2. recreate the folder

3. Initaize the SDK path (source to the SDK)

4. init

5. repo sync.

that went fine.

6 DISTRO=openstlinux-weston MACHINE=stm32mp15 source layers/meta-st/scripts/envsetup.sh

[HOST DISTRIB check]
Linux Distrib: Ubuntu
Linux Release: 23.04

[source layers/openembedded-core/oe-init-build-env][from nothing]
Error: The OE SDK/ADT was detected as already being present in this shell environment. Please use a clean shell when sourcing this environment script.

 

One step further  the SDK should not be initialized for DISTRO ...close terminal started a new one, ten 

6. DITRO ....

7. bitbake gives now:

user@H3:/media/user/H3D2P1/Tools/STM32MP1/STM_ECO_5.0.0/Distribution-Package/build-openstlinuxweston-stm32mp15$bitbake st-image-weston
NOTE: Started PRServer with DBfile: /media/user/H3D2P1/Tools/STM32MP1/STM_ECO_5.0.0/Distribution-Package/build-openstlinuxweston-stm32mp15/cache/prserv.sqlite3, Address: 127.0.0.1:38947, PID: 623040
ERROR: Layer 'gnome-layer' depends on layer 'meta-python', but this layer is not enabled in your configuration
ERROR: Layer 'gnome-layer' depends on layer 'openembedded-layer', but this layer is not enabled in your configuration
ERROR: Layer 'multimedia-layer' depends on layer 'meta-python', but this layer is not enabled in your configuration
ERROR: Layer 'multimedia-layer' depends on layer 'openembedded-layer', but this layer is not enabled in your configuration
ERROR: Layer 'networking-layer' depends on layer 'openembedded-layer', but this layer is not enabled in your configuration
ERROR: Layer 'webserver' depends on layer 'openembedded-layer', but this layer is not enabled in your configuration
ERROR: Layer 'filesystems-layer' depends on layer 'openembedded-layer', but this layer is not enabled in your configuration
ERROR: Layer 'perl-layer' depends on layer 'openembedded-layer', but this layer is not enabled in your configuration
ERROR: Layer 'stm-st-stm32mp' depends on layer 'meta-python', but this layer is not enabled in your configuration
ERROR: Layer 'stm-st-stm32mp' depends on layer 'openembedded-layer', but this layer is not enabled in your configuration

 

Fixed. The key issues is not to initialize the SDK, and DISTRO failure was a typo.

DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh

.