Cannot git clone on pynq z2

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
But, it throws the following error:

Can anyone help?

git clone throws this error:

1 Like

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 for clarity on whether the internet is working or not.)

Hi,

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

Mario

1 Like

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.

1 Like

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?

1 Like

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

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.
You can find the IP address in a few ways. You may be able to use the hostname of your board 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

3 Likes

thanks for replying @cathalmccabe

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?

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

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)
Any suggestions?

1 Like

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

1 Like

Please refer to this you may find it helpful: Cloning a git repository into your board connected to computer

1 Like