当执行git clone -b QPDS24.1_REL_AGILEX5_GSRD_PR https://github.com/altera-opensource/arm-trusted-firmware arm-trusted-firmware遇到报错:

Cloning into 'arm-trusted-firmware'...
fatal: unable to access 'https://github.com/altera-opensource/arm-trusted-firmware/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.

 

Screenshot from 2025-12-02 04-12-08

 

 

或者是报错:

Cloning into 'arm-trusted-firmware'...
fatal: unable to access 'https://github.com/altera-opensource/arm-trusted-firmware/': Failed to connect to github.com port 443 after 132671 ms: Connection timed out

Screenshot from 2025-12-02 04-12-41

 

 

或者报错:

Cloning into 'arm-trusted-firmware'...
error: RPC failed; curl 16 Error in the HTTP2 framing layer
fatal: expected flush after ref listing

Screenshot from 2025-12-02 04-12-25

 

 

有可能gitbub之前设置过代理,只需分别执行如下代码即可:

git config --global --unset http.proxy
git config --global --unset https.proxy

Screenshot from 2025-12-02 04-13-14