Unable to download BSP from repo

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to download BSP from repo

2,745 Views
masa_yamamoto
Contributor II

I'm trying to download BSP by following Freescale Yocto Project User's Guide. 

I've installed repo utility and set-up git config.  Then, I tried:

$ repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-4.1.15-1.0.0_ga

...snip...

Get git://git.freescale.com/imx/fsl-arm-yocto-bsp.git

fatal: unable to connect to git.freescale.com:

git.freescale.com: No address associated with hostname

fatal: cannot obtain manifest git://git.freescale.com/imx/fsl-arm-yocto-bsp.git

It may be because of firewall by company.  Is there any workaround?

Labels (3)
3 Replies

1,169 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Masayuki Yamamoto,

This symptom is most likely caused by your enterprise firewall. Git uses the 9418 port, which is probably blocked. You would need to allow traffic from this port (and I would also recommend making sure HTTP and HTTPS also work, which usually aren’t blocked in enterprise firewalls).

The best solution is asking your IT department to open this port as you probably won’t have access to the firewall settings.

Regards,

0 Kudos

1,169 Views
masa_yamamoto
Contributor II

Hi Gusarambula,

Thank you for your comment.  It is not possible to open port, so I've tried following and seems to be working.  Yet, there are some warnings so, could you check the following are right operation?

(1) I added the following settings to git to avoid using git:// protocol. ### Are they the right paths? ###

$ git config --global url.https://.insteadOf git://
$ git config --global url.http://git.freescale.com/git/cgit.cgi/imx.insteadOf git://git.freescale.com/imx
$ git config --global url.https://git.yoctoproject.org/git.insteadOf git://git.yoctoproject.org
$ git config --global url.http://git.openembedded.org.insteadOf git://git.openembedded.org

(2) repo init completed but got some warning.  ### Can this be ignored? ###

$ repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-4.1.15-1.0.0_ga

curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.

(3) I've modified .repo/manifest.xml to avoid "is this a git repository?"  ### Is this the correct way for workaround? ###

Information is from: https://community.nxp.com/thread/386185

$ sed 's/meta-fsl-bsp-release/meta-fsl-bsp-release.git/' .repo/manifest.xml > temp.xml
$ mv .repo/manifest.xml .repo/manifest.xml.org
$ mv temp.xml .repo/manifest.xml

(4) Then, I run repo sync.  Again I got lots of curl (22) errors.  ### Can they be ignored? ###

$ repo sync

curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.

Even though, I got some warnings and strange modification to .repo, I could run bitbake and got a image file out of it. 

1,169 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Masayuki Yamamoto,

I’m glad to hear you got a workaround.

As for the warnings you may ignore them. There are some repositories that have changes and these warning show even if not under a firewall.

If at certain point a source is needed that cannot be found then you would get an error instead of a warning so don’t worry, your workaround seems to be working fine.

Thank you for posting your workaround!

Regards,