AnsweredAssumed Answered

Repo Sync of imx-yocto-bsp Fails - Working Behind Proxy

Question asked by Sreedhar A on May 26, 2020
Latest reply on Jun 30, 2020 by Sreedhar A

Hi,

 

I am working with IMX8M Mini EVK and yocto project.

 

I am trying to download the yocto distribution by following the details in the document i.MX_Yocto_Project_User's_Guide.pdf

 

Followed instructions mentioned in the section 3 Host Setup to 4.Yocto Project Setup

 

$repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-warrior -m imx-4.19.35-1.1.0.xml

 

repo init is success.

 

$repo sync 

 

throws error:

 

repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6+.
repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6+.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
meta-freescale-3rdparty:
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
poky:
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
meta-freescale-3rdparty:
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
poky:
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

error: Cannot fetch meta-freescale-3rdparty from git://github.com/Freescale/meta-freescale-3rdparty

 

 

We are working behind the proxy. so followed the steps mentioned in the web url:

Working Behind a Network Proxy - Yocto Project 

 

proxy-user =  my user id

proxy-user-pwd = my user id password

proxy-server-ip : our company proxy server ip address

 

My proxy.config file details:

 

export http_proxy='http://<proxy-user>:<proxy-user-pwd>@proxy-server-ip:8080/'
export https_proxy='https://<proxy-user>:<proxy-user-pwd>@proxy-server-ip:8080/'
export ftp_proxy='http://<proxy-user>:<proxy-user-pwd>@proxy-server-ip:8080/'
export ALL_PROXY='socks://<proxy-user>:<proxy-user-pwd>@proxy-server-ip:1080/'
export all_proxy='socks://<proxy-user>:<proxy-user-pwd>@proxy-server-ip:1080/'
export no_proxy='example.com'

 

$source proxy.config

 

.wgetrc file details

 

https_proxy = https://<proxy-user>:<proxy-user-pwd>@<proxy-server-ip>:8080/
http_proxy = http://<proxy-user>:<proxy-user-pwd>@<proxy-server-ip>:8080/
ftp_proxy = http://<proxy-user>:<proxy-user-pwd>@<proxy-server-ip>:8080/
no_proxy = example.com:8080;127.0.0.1
use_proxy = on

 

Executed the gitconfig steps:

 

$ git config --global user.name "Sreedhar"
$ git config --global user.email "my corporate email id"

$git config --list

 

.gitconfig file details:

[user]
name = <Sreedhar>
email = <my corporate email id>

 

in the .bashrc file we added the below two lines:

export GIT_PROXY_COMMAND="oe-git-proxy" export NO_PROXY=$no_proxy

 

When we do the repo sync. i am getting the 

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
meta-freescale-3rdparty: ......etc

 

Could you please someone help me what could be the issue while working behind the proxy.

Possibly someone would have done successful repo sync and build while working behind proxy.

 

Please let me know your suggestions.

 

Thank you,

Sreedhar

Outcomes