# Cannot git clone on pynq z2

**URL:** <https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316>\
**Category:** Support\
**Created:** [November 18, 2021, 6:56am UTC](https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316 "2021-11-18T06:56:24Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shobhit\_Tiwari](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/shobhit_tiwari/32/2570_2.png) [@Shobhit\_Tiwari](https://discuss.pynq.io/u/Shobhit_Tiwari)\
**Post date:** [November 18, 2021, 6:56am UTC](https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316/1 "2021-11-18T06:56:24Z")

</div>

Hello, I wanted to try some projects on pynq-z2. So, tried cloning some one of the github repos : **[GitHub - PaiPai121/Defocus-Image-Deblurring-Based-on-PYNQ](https://github.com/PaiPai121/Defocus-Image-Deblurring-Based-on-PYNQ)**  
But, it throws the following error:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/0/0e67c9710d6e8b268d1e64ebf59e073caa1cd6ba.png)

Can anyone help?

---

<div class="post-metadata">

**Author:** ![Shobhit\_Tiwari](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/shobhit_tiwari/32/2570_2.png) [@Shobhit\_Tiwari](https://discuss.pynq.io/u/Shobhit_Tiwari)\
**Post date:** [November 18, 2021, 6:59am UTC](https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316/2 "2021-11-18T06:59:01Z")

</div>

git clone throws this error:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/5/5176e4f7175ba390c2d095cec5af9b3eef5fa4cf.png)

---

<div class="post-metadata">

**Author:** ![abdyoyo](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/abdyoyo/32/2297_2.png) [@abdyoyo](https://discuss.pynq.io/u/abdyoyo)\
**Post date:** [November 18, 2021, 9:30am UTC](https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316/3 "2021-11-18T09:30:33Z")

</div>

This is not a pip error as shown in the initial line.

The error is either one of the two things:

1. The package is too big for the current memory on pynq-z2. (512MB DRAM on the current board)
2. The internet is not connected on your board (try the command ping [www.google.com](http://www.google.com) for clarity on whether the internet is working or not.)

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [November 18, 2021, 10:46am UTC](https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316/4 "2021-11-18T10:46:59Z")

</div>

Hi,

The error `Could not resolve host : github.com` would indicate that your board is not connected to the Internet as @abdyoyo suggests.

Mario

---

<div class="post-metadata">

**Author:** ![Shobhit\_Tiwari](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/shobhit_tiwari/32/2570_2.png) [@Shobhit\_Tiwari](https://discuss.pynq.io/u/Shobhit_Tiwari)\
**Post date:** [November 22, 2021, 6:36am UTC](https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316/5 "2021-11-22T06:36:54Z")

</div>

Thanks @abdyoyo and @marioruiz for replying. As you said, board is not connected to internet.  
So, can you help me with that. I have tried different things but nothing worked.  
My computer is connected to internet through wifi and to board through ethernet cable. Please suggest.

---

<div class="post-metadata">

**Author:** ![abdyoyo](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/abdyoyo/32/2297_2.png) [@abdyoyo](https://discuss.pynq.io/u/abdyoyo)\
**Post date:** [November 22, 2021, 6:53am UTC](https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316/6 "2021-11-22T06:53:51Z")

</div>

Have you tried the pynq board with another system/PC?

The issue might be from the PC end, initializing the ethernet config/initial conditions.

Can you just share the ipconfig cli output from PC and from the pynq OS?

---

<div class="post-metadata">

**Author:** ![Shobhit\_Tiwari](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/shobhit_tiwari/32/2570_2.png) [@Shobhit\_Tiwari](https://discuss.pynq.io/u/Shobhit_Tiwari)\
**Post date:** [November 22, 2021, 7:05am UTC](https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316/7 "2021-11-22T07:05:16Z")

</div>

No, I didnot try with other PC.

**From PC:**  
C:\Users\PRM\>ipconfig

Windows IP Configuration

Ethernet adapter Ethernet:

Connection-specific DNS Suffix . :  
Link-local IPv6 Address . . . . . : fe80::85f6:78d8:d84f:dba7%18  
IPv4 Address. . . . . . . . . . . : 192.168.2.1  
Subnet Mask . . . . . . . . . . . : 255.255.255.0  
Default Gateway . . . . . . . . . :

Wireless LAN adapter Local Area Connection\* 1:

Media State . . . . . . . . . . . : Media disconnected  
Connection-specific DNS Suffix . :

Wireless LAN adapter Local Area Connection\* 2:

Media State . . . . . . . . . . . : Media disconnected  
Connection-specific DNS Suffix . :

Wireless LAN adapter Wi-Fi:

Connection-specific DNS Suffix . : iitbhu.ac.in  
Link-local IPv6 Address . . . . . : fe80::9c88:68b9:5528:23a9%13  
IPv4 Address. . . . . . . . . . . : 172.17.31.183  
Subnet Mask . . . . . . . . . . . : 255.255.192.0  
Default Gateway . . . . . . . . . : 172.17.0.1

Ethernet adapter Bluetooth Network Connection:

Media State . . . . . . . . . . . : Media disconnected  
Connection-specific DNS Suffix . :

C:\Users\PRM\>

**From pynq:**

root@pynq:/home/xilinx# ifconfig  
eth0: flags=4163\<UP,BROADCAST,RUNNING,MULTICAST\> mtu 1500  
inet 192.168.137.62 netmask 255.255.255.0 broadcast 192.168.137.255  
inet6 fe80::205:6bff:fe01:bff6 prefixlen 64 scopeid 0x20  
ether 00:05:6b:01:bf:f6 txqueuelen 1000 (Ethernet)  
RX packets 21911 bytes 26089200 (26.0 MB)  
RX errors 0 dropped 0 overruns 0 frame 0  
TX packets 5118 bytes 2416567 (2.4 MB)  
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0  
device interrupt 28 base 0xb000

eth0:1: flags=4163\<UP,BROADCAST,RUNNING,MULTICAST\> mtu 1500  
inet 192.168.2.99 netmask 255.255.255.0 broadcast 192.168.2.255  
ether 00:05:6b:01:bf:f6 txqueuelen 1000 (Ethernet)  
device interrupt 28 base 0xb000

lo: flags=73\<UP,LOOPBACK,RUNNING\> mtu 65536  
inet 127.0.0.1 netmask 255.0.0.0  
inet6 ::1 prefixlen 128 scopeid 0x10  
loop txqueuelen 1000 (Local Loopback)  
RX packets 1038 bytes 115215 (115.2 KB)  
RX errors 0 dropped 0 overruns 0 frame 0  
TX packets 1038 bytes 115215 (115.2 KB)  
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

---

<div class="post-metadata">

**Author:** ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)\
**Post date:** [November 22, 2021, 7:29am UTC](https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316/8 "2021-11-22T07:29:17Z")

</div>

> My computer is connected to internet through wifi and to board through ethernet cable. Please suggest.

Your board is not connected to the internet. You only have a direct connection to your PC. Can you connect your board to a port on your router using the Ethernet cable?  
You then need to find the new (DHCP assigned) IP address of your board and browse to it instead of [http://192.168.2.99](http://192.168.2.99).  
You can find the IP address in a few ways. You may be able to use the _hostname_ of your board [http://pynq](http://pynq)  
You may be able to `ping pynq` from your PC.  
You can connect a USB terminal to your board and run `ip a`  
You can log in to your router and find the IP address of the board.

Cathal

Cathal

---

<div class="post-metadata">

**Author:** ![Shobhit\_Tiwari](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/shobhit_tiwari/32/2570_2.png) [@Shobhit\_Tiwari](https://discuss.pynq.io/u/Shobhit_Tiwari)\
**Post date:** [November 23, 2021, 7:05am UTC](https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316/9 "2021-11-23T07:05:32Z")

</div>

thanks for replying @cathalmccabe

> [@cathalmccabe](#):
>
> Can you connect your board to a port on your router using the Ethernet cable?

I am using my college’s LAN which needs authentication after connection. So, it won’t be possible for me to connect board through ethernet cable.  
Is there any other method?

---

<div class="post-metadata">

**Author:** ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)\
**Post date:** [November 23, 2021, 8:25am UTC](https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316/10 "2021-11-23T08:25:17Z")

</div>

What type of authentication?  
For connecting to the network, you can think of the PYNQ-Z2 board as a Linux (Ubuntu based) computer. If you can authenticate a Linux machine on the LAN then you should be able to do the same with the PYNQ-Z1 board. You could try google on Ubuntu forums for how to do this. If you find a solution, it would be great if you can post the solution back here.

Cathal

---

<div class="post-metadata">

**Author:** ![Shobhit\_Tiwari](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/shobhit_tiwari/32/2570_2.png) [@Shobhit\_Tiwari](https://discuss.pynq.io/u/Shobhit_Tiwari)\
**Post date:** [November 24, 2021, 10:39am UTC](https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316/11 "2021-11-24T10:39:25Z")

</div>

We can authenticate through GUI on linux but not through terminal. Is there any other way or running internet on pynq-z2 directly through the computer or using wifi dongle?

note: I am also struggling to use usb wifi ([Pynq-z2 cannot connect to internet through USB wifi](https://discuss.pynq.io/t/pynq-z2-cannot-connect-to-internet-through-usb-wifi/3338))  
Any suggestions?

---

<div class="post-metadata">

**Author:** ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)\
**Post date:** [November 24, 2021, 10:58am UTC](https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316/12 "2021-11-24T10:58:33Z")

</div>

What type of authentication? You can usually work around these issue, but you are not providing enough information for me to help further.

Another option:  
With the Ethernet cable you connected directly to your PC, and your PC connected to the internet, you can “bridge” the connection to the board with your internet connection. This is a little complicated, so not something I usually recommend doing. If you have a good understanding of networking, you can search how to do this for your PC’s OS.

Cathal

---

<div class="post-metadata">

**Author:** ![Ghani](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/ghani/32/2540_2.png) [@Ghani](https://discuss.pynq.io/u/Ghani)\
**Post date:** [December 13, 2021, 12:14am UTC](https://discuss.pynq.io/t/cannot-git-clone-on-pynq-z2/3316/13 "2021-12-13T00:14:24Z")

</div>

Please refer to this you may find it helpful: [Cloning a git repository into your board connected to computer](https://discuss.pynq.io/t/cloning-a-git-repository-into-your-board-connected-to-computer/3422)
