Issues Cloning the SiFive Freedom Repository

I’m having issues cloning the repository at https://github.com/sifive/freedom. The repository contains submodules and I try to clone the repository in the following way:

git clone https://github.com/sifive/freedom.git
cd freedom
git submodule update --init --recursive --progress

It just appears to hang after a certain point. I’m not sure if this happens because some of the submodules used by the freedom repository are not reachable anymore. Should I just run these commands and wait? Last time I tried it, it said just terminated (saying that github.com was not reachable). I’ve been stuck on this for a couple of days and searching online for answers has not helped. Thanks in advance.

I just tried it and it worked fine and took 5 minutes 15 seconds on a reasonably well-connected Xeon machine. Total size 3.6 GB. Could be the problem is in the internet at your end?

I did it in one step with

git clone --recursive https://github.com/sifive/freedom.git

if it’s saying that github.com isn’t reachable, that’s probably a networking problem.

fwiw, i tried the commands given above and my version of git (2.7.4 on WSL) complained that it didn’t know about the option ‘–progress’. i tried it without and the command completed correctly (though it did take about an hour on an 2.6 GHz i5 w/ decent network connectivity.)

several times it appeared that git had hung, only to come back after about 5 minutes.

so the best advice I can give you is double-check you’re in a place w/ decent network connectivity and be patient while get checks out the repo.

-cheers!
-m

It does depend a bit on the CPU power (for the “resolving deltas” and “checking connectivity” git steps, as well as the network.

I just repeated on a little t2.nano instance (the least powerful they have) I have a personal web server on at EC2. It took 15 minutes and 20 seconds.

Thank you all for the responses! I think this is a problem with the network settings of the machine I was working on. I was able to fix this by adding the following lines to ~/.gitconfig:

[url "https://git.qemu.org/git"]
insteadOf = https://git.qemu-project.org

[url "https://git.qemu.org/git"]
insteadOf = git://git.qemu-project.org

[url "https://github.com/"]
insteadOf = git://github.com/

[url "https://github.com/"]
insteadOf = git@github.com:

[url "https://anongit.freedesktop.org/git"]
insteadOf = git://anongit.freedesktop.org