ESP32-IDF 从github下载问题

esp32lwx
Posts: 3
Joined: Sat Feb 16, 2019 2:45 am

ESP32-IDF 从github下载问题

Postby esp32lwx » 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

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: ESP32-IDF 从github下载问题

Postby ESP_Gargamel » Mon Nov 01, 2021 1:09 am

可以参考一下:https://blog.csdn.net/Marchtwentytwo/ar ... /120286981
使用 git global url

User avatar
山竹君_kk
Posts: 17
Joined: Mon Nov 01, 2021 2:33 am

Re: ESP32-IDF 从github下载问题

Postby 山竹君_kk » Fri Nov 05, 2021 2:37 am

官方其实有个特别好的解决方法,针对国内用户访问github困难的。 到这个连接里去找到你需要的esp-idf版本,找到Download an archive with submodules included这下面的链接下载就好了。这个是他们官方配置好所有东西包括所有子模块后的压缩包。下载下来直接解压到你原来的路径覆盖原来的idf就可以用了。
从根本上解决了子模块下载的问题。

esp32lwx
Posts: 3
Joined: Sat Feb 16, 2019 2:45 am

Re: ESP32-IDF 从github下载问题

Postby esp32lwx » Fri Nov 05, 2021 2:51 am

感谢两位的回复,因为赶赶时间转到WINDOWS先,LINUX的后面找时间试。
谢谢!!

Who is online

Users browsing this forum: Google [Bot] and 53 guests