cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
2,936 Views
Registered: ‎08-08-2018

Failed to petalinux-build --sdk with 2018.3

Hello!

Using Petalinux 2018.3 on Ubuntu 16.04 i failed to do a

petalinux-build --sdk 

It fails, because

fatal: clone of 'git://git.qemu.org/capstone.git' 

Manual solution:

Edit the .git/config file in:

/petalinux20183_project/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-qemu-xilinx/v2.11.0-xilinx-v2018.3+gitAUTOINC+f70bd86859-r0/git

(or accordingly)

Change:

[submodule "capstone"]
	active = true
	url = git://git.qemu.org/capstone.git
[submodule "ui/keycodemapdb"]
	active = true
	url = git://git.qemu.org/keycodemapdb.git

to:

[submodule "capstone"]
	active = true
	url = git://git.qemu.org/git/capstone.git
[submodule "ui/keycodemapdb"]
	active = true
	url = git://git.qemu.org/git/keycodemapdb.git

This correction could be enough, but petalinux still fails to build.

I had to go to

/petalinux20183_project/build/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-qemu-xilinx/v2.11.0-xilinx-v2018.3+gitAUTOINC+f70bd86859-r0/git

and do a manual

git submodule update

Finally capstone and keycodemapdb are cloned and petalinux-build exits successfully.

Perhaps this is helpful for someone.

Perhaps Xilinx corrects this URLs in the future.

Bye, Marc.

12 Replies
Highlighted
Adventurer
Adventurer
2,709 Views
Registered: ‎03-21-2013

Re: Failed to petalinux-build --sdk with 2018.3

Hi Marc

Yeah I tried your solution. I get the following result:

git submodule update
Cloning into 'capstone'...
fatal: unable to connect to git.qemu.org:
git.qemu.org[0: 172.99.69.163]: errno=Connection timed out

fatal: clone of 'git://git.qemu.org/capstone.git' into submodule path 'capstone' failed

Just browsing git.qemu.org, I note that the capstone.git is NOT under a /git subduirectory..... Am I barking up the wrong tree?

0 Kudos
Highlighted
Observer
Observer
2,683 Views
Registered: ‎08-08-2018

Re: Failed to petalinux-build --sdk with 2018.3

I think you missed to follow follow the instructions excactly. Look closer to the url:

 

url = git://git.qemu.org/git/capstone.git

 

There should be an additionally "git" in front of "capstone.git". But your posted error msg tells me, that the repo urls is still wrong.

0 Kudos
Highlighted
Moderator
Moderator
2,674 Views
Registered: ‎12-04-2016

Re: Failed to petalinux-build --sdk with 2018.3

Hi @clivewmwalker & @m.schappeit 

You can workaround the issue with following steps

git config --global url.http://git.qemu.or/git/capstone.git/.insteadOf git://git.qemu.org/capstone.git

git config --global url.http://git.qemu.or/git/keycodemapdb.git/.insteadOf git://git.qemu.org/keycodemapdb.git

git config --global http.sslVerify false

git config --global https.sslVerify false

Change .gitconfig to include proxies

[url "http://git.qemu.org/git/capstone.git"]

        insteadOf = git://git.qemu.org/capstone.git

[url "http://git.qemu.org/git/keycodemapdb.git"]

        insteadOf = git://git.qemu.org/keycodemapdb.git

[http]

        proxy = http://<company_proxy_server>:<port>

        sslverify = false

[https]       

         proxy = http://<company_proxy_server>:<port>       

         sslverify = false

 

Highlighted
Observer
Observer
2,440 Views
Registered: ‎04-12-2019

Re: Failed to petalinux-build --sdk with 2018.3

Hello, 

I am having a very similar issue, which I believe is to do my company's proxy. Is disabling the SSL verification safe? Are there security concerns? I am not too familiar with these SSL checks and am stuck with these git submodules unable to update. '

Thanks

0 Kudos
Highlighted
Visitor
Visitor
2,020 Views
Registered: ‎08-06-2019

Re: Failed to petalinux-build --sdk with 2018.3

Is there a way to get this to work without internet?

I am getting the same failure to clone git problem and my machine I use for building does not have internet.

0 Kudos
Highlighted
Observer
Observer
1,964 Views
Registered: ‎08-08-2018

Re: Failed to petalinux-build --sdk with 2018.3

You will need at least initially internet connection to get all sources needed for build.
0 Kudos
Highlighted
Contributor
Contributor
1,713 Views
Registered: ‎05-07-2018

Re: Failed to petalinux-build --sdk with 2018.3

Hello@m.schappeit ,

How did you solve your problem, by following the steps above?

Thanks in advance.

0 Kudos
Highlighted
Observer
Observer
1,680 Views
Registered: ‎08-08-2018

Re: Failed to petalinux-build --sdk with 2018.3

Hello!

I descriped in detail all the steps in my first post. Please sepcify at what point you have a problem with the procedure.

Ciao, Marc.

0 Kudos
Highlighted
Contributor
Contributor
1,670 Views
Registered: ‎05-07-2018

Re: Failed to petalinux-build --sdk with 2018.3

Hello @m.schappeit  ,
I solved this problem today, thank you for answering.

0 Kudos
Highlighted
1,385 Views
Registered: ‎08-26-2019

Re: Failed to petalinux-build --sdk with 2018.3

This issue is 2019 still there, this two changes solved the issue for me:

Git config file in a subdirectory path from build directory ~\build\tmp\work\x86_64-linux\qemu-xilinx-native\v2.11.1-xilinx-v2019.1+gitAUTOINC+5f38ea92fb-r0\git\.git\config

1. Change capstone and keycodemapdb URL from git:// to https://

2. Add missing /git/ in the two pathnames

 

change from:

[submodule "capstone"]
 url = git://git.qemu.org/capstone.git
[submodule "ui/keycodemapdb"]
 url = git://git.qemu.org/keycodemapdb.git

change to:

[submodule "capstone"]
 url = https://git.qemu.org/git/capstone.git
[submodule "ui/keycodemapdb"]
 url = https://git.qemu.org/git/keycodemapdb.git

0 Kudos
Highlighted
Visitor
Visitor
596 Views
Registered: ‎10-31-2018

Re: Failed to petalinux-build --sdk with 2018.3

make a recipes to fix this issue auto without network support.

upload to baidu yun: 

link:https://pan.baidu.com/s/1Gr2wLzYK5MFYAgfibEy6bQ
passcode:goxc 

0 Kudos
Highlighted
Contributor
Contributor
455 Views
Registered: ‎12-21-2018

Re: Failed to petalinux-build --sdk with 2018.3

I've encountered the exact same issue after upgrading a petalinux 2019.1 project to petalinux 2019.2. So the workaround is the following one :

git config --global url.http://git.qemu.org/git/capstone.git/.insteadOf git://git.qemu.org/capstone.git
git config --global url.http://git.qemu.org/git/keycodemapdb.git/.insteadOf git://git.qemu.org/keycodemapdb.git
git config --global http.sslVerify false
git config --global https.sslVerify false

 

 

0 Kudos