ESP32-IDF 从github下载问题
Posted: Sun Oct 31, 2021 3:22 am
每次重新搭建IDF开发环境,最惨的就是github访问以及下载慢的问题,说明一下环境,我们是基于ubuntu平台进行开发的,用esp32做各种产品。从原来的3.0一直走到今天的4.3,本次更新4.3因为这个github访问的问题,已经搞了两三天了,每次都是其中的某些模块会下载失败,搞的特别不爽,就想问一下,乐鑫能不能提供整体打包的下载链接给国内客户,或提供国内的下载链接?这个问题我想不是我一个人存在,随意百度一下,一堆的解决方案,说明这已经是一个普遍存在的问题了,希望乐鑫能解决。我们产品因为这个延期,会影响到后面的订单,请麻烦给予重视。
下面是出错的LOG.
Cloning into '/project/esp32/v4.3/esp-idf/components/bootloader/subproject/components/micro-ecc/micro-ecc'...
error: RPC failed; curl 35 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
fatal: The remote end hung up unexpectedly
fatal: clone of 'https://github.com/kmackay/micro-ecc.git' into submodule path '/project/esp32/v4.3/esp-idf/components/bootloader/subproject/components/micro-ecc/micro-ecc' failed
Failed to clone 'components/bootloader/subproject/components/micro-ecc/micro-ecc'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/bt/controller/lib_esp32'...
fatal: unable to access 'https://github.com/espressif/esp32-bt-lib.git/': Empty reply from server
fatal: clone of 'https://github.com/espressif/esp32-bt-lib.git' into submodule path '/project/esp32/v4.3/esp-idf/components/bt/controller/lib_esp32' failed
Failed to clone 'components/bt/controller/lib_esp32'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/esp_phy/lib'...
fatal: unable to access 'https://github.com/espressif/esp-phy-lib.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/espressif/esp-phy-lib.git' into submodule path '/project/esp32/v4.3/esp-idf/components/esp_phy/lib' failed
Failed to clone 'components/esp_phy/lib'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/esp_wifi/lib'...
fatal: unable to access 'https://github.com/espressif/esp32-wifi-lib.git/': Failed to connect to github.com port 443: Connection timed out
fatal: clone of 'https://github.com/espressif/esp32-wifi-lib.git' into submodule path '/project/esp32/v4.3/esp-idf/components/esp_wifi/lib' failed
Failed to clone 'components/esp_wifi/lib'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/esptool_py/esptool'...
fatal: unable to access 'https://github.com/espressif/esptool.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/espressif/esptool.git' into submodule path '/project/esp32/v4.3/esp-idf/components/esptool_py/esptool' failed
Failed to clone 'components/esptool_py/esptool'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/expat/expat'...
fatal: unable to access 'https://github.com/libexpat/libexpat.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/libexpat/libexpat.git' into submodule path '/project/esp32/v4.3/esp-idf/components/expat/expat' failed
Failed to clone 'components/expat/expat'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/libsodium/libsodium'...
fatal: unable to access 'https://github.com/jedisct1/libsodium.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/jedisct1/libsodium.git' into submodule path '/project/esp32/v4.3/esp-idf/components/libsodium/libsodium' failed
Failed to clone 'components/libsodium/libsodium'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/lwip/lwip'...
fatal: unable to access 'https://github.com/espressif/esp-lwip.git/': Failed to connect to github.com port 443: Connection timed out
fatal: clone of 'https://github.com/espressif/esp-lwip.git' into submodule path '/project/esp32/v4.3/esp-idf/components/lwip/lwip' failed
Failed to clone 'components/lwip/lwip'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/mqtt/esp-mqtt'...
fatal: unable to access 'https://github.com/espressif/esp-mqtt.git/': Failed to connect to github.com port 443: Connection timed out
fatal: clone of 'https://github.com/espressif/esp-mqtt.git' into submodule path '/project/esp32/v4.3/esp-idf/components/mqtt/esp-mqtt' failed
Failed to clone 'components/mqtt/esp-mqtt'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/protobuf-c/protobuf-c'...
fatal: unable to access 'https://github.com/protobuf-c/protobuf-c.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/protobuf-c/protobuf-c.git' into submodule path '/project/esp32/v4.3/esp-idf/components/protobuf-c/protobuf-c' failed
Failed to clone 'components/protobuf-c/protobuf-c'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/spiffs/spiffs'...
fatal: unable to access 'https://github.com/pellepl/spiffs.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/pellepl/spiffs.git' into submodule path '/project/esp32/v4.3/esp-idf/components/spiffs/spiffs' failed
Failed to clone 'components/spiffs/spiffs'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/examples/build_system/cmake/import_lib/main/lib/tinyxml2'...
fatal: unable to access 'https://github.com/leethomason/tinyxml2.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/leethomason/tinyxml2.git' into submodule path '/project/esp32/v4.3/esp-idf/examples/build_system/cmake/import_lib/main/lib/tinyxml2' failed
Failed to clone 'examples/build_system/cmake/import_lib/main/lib/tinyxml2'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib'...
fatal: unable to access 'https://github.com/espressif/esp-cryptoauthlib.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/espressif/esp-cryptoauthlib.git' into submodule path '/project/esp32/v4.3/esp-idf/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib' failed
Failed to clone 'examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib'. Retry scheduled
下面是出错的LOG.
Cloning into '/project/esp32/v4.3/esp-idf/components/bootloader/subproject/components/micro-ecc/micro-ecc'...
error: RPC failed; curl 35 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
fatal: The remote end hung up unexpectedly
fatal: clone of 'https://github.com/kmackay/micro-ecc.git' into submodule path '/project/esp32/v4.3/esp-idf/components/bootloader/subproject/components/micro-ecc/micro-ecc' failed
Failed to clone 'components/bootloader/subproject/components/micro-ecc/micro-ecc'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/bt/controller/lib_esp32'...
fatal: unable to access 'https://github.com/espressif/esp32-bt-lib.git/': Empty reply from server
fatal: clone of 'https://github.com/espressif/esp32-bt-lib.git' into submodule path '/project/esp32/v4.3/esp-idf/components/bt/controller/lib_esp32' failed
Failed to clone 'components/bt/controller/lib_esp32'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/esp_phy/lib'...
fatal: unable to access 'https://github.com/espressif/esp-phy-lib.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/espressif/esp-phy-lib.git' into submodule path '/project/esp32/v4.3/esp-idf/components/esp_phy/lib' failed
Failed to clone 'components/esp_phy/lib'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/esp_wifi/lib'...
fatal: unable to access 'https://github.com/espressif/esp32-wifi-lib.git/': Failed to connect to github.com port 443: Connection timed out
fatal: clone of 'https://github.com/espressif/esp32-wifi-lib.git' into submodule path '/project/esp32/v4.3/esp-idf/components/esp_wifi/lib' failed
Failed to clone 'components/esp_wifi/lib'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/esptool_py/esptool'...
fatal: unable to access 'https://github.com/espressif/esptool.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/espressif/esptool.git' into submodule path '/project/esp32/v4.3/esp-idf/components/esptool_py/esptool' failed
Failed to clone 'components/esptool_py/esptool'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/expat/expat'...
fatal: unable to access 'https://github.com/libexpat/libexpat.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/libexpat/libexpat.git' into submodule path '/project/esp32/v4.3/esp-idf/components/expat/expat' failed
Failed to clone 'components/expat/expat'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/libsodium/libsodium'...
fatal: unable to access 'https://github.com/jedisct1/libsodium.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/jedisct1/libsodium.git' into submodule path '/project/esp32/v4.3/esp-idf/components/libsodium/libsodium' failed
Failed to clone 'components/libsodium/libsodium'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/lwip/lwip'...
fatal: unable to access 'https://github.com/espressif/esp-lwip.git/': Failed to connect to github.com port 443: Connection timed out
fatal: clone of 'https://github.com/espressif/esp-lwip.git' into submodule path '/project/esp32/v4.3/esp-idf/components/lwip/lwip' failed
Failed to clone 'components/lwip/lwip'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/mqtt/esp-mqtt'...
fatal: unable to access 'https://github.com/espressif/esp-mqtt.git/': Failed to connect to github.com port 443: Connection timed out
fatal: clone of 'https://github.com/espressif/esp-mqtt.git' into submodule path '/project/esp32/v4.3/esp-idf/components/mqtt/esp-mqtt' failed
Failed to clone 'components/mqtt/esp-mqtt'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/protobuf-c/protobuf-c'...
fatal: unable to access 'https://github.com/protobuf-c/protobuf-c.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/protobuf-c/protobuf-c.git' into submodule path '/project/esp32/v4.3/esp-idf/components/protobuf-c/protobuf-c' failed
Failed to clone 'components/protobuf-c/protobuf-c'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/components/spiffs/spiffs'...
fatal: unable to access 'https://github.com/pellepl/spiffs.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/pellepl/spiffs.git' into submodule path '/project/esp32/v4.3/esp-idf/components/spiffs/spiffs' failed
Failed to clone 'components/spiffs/spiffs'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/examples/build_system/cmake/import_lib/main/lib/tinyxml2'...
fatal: unable to access 'https://github.com/leethomason/tinyxml2.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/leethomason/tinyxml2.git' into submodule path '/project/esp32/v4.3/esp-idf/examples/build_system/cmake/import_lib/main/lib/tinyxml2' failed
Failed to clone 'examples/build_system/cmake/import_lib/main/lib/tinyxml2'. Retry scheduled
Cloning into '/project/esp32/v4.3/esp-idf/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib'...
fatal: unable to access 'https://github.com/espressif/esp-cryptoauthlib.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: clone of 'https://github.com/espressif/esp-cryptoauthlib.git' into submodule path '/project/esp32/v4.3/esp-idf/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib' failed
Failed to clone 'examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib'. Retry scheduled