我从gitee上clone了ESP-idf 然后按照说明先执行了一下set-submodules-to-github.sh文件 然后接着执行git submodule update --init --recursive 但是每次都显示连接失败无法clone信息如下:
cyn@ubuntu:~/linuxprj/Iot_fw_esp/esp-idf$ git submodule update --init --recursive
Cloning into '/home/cyn/linuxprj/Iot_fw_esp/esp-idf/components/asio/asio'...
fatal: unable to access 'https://github.com/espressif/asio.git/': GnuTLS recv error (-54): Error in the pull function.
fatal: clone of 'https://github.com/espressif/asio.git' into submodule path '/home/cyn/linuxprj/Iot_fw_esp/esp-idf/components/asio/asio' failed
Failed to clone 'components/asio/asio'. Retry scheduled
Cloning into '/home/cyn/linuxprj/Iot_fw_esp/esp-idf/components/bt/host/nimble/nimble'...
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: clone of 'https://github.com/espressif/esp-nimble.git' into submodule path '/home/cyn/linuxprj/Iot_fw_esp/esp-idf/components/bt/host/nimble/nimble' failed
Failed to clone 'components/bt/host/nimble/nimble'. Retry scheduled
Cloning into '/home/cyn/linuxprj/Iot_fw_esp/esp-idf/components/cbor/tinycbor'...
无法连接到git子模块问题
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: 无法连接到git子模块问题
既然你是从 gitee 上拉取 esp-idf,那请使用仓库 https://gitee.com/EspressifSystems/esp-gitee-tools 中带的工具,以及查阅此仓库下的说明文档使用,有问题请再提出。
-
- Posts: 30
- Joined: Sun Mar 21, 2021 9:35 am
Re: 无法连接到git子模块问题
重新使用clone下来的tool内的可以使用,但是需要将URL的https更改成git,,,,到最后任然有几个文件无法clone下来这是为什么。
以下是运行tool日志
$ ./set-submodules-to-github.sh
submodule.components/asio/asio.url git://github.com/espressif/asio.git
submodule.components/bootloader/subproject/components/micro-ecc/micro-ecc.url git://github.com/kmackay/micro-ecc.git
submodule.components/bt/controller/lib.url git://github.com/espressif/esp32-bt-lib.git
submodule.components/bt/host/nimble/nimble.url git://github.com/espressif/esp-nimble.git
submodule.components/cbor/tinycbor.url git://github.com/intel/tinycbor.git
submodule.components/cmock/CMock.url git://github.com/ThrowTheSwitch/CMock.git
submodule.components/coap/libcoap.url git://github.com/obgm/libcoap.git
submodule.components/esp_wifi/lib.url git://github.com/espressif/esp32-wifi-lib.git
submodule.components/esptool_py/esptool.url git://github.com/espressif/esptool.git
submodule.components/expat/expat.url git://github.com/libexpat/libexpat.git
submodule.components/json/cJSON.url git://github.com/DaveGamble/cJSON.git
submodule.components/libsodium/libsodium.url git://github.com/jedisct1/libsodium.git
submodule.components/lwip/lwip.url git://github.com/espressif/esp-lwip.git
submodule.components/mbedtls/mbedtls.url git://github.com/espressif/mbedtls.git
submodule.components/mqtt/esp-mqtt.url git://github.com/espressif/esp-mqtt.git
submodule.components/nghttp/nghttp2.url git://github.com/nghttp2/nghttp2.git
submodule.components/protobuf-c/protobuf-c.url git://github.com/protobuf-c/protobuf-c.git
submodule.components/spiffs/spiffs.url git://github.com/pellepl/spiffs.git
submodule.components/tinyusb/tinyusb.url git://github.com/espressif/tinyusb.git
submodule.components/unity/unity.url git://github.com/ThrowTheSwitch/Unity.git
submodule.examples/build_system/cmake/import_lib/main/lib/tinyxml2.url git://github.com/leethomason/tinyxml2.git
submodule.examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib.url git://github.com/espressif/esp-cryptoauthlib.git
以下是获取子模块日志
$ git submodule update --init --recursive
Cloning into 'F:/esp_temp/esp-idf/components/asio/asio'...
Cloning into 'F:/esp_temp/esp-idf/components/bt/host/nimble/nimble'...
Cloning into 'F:/esp_temp/esp-idf/components/cmock/CMock'...
Cloning into 'F:/esp_temp/esp-idf/components/coap/libcoap'...
Cloning into 'F:/esp_temp/esp-idf/components/esp_wifi/lib'...
Cloning into 'F:/esp_temp/esp-idf/components/esptool_py/esptool'...
Cloning into 'F:/esp_temp/esp-idf/components/expat/expat'...
Cloning into 'F:/esp_temp/esp-idf/components/json/cJSON'...
Cloning into 'F:/esp_temp/esp-idf/components/libsodium/libsodium'...
Cloning into 'F:/esp_temp/esp-idf/components/lwip/lwip'...
Cloning into 'F:/esp_temp/esp-idf/components/mbedtls/mbedtls'...
Cloning into 'F:/esp_temp/esp-idf/components/mqtt/esp-mqtt'...
Cloning into 'F:/esp_temp/esp-idf/components/nghttp/nghttp2'...
Cloning into 'F:/esp_temp/esp-idf/components/protobuf-c/protobuf-c'...
Cloning into 'F:/esp_temp/esp-idf/components/spiffs/spiffs'...
Cloning into 'F:/esp_temp/esp-idf/components/tinyusb/tinyusb'...
Cloning into 'F:/esp_temp/esp-idf/components/unity/unity'...
Cloning into 'F:/esp_temp/esp-idf/examples/build_system/cmake/import_lib/main/lib/tinyxml2'...
Cloning into 'F:/esp_temp/esp-idf/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib'...
Submodule path 'components/asio/asio': checked out 'f31694c9f1746ba189a4bcae2e34db15135ddb22'
Submodule path 'components/bootloader/subproject/components/micro-ecc/micro-ecc': checked out 'd037ec89546fad14b5c4d5456c2e23a71e554966'
fatal: could not get a repository handle for submodule 'components/bt/controller/lib'
以下是运行tool日志
$ ./set-submodules-to-github.sh
submodule.components/asio/asio.url git://github.com/espressif/asio.git
submodule.components/bootloader/subproject/components/micro-ecc/micro-ecc.url git://github.com/kmackay/micro-ecc.git
submodule.components/bt/controller/lib.url git://github.com/espressif/esp32-bt-lib.git
submodule.components/bt/host/nimble/nimble.url git://github.com/espressif/esp-nimble.git
submodule.components/cbor/tinycbor.url git://github.com/intel/tinycbor.git
submodule.components/cmock/CMock.url git://github.com/ThrowTheSwitch/CMock.git
submodule.components/coap/libcoap.url git://github.com/obgm/libcoap.git
submodule.components/esp_wifi/lib.url git://github.com/espressif/esp32-wifi-lib.git
submodule.components/esptool_py/esptool.url git://github.com/espressif/esptool.git
submodule.components/expat/expat.url git://github.com/libexpat/libexpat.git
submodule.components/json/cJSON.url git://github.com/DaveGamble/cJSON.git
submodule.components/libsodium/libsodium.url git://github.com/jedisct1/libsodium.git
submodule.components/lwip/lwip.url git://github.com/espressif/esp-lwip.git
submodule.components/mbedtls/mbedtls.url git://github.com/espressif/mbedtls.git
submodule.components/mqtt/esp-mqtt.url git://github.com/espressif/esp-mqtt.git
submodule.components/nghttp/nghttp2.url git://github.com/nghttp2/nghttp2.git
submodule.components/protobuf-c/protobuf-c.url git://github.com/protobuf-c/protobuf-c.git
submodule.components/spiffs/spiffs.url git://github.com/pellepl/spiffs.git
submodule.components/tinyusb/tinyusb.url git://github.com/espressif/tinyusb.git
submodule.components/unity/unity.url git://github.com/ThrowTheSwitch/Unity.git
submodule.examples/build_system/cmake/import_lib/main/lib/tinyxml2.url git://github.com/leethomason/tinyxml2.git
submodule.examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib.url git://github.com/espressif/esp-cryptoauthlib.git
以下是获取子模块日志
$ git submodule update --init --recursive
Cloning into 'F:/esp_temp/esp-idf/components/asio/asio'...
Cloning into 'F:/esp_temp/esp-idf/components/bt/host/nimble/nimble'...
Cloning into 'F:/esp_temp/esp-idf/components/cmock/CMock'...
Cloning into 'F:/esp_temp/esp-idf/components/coap/libcoap'...
Cloning into 'F:/esp_temp/esp-idf/components/esp_wifi/lib'...
Cloning into 'F:/esp_temp/esp-idf/components/esptool_py/esptool'...
Cloning into 'F:/esp_temp/esp-idf/components/expat/expat'...
Cloning into 'F:/esp_temp/esp-idf/components/json/cJSON'...
Cloning into 'F:/esp_temp/esp-idf/components/libsodium/libsodium'...
Cloning into 'F:/esp_temp/esp-idf/components/lwip/lwip'...
Cloning into 'F:/esp_temp/esp-idf/components/mbedtls/mbedtls'...
Cloning into 'F:/esp_temp/esp-idf/components/mqtt/esp-mqtt'...
Cloning into 'F:/esp_temp/esp-idf/components/nghttp/nghttp2'...
Cloning into 'F:/esp_temp/esp-idf/components/protobuf-c/protobuf-c'...
Cloning into 'F:/esp_temp/esp-idf/components/spiffs/spiffs'...
Cloning into 'F:/esp_temp/esp-idf/components/tinyusb/tinyusb'...
Cloning into 'F:/esp_temp/esp-idf/components/unity/unity'...
Cloning into 'F:/esp_temp/esp-idf/examples/build_system/cmake/import_lib/main/lib/tinyxml2'...
Cloning into 'F:/esp_temp/esp-idf/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib'...
Submodule path 'components/asio/asio': checked out 'f31694c9f1746ba189a4bcae2e34db15135ddb22'
Submodule path 'components/bootloader/subproject/components/micro-ecc/micro-ecc': checked out 'd037ec89546fad14b5c4d5456c2e23a71e554966'
fatal: could not get a repository handle for submodule 'components/bt/controller/lib'
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: 无法连接到git子模块问题
请严格按照 https://gitee.com/EspressifSystems/esp- ... -update.md 文档的步骤操作!不要使用 esp-idf/tools/set-submodules-to-github.sh,这是个 idf 内部开发时使用的脚本。你用了 esp-gitee-tools 中的 sh 后,就不需要用 tools 下的 sh 了。
-
- Posts: 30
- Joined: Sun Mar 21, 2021 9:35 am
Re: 无法连接到git子模块问题
使用该文档clone IDF以及git子模块成功了。
之前按照https://gitee.com/EspressifSystems/esp-idf下面的README_CN.md来尝试搭建环境失败,遇到了一堆问题。但是在该文档中并未提到https://gitee.com/EspressifSystems/esp-gitee-tools/blob/master/docs/README-submodule-update.md所指的文档。所以能否在https://gitee.com/EspressifSystems/esp-idf的README中怎加此链接的TIPS,否则初次搭建gitee的环境时无法毫无目的的找到该路径文档。
之前按照https://gitee.com/EspressifSystems/esp-idf下面的README_CN.md来尝试搭建环境失败,遇到了一堆问题。但是在该文档中并未提到https://gitee.com/EspressifSystems/esp-gitee-tools/blob/master/docs/README-submodule-update.md所指的文档。所以能否在https://gitee.com/EspressifSystems/esp-idf的README中怎加此链接的TIPS,否则初次搭建gitee的环境时无法毫无目的的找到该路径文档。
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: 无法连接到git子模块问题
非常感谢你提的这条建议,idf 下面的 README_CN.md 确实引入了你当前遇到的问题,这部分说明(https://gitee.com/EspressifSystems/esp- ... 9%E7%9B%AE)已经较长时间未更新。会建议内部针对 gitee 补充相关说明。
Who is online
Users browsing this forum: No registered users and 31 guests