Heltec-Aaron-Lee / WiFi_Kit_series

Arduino source codes and toolchain for WiFi_Kit_series made by HelTecAutomation.
GNU Lesser General Public License v2.1
781 stars 310 forks source link

GitHub install directions broken - littlefs submodule fails to init #153

Open ObviousInRetrospect opened 2 years ago

ObviousInRetrospect commented 2 years ago

$ git submodule update --init --recursive Submodule 'esp32/libraries/ESP32_AzureIoT_Arduino' (https://github.com/VSChina/ESP32_AzureIoT_Arduino.git) registered for path 'libraries/ESP32_AzureIoT_Arduino' Submodule 'esp8266/libraries/ESP8266SdFat' (https://github.com/earlephilhower/ESP8266SdFat.git) registered for path '../esp8266/libraries/ESP8266SdFat' Submodule 'esp8266/libraries/LittleFS/lib/littlefs' (https://github.com/esp8266/Arduino/libraries/LittleFS.git) registered for path '../esp8266/libraries/LittleFS/lib/littlefs' Submodule 'esp8266/libraries/SoftwareSerial' (https://github.com/PaulStoffregen/SoftwareSerial.git) registered for path '../esp8266/libraries/SoftwareSerial' Cloning into '/Users/gbr4/Documents/Arduino/hardware/heltec/esp32/libraries/ESP32_AzureIoT_Arduino'... Cloning into '/Users/gbr4/Documents/Arduino/hardware/heltec/esp8266/libraries/ESP8266SdFat'... Cloning into '/Users/gbr4/Documents/Arduino/hardware/heltec/esp8266/libraries/LittleFS/lib/littlefs'... remote: Not Found fatal: repository 'https://github.com/esp8266/Arduino/libraries/LittleFS.git/' not found fatal: clone of 'https://github.com/esp8266/Arduino/libraries/LittleFS.git' into submodule path '/Users/gbr4/Documents/Arduino/hardware/heltec/esp8266/libraries/LittleFS/lib/littlefs' failed Failed to clone 'esp8266/libraries/LittleFS/lib/littlefs'. Retry scheduled Cloning into '/Users/gbr4/Documents/Arduino/hardware/heltec/esp8266/libraries/SoftwareSerial'... Cloning into '/Users/gbr4/Documents/Arduino/hardware/heltec/esp8266/libraries/LittleFS/lib/littlefs'... remote: Not Found fatal: repository 'https://github.com/esp8266/Arduino/libraries/LittleFS.git/' not found fatal: clone of 'https://github.com/esp8266/Arduino/libraries/LittleFS.git' into submodule path '/Users/gbr4/Documents/Arduino/hardware/heltec/esp8266/libraries/LittleFS/lib/littlefs' failed Failed to clone 'esp8266/libraries/LittleFS/lib/littlefs' a second time, aborting

goblin commented 2 years ago

Yah, I had the same issue.

From memory, I fixed this with something similar to this:

git rm esp8266/libraries/LittleFS/lib/littlefs
git submodule add https://github.com/esp8266/Arduino.git tmp_modules/Arduino
git submodule update --init --recursive
cd esp8266/libraries/LittleFS/lib
ln -s ../../../../tmp_modules/Arduino/libraries/LittleFS/lib/littlefs ./

Also, if you're checking out from git, switch to the 0.0.5 tag. Master branch (just a bit ahead of 0.0.6) was making my dev board panic with "Guru meditation errors" when issuing SerialBT.begin.

brio50 commented 2 years ago

If using git for windows:

OPEN GIT FOR WINDOWS AS ADMINISTRATOR

git config --global core.symlinks true
git clone https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series.git ~/Documents/Arduino/hardware/heltec
cd ~/Documents/Arduino/hardware/heltec
git rm esp8266/libraries/LittleFS/lib/littlefs
git submodule add https://github.com/esp8266/Arduino.git tmp_modules/Arduino
git submodule update --init --recursive
cd esp8266/libraries/LittleFS/lib
cmd <<< "mklink /D littlefs ..\..\..\..\tmp_modules\Arduino\libraries\LittleFS\lib\littlefs"
default-student commented 1 year ago

Yah, I had the same issue.

From memory, I fixed this with something similar to this:

git rm esp8266/libraries/LittleFS/lib/littlefs
git submodule add https://github.com/esp8266/Arduino.git tmp_modules/Arduino
git submodule update --init --recursive
cd esp8266/libraries/LittleFS/lib
ln -s ../../../../tmp_modules/Arduino/libraries/LittleFS/lib/littlefs ./

Also, if you're checking out from git, switch to the 0.0.5 tag. Master branch (just a bit ahead of 0.0.6) was making my dev board panic with "Guru meditation errors" when issuing SerialBT.begin.

I was unable to upload the sketch as it failed while connecting. This and choosing the correct PORT fixed it for me.