Using ST Yocto SDK with Docker for Windows
Hi,
I've been trying to setup a cross compile environment using Docker for Windows, and I've run into a bit of trouble.
I've setup the dockerfile so that during the build process of the image, I copy the SDK into the image and execute the .sh script.
This is step 4 in the getting started section of the wiki, under "Develop on Arm Cortex-A7"/"Install the SDK":
The problem:
Executing the SDK installation script does not work due to the following error:
ST OpenSTLinux - Weston - (A Yocto Project Based Distro) SDK installer version 2.6-openstlinux-4.19-thud-mp1-19-02-20
=====================================================================================================================
You are about to install the SDK to "/STM32MPU_workspace/STM32MP15-Ecosystem-v1.0.0/Developer-Package/SDK". Proceed[Y/n]? Y
Extracting SDK.................................................................................................................................................
.................tar: ./sysroots/cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi/usr/share/dbus-1/services: Directory renamed before its status could
be extracted
tar: ./sysroots/cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi/usr/share/dbus-1: Directory renamed before its status could be extracted
tar: ./sysroots/cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi/usr/share: Directory renamed before its status could be extracted
tar: Exiting with failure status due to previous errorsThe issue is present during run time execution as well.
Apparently it's an underlying issue with some path names. Anyways, I have been trying out some of the suggested solutions:
- Switch to overlay2 file system driver with Docker [Did not help]
- Try to substitute tar with bsdtar during the execution [does not really help inside a .sh file]
- Add --absolute-names argument to the tar call on row 235 inside the .sh file [helps]
Right now, the edit to add the argument is a manual edit, but any chance to get this suggestion all the way to the developers so it could be used as an optional flag?
Best regards,
