Visit Our UNIX and Linux User Community


Problem in extracting yocto SDK for docker


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Problem in extracting yocto SDK for docker
# 1  
Old 07-05-2018
Problem in extracting yocto SDK for docker

Actually I was facing the following issue while building my Yocto SDK on Docker container
Code:
sudo docker build --tag="akash/eclipse-che:6.5.0-1" --tag="akash/eclipse-che:latest" /home/akash/dockerimage.yocto.support/
Sending build context to Docker daemon  26.93MB
Step 1/5 : FROM eclipse/cpp_gcc
 ---> 8397ec8fd9d1
Step 2/5 : ENV META_TOOLCHAIN=poky-glibc-x86_64-meta-toolchain-cortexa7hf-neon-vfpv4-toolchain-2.4.3.sh
 ---> Using cache
 ---> b6efe9fb9be4
Step 3/5 : RUN wget -O /tmp/$META_TOOLCHAIN "<link for toolchain >=$META_TOOLCHAIN"
 ---> Using cache
 ---> 674e007553da
Step 4/5 : RUN chmod +x /tmp/$META_TOOLCHAIN
 ---> Using cache
 ---> 5f558946851e
Step 5/5 : RUN /tmp/$META_TOOLCHAIN
 ---> Running in b5909d0fe10c
Poky (Yocto Project Reference Distro) SDK installer version 2.4.3
=================================================================
You are about to install the SDK to "/home/akash/rpil/rpi-build/tmp". Proceed[Y/n]? Extracting SDK.............done
Setting it up...ls: cannot access '/home/akash/rpil/rpi-build/tmp/environment-setup-cortexa7hf-neon-vfpv4-poky-linux-gnueabi': No such file or directory
SDK relocate failed, could not get executalbe files
The command '/bin/sh -c /tmp/$META_TOOLCHAIN' returned a non-zero code: 1




environment-setup-cortexa7hf-neon-vfpv4-poky-linux-gnueabi file is actually present in the tmp directory.I am not able to understand why it cannot access it.


I have noticed that my sysroots directory is empty.I am just assuming that that may be the reason for the issue.


This is the some part of the shell script of SDK which is being extracted.


Code:
tail -n +$payload_offset $0| $SUDO_EXEC tar xJ -C $target_sdk_dir --checkpoint=.2500 $EXTRA_TAR_OPTIONS || exit 1
echo "done"

printf "Setting it up..."
# fix environment paths
real_env_setup_script=""
for env_setup_script in `ls $target_sdk_dir/environment-setup-cortexa7hf-neon-vfpv4-poky-linux-gnueabi`; do
        if grep -q 'OECORE_NATIVE_SYSROOT=' $env_setup_script; then
                # Handle custom env setup scripts that are only named
                # environment-setup-* so that they have relocation
                # applied - what we want beyond here is the main one
                # rather than the one that simply sorts last
                real_env_setup_script="$env_setup_script"
        fi
        $SUDO_EXEC sed -e "s:/opt/poky/2.4.3:$target_sdk_dir:g" -i $env_setup_script
done
 if [ -n "$real_env_setup_script" ] ; then


Note: I am unable to post the link because this is my fifth post.
# 2  
Old 07-06-2018
Is /home/akash/rpil/rpi-build/tmp/ writable by user root?
# 3  
Old 07-06-2018
I even tried it without using sudo but it shows the same error.I even tried to change the directory path to /opt/poky/2.4.3 but it still did not worked out.And yes ,it has root permissions.
# 4  
Old 07-09-2018
Is /home/akash/rpil/rpi-build/tmp created in your Dockerfile?
Code:
RUN mkdir -p /home/akash/rpil/rpi-build/tmp

Andrew

Previous Thread | Next Thread
Test Your Knowledge in Computers #99
Difficulty: Easy
Unix has a flat file structure which allows easier access and maintenance of data.
True or False?

9 More Discussions You Might Find Interesting

1. Docker

Docker learning Phase-I

Hello All, I had recently learnt a bit of Docker(which provides containerization process). Here are some of my learning points from it. Let us start first with very basic question: What is Docker: Docker is a platform for sysadmins and developers to DEPLOY, DEVELOP and RUN applications ... (7 Replies)
Discussion started by: RavinderSingh13
7 Replies

2. UNIX for Beginners Questions & Answers

Can't pass a variable representing the output of lsb_release to a docker dontainer

I don't know why, but the rendering of my code mucks up the spacing and indentation, despite being correct in the original file. I'm having issues getting the following script to run (specifically the nested script at the end of the docker command near the end of the script; I think I'm not passing... (2 Replies)
Discussion started by: James Ray
2 Replies

3. Linux

Docker and pipework,ip with other subnet

Recently i found this for give to docker a "personal" ip ip addr del 10.1.1.133/24 dev eth0 ip link add link eth0 dev eth0m type macvlan mode bridge ip link set eth0m up ip addr add 10.1.1.133/24 dev eth0m route add default gw 10.1.1.1On container i did ... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

4. Shell Programming and Scripting

Problem extracting zipped tar file

I was extracting the zipped tar file with the command gzip -dc Sample.tar.gz |tar xf - The tar file contained many delimited files; but lately they changed the structure of the tar file with another folder. So now all the delimited files are inside a folder called "Folder1" and the folder... (6 Replies)
Discussion started by: asandy1234
6 Replies

5. UNIX for Dummies Questions & Answers

problem with extracting line in file

My file looks like this and i need to only extract those with PDT_AP21_B and output it to another file. Can anyone help? Thanks. PDT_AP21_R,,, 11 TYS,,,,T17D1207230742TYO***T17DS,,C PDT_AP21_L,,,9631166650001 ,,,,T17D1207230903TYOTYST17DS ,,C... (3 Replies)
Discussion started by: Alyssa
3 Replies

6. UNIX for Dummies Questions & Answers

Problem in extracting the string between parenthesis

Hi Team, I am not able to extract string between parenthesis.I need to extract string between first parenthesis only. Please find the sample data and code. But the below my code is returning "DW_EFD_TXN_ID", "PRCS_DTE" & INITIAL 52428800 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645... (12 Replies)
Discussion started by: suriyavignesh
12 Replies

7. Shell Programming and Scripting

Problem extracting just a part of a matching pattern

Hello everyone, this is my first post so please give me a hand. I apologize for my English, I'll try to be clear with my request. I need to write a script (Bash) which finds all the variables defined in the file .h of the folder and then writes the name of the files .c where these variables are... (1 Reply)
Discussion started by: paxilpaz
1 Replies

8. Shell Programming and Scripting

Problem in extracting vector data

Hi, Currently I have two files; A and B. File A has below data:- -3 + <1 2 3 4 5 6 7 8 1 2 > - 1] -2 + <8 8 3 4 0 3 7 9 1 3 > - 1] -1 + <3 7 3 4 8 2 7 2 1 2 > - 1] -3 + <2 2 3 4 3 1 7 8 8 2 > - 1] and File B has below data:- <9 1 1 4 2 6 3 8 8 9 > From these two files, I... (2 Replies)
Discussion started by: ahjiefreak
2 Replies

9. UNIX for Advanced & Expert Users

For loop problem extracting data

I have a problem with my loops. I have a file called users.dat, it has all the users in it. Then I extracted a list of users sending out number of mails with date from Netscape logs. The extracted list (mailuse.dat) has 3 fields: username, number of mails, date. (One user can show up several... (2 Replies)
Discussion started by: nitin
2 Replies

Featured Tech Videos