Yocto example git repository repo 'sync' command fails due to incorrect path

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

Yocto example git repository repo 'sync' command fails due to incorrect path

Jump to solution
4,534 Views
jeremym
Contributor IV

Has anyone else experienced a failure when attempting to follow the Yocto examples when fetching from:

http://git.freescale.com/git/cgit.cgi/imx/meta-fsl-bsp-release/

or

git://git.freescale.com/imx/meta-fsl-bsp-release/

The repo sync operation seems to be using the urls shown above which contain no repositories; the real repositories seem to have been moved to:

git://git.freescale.com/imx/meta-fsl-bsp-release.git
http://git.freescale.com/git/cgit.cgi/imx/meta-fsl-bsp-release.git

Any thoughts?

Labels (3)
1 Solution
3,355 Views
samkunun
Contributor II

Hi,

For me, somehow... for the reason that I did not know and did not investigate further, the "insteadOf" git remapping method on freescale repository only works for "git clone" and not for "repo sync". It works for other repositories like github, yoctoproject, etc.

So, I believe, as of now, there is no clean solution here. You have to modify the default.xml.

Thank you.

Regards,

--sk

View solution in original post

0 Kudos
Reply
5 Replies
3,355 Views
samkunun
Contributor II

Hi,

What is the failure ?

What is the error log ?

Did your firewall blocking git access ?

Maybe you can take a look into my comment on other thread

https://community.nxp.com/message/651591#comment-651591

Thank you.

Regards,

--sk

3,355 Views
jeremym
Contributor IV

Hi Sam - what you described in that post is exactly the problem.  I could change the file as you indicated, I guess I am wondering why the 'repo sync' process is not working as deployed?  Seems like either the folder name/structure got changed at some point to include the '.git' in the name, or it never worked correctly from the beginning (which seems unlikely to me)?

0 Kudos
Reply
3,355 Views
samkunun
Contributor II

Hi,

It works fine.... if you use git (git is not blocked)

That is why my questions was :

What is the failure ?

What is the error log ?

Did your firewall blocking git access ?

Because, for me, the problem only happened when I'm not using git.

Git is blocked by my office's firewall and I have to change it to http or https.

Thank you.

Regards,

--sk

0 Kudos
Reply
3,355 Views
jeremym
Contributor IV

Hi Sam - sorry I don't have the exact error log because I am running it on a virtual machine which is unavailable at the moment, but here is/was my issue:

1) I followed the instruction in Freescale_Yocto_Project_User's_Guide.pdf and got stuck while doing the "repo sync"; we do have the git protocol blocked here, so that was the first obstacle to overcome.  Instead of messing with any of the NXP supplied files (to point to the HTTP addresses versus GIT addresses) I remapped all git:// URLS to the appropriate http:// URLS using git's "insteadOf" option in my global config.  This resolved that issue without modifying any NXP/community supplied files with the exception of one repository:

git://git.freescale.com/imx/meta-fsl-bsp-release/

the 'insteadOf' git remapping replaces 'git://git.freescale.com/' with 'http://git.freescale.com/git/cgit.cgi' resulting in:

http://git.freescale.com/git/cgit.cgi/imx/meta-fsl-bsp-release/

Unless there is some weirdness occurring in the remapping, the original repository referenced seems to be git://git.freescale.com/imx/meta-fsl-bsp-release/, which does not appear to be correct?  It's missing the '.git' at the end.

That is my real issue; I see the difference between the urls for git/http on the front-end, but the repository referenced by default appears to be missing the .git at the end, which is present on both the git and http repository addresses.

The error I encountered was essentially this:

git://git.freescale.com/imx/meta-fsl-bsp-release/  "does not exist or contain a repository"

I don't think the issue would be resolved by using git protocol, because the original repository reference seems to be incorrect in that it doesn't have the .git at the end of the address?  That is why I am wondering if the folder structure changed at some point, or something else?

0 Kudos
Reply
3,356 Views
samkunun
Contributor II

Hi,

For me, somehow... for the reason that I did not know and did not investigate further, the "insteadOf" git remapping method on freescale repository only works for "git clone" and not for "repo sync". It works for other repositories like github, yoctoproject, etc.

So, I believe, as of now, there is no clean solution here. You have to modify the default.xml.

Thank you.

Regards,

--sk

0 Kudos
Reply