cancel
Showing results for 
Search instead for 
Did you mean: 

SDK MPU installation script error

ZHala.1
Associate II

Hello,

I would like to setup environment for STM32MPU according this instruction:

https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Install_the_SDK

so I downloaded the SDK .tar

https://www.st.com/en/embedded-software/stm32mp1dev.html#get-software/SDK-x86_64-stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15.tar.xz

and run the script and got an error

./st-image-weston-openstlinux-weston-stm32mp1-x86_64-toolchain-4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15.sh 
 
Extracting SDK............................................................................................................................................................................................................................done
Setting it up...xargs: file: No such file or directory
sed: no input files
Failed to replace perl. Relocate script failed. Abort!

I run this script in docker based on ubuntu. All necessary packet installed.

FROM ubuntu:20.04

What could be a problem?

I run this script with -D (debug mode) and got:

I run this script in docker based on ubuntu. All necessary packet installed.

FROM ubuntu:20.04

What could be a problem?

I run this script with -D (debug mode) and got:

+ find /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15 -maxdepth 1 -type f
+ xargs -n100 file
+ grep :.*\(ASCII\|script\|source\).*text
+ grep -Fv -e /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/environment-setup- -e /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/relocate_sdk -e /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/post-relocate-setup -e /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/st-image-weston-openstlinux-weston-stm32mp1-x86_64-toolchain-4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15.sh
+ xargs -n100 sed -i -e s:/usr/local/oe-sdk-hardcoded-buildpath:/opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15:g -e s:^#! */usr/bin/perl.*:#! /usr/bin/env perl:g -e s: /usr/bin/perl: /usr/bin/env perl:g
+ awk -F:  {printf "\"%s\"\n", $1}
+ find /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sysroots/x86_64-ostl_sdk-linux -type f
xargs: file: No such file or directory
sed: no input files
+ [ 123 -ne 0 ]
+ echo Failed to replace perl. Relocate script failed. Abort!
Failed to replace perl. Relocate script failed. Abort!

1 ACCEPTED SOLUTION
6 REPLIES 6
Jean-Marc S
ST Employee

Hello,

I would recommend to try again..

I just tried from scratch according the web page you mentioned.

I am using Ubuntu 20.04 64bit

I have the below commands:

$ sudo apt-get update

$ sudo apt-get install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3- libegl1-mesa libsdl1.2-dev pylint3 xterm python3-subunit mesa-common-dev zstd liblz4-tool

$ sudo apt-get install make xsltproc docbook-utils fop dblatex xmlto

$ sudo apt-get install libmpc-dev libgmp-dev

$ sudo apt-get install build-essential libncurses-dev libyaml-dev libssl-dev

$ sudo apt install python-is-python3

$ sudo apt-get install coreutils bsdmainutils sed curl bc lrzsz corkscrew cvs subversion mercurial nfs-common nfs-kernel-server libarchive-zip-perl dos2unix texi2html diffstat libxml2-utils

$ echo 'options mmc_block perdev_minors=16' > /tmp/mmc_block.conf

$ sudo mv /tmp/mmc_block.conf /etc/modprobe.d/mmc_block.conf

$ mkdir -p $HOME/STM32MPU_workspace/STM32MP1-Ecosystem-v4.0.0/Developer-Package/SDK

$ cd /home/osboxes/STM32MPU_workspace

$ mkdir tmp

$ “move downloaded and unziped SDK folder in tmp�?

$ cd tmp/en.SDK-x86_64-stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sdk/

$ chmod +x st-image-weston-openstlinux-weston-stm32mp1-x86_64-toolchain-4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15.sh

$ cd ../../

$ ./stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/sdk/st-image-weston-openstlinux-weston-stm32mp1-x86_64-toolchain-4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15.sh

ST OpenSTLinux - Weston - (A Yocto Project Based Distro) SDK installer version 4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15

===================================================================================================================================

Enter target directory for SDK (default: /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15):

You are about to install the SDK to "/opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15". Proceed [Y/n]?

Extracting SDK............................................................................................................................................................................................................................done

Setting it up...done

SDK has been successfully set up and is ready to be used.

Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.

 $ . /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi

JM

Kevin HUBER
ST Employee

Hello @ZHala.1​ ,

Have you been able to fix this issue?

Regards,

Kevin

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 @ZHala.1​ ,

Oh ok it was me that answered :D. I didn't see that your name was the same.

Best Regards,

Kevin

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.
amuew
Associate

Hi,

@Kevin HUBER what was the solution to this issue?

I'm seeing the same issue (docker image ubuntu:22.04), the link posted by @ZHala.1 is unfortunately dead ("An invalid set of parameters has been specified in the url.").

Bests,
amuew

Hello @amuew ,

Sorry for that, I will ask to fix this link.
It's been a long time, so I'm not sure, but I think this was this post: https://community.st.com/t5/stm32-mpu-products/sdk-installation-script/td-p/123436

Best Regards,
Kevin

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.