From 1f4c8a932e843731efc6ee85377c7c7fae48ba1b Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 16 Sep 2022 22:09:55 +0200 Subject: [PATCH 01/19] Update defconfig.esp32 --- configs/defconfig.esp32 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/defconfig.esp32 b/configs/defconfig.esp32 index 1ab565a90..e4447fa1a 100644 --- a/configs/defconfig.esp32 +++ b/configs/defconfig.esp32 @@ -39,7 +39,6 @@ CONFIG_ESP_MAIN_TASK_STACK_SIZE=4096 CONFIG_ESP_INT_WDT_TIMEOUT_MS=1000 CONFIG_ESP_TASK_WDT_PANIC=y CONFIG_ESP_TASK_WDT_TIMEOUT_S=10 -# CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU1 is not set CONFIG_ESP_TIMER_TASK_STACK_SIZE=4096 CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=8 CONFIG_ESP32_WIFI_STATIC_TX_BUFFER_NUM=8 @@ -48,6 +47,7 @@ CONFIG_FATFS_CODEPAGE_850=y CONFIG_FATFS_LFN_STACK=y # CONFIG_FMB_CONTROLLER_SLAVE_ID_SUPPORT is not set CONFIG_FMB_TIMER_PORT_ENABLED=y +CONFIG_FREERTOS_UNICORE=y CONFIG_FREERTOS_HZ=1000 # CONFIG_FREERTOS_ASSERT_ON_UNTESTED_FUNCTION is not set CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y From af5364f61a8a27774c87534e65e5d6a0e6213d70 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 16 Sep 2022 22:13:14 +0200 Subject: [PATCH 02/19] solo1 --- tools/archive-build.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/archive-build.sh b/tools/archive-build.sh index beb032b35..47615c5fb 100755 --- a/tools/archive-build.sh +++ b/tools/archive-build.sh @@ -4,15 +4,15 @@ IDF_COMMIT=$(git -C "$IDF_PATH" rev-parse --short HEAD || echo "") IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD || echo "") idf_version_string=${IDF_BRANCH//\//_}"-$IDF_COMMIT" -archive_path="dist/arduino-esp32-libs-$idf_version_string.tar.gz" -build_archive_path="dist/arduino-esp32-build-$idf_version_string.tar.gz" -pio_archive_path="dist/framework-arduinoespressif32-$idf_version_string.tar.gz" -pio_zip_archive_path="dist/framework-arduinoespressif32-$idf_version_string.zip" +archive_path="dist/arduino-esp32-libs-solo1-$idf_version_string.tar.gz" +build_archive_path="dist/arduino-esp32-build-solo1-$idf_version_string.tar.gz" +pio_archive_path="dist/framework-arduinoespressif32-solo1-$idf_version_string.tar.gz" +pio_zip_archive_path="dist/framework-arduinoespressif32-solo1-$idf_version_string.zip" mkdir -p dist && rm -rf "$archive_path" "$build_archive_path" cd out -echo "Creating framework-arduinoespressif32" +echo "Creating framework-arduinoespressif32-solo1" cp -rf ../components/arduino arduino-esp32 rm -rf arduino-esp32/docs rm -rf arduino-esp32/tests From e80d6b624d814b41807a4c8ddbca6d59ecf3c804 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 16 Sep 2022 22:14:56 +0200 Subject: [PATCH 03/19] only esp32 --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 568a04b11..450d42544 100755 --- a/build.sh +++ b/build.sh @@ -10,7 +10,7 @@ if ! [ -x "$(command -v git)" ]; then exit 1 fi -TARGET="all" +TARGET="esp32" BUILD_TYPE="all" SKIP_ENV=0 COPY_OUT=0 From 811aa72c199577db2452b80c44f761dbef037b9b Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 16 Sep 2022 22:17:25 +0200 Subject: [PATCH 04/19] Update push.yml --- .github/workflows/push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index e32ad33ba..725a0d401 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,4 +1,4 @@ -name: ESP32 builder IDF_Arduino 4.4.3 +name: ESP32 builder IDF_Arduino 4.4.3 solo1 on: workflow_dispatch: # Manually start a workflow From 6eb152230ee575a6a0fc9852542c13826325ddba Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sat, 17 Sep 2022 12:50:59 +0200 Subject: [PATCH 05/19] Tasmota Core 2.0.5 --- core_version.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core_version.h b/core_version.h index e58018557..2266543d3 100644 --- a/core_version.h +++ b/core_version.h @@ -1,4 +1,4 @@ -#define ARDUINO_ESP32_GIT_VER 0x6ed33835 -#define ARDUINO_ESP32_GIT_DESC 2.0.5pre -#define ARDUINO_ESP32_RELEASE_2_0_5_pre -#define ARDUINO_ESP32_RELEASE "2_0_5_pre" +#define ARDUINO_ESP32_GIT_VER 0x38c3f487 +#define ARDUINO_ESP32_GIT_DESC 2.0.5 +#define ARDUINO_ESP32_RELEASE_2_0_5 +#define ARDUINO_ESP32_RELEASE "2_0_5" From 19f5447de2df6953b22a308397960d6ced075135 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 23 Sep 2022 14:02:02 +0200 Subject: [PATCH 06/19] change framework name to `framework-arduino-solo1` --- tools/copy-libs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/copy-libs.sh b/tools/copy-libs.sh index 4d044a7dd..e3844c019 100755 --- a/tools/copy-libs.sh +++ b/tools/copy-libs.sh @@ -527,3 +527,7 @@ done; # Add IDF versions to sdkconfig echo "#define CONFIG_ARDUINO_IDF_COMMIT \"$IDF_COMMIT\"" >> "$AR_SDK/$MEMCONF/include/sdkconfig.h" echo "#define CONFIG_ARDUINO_IDF_BRANCH \"$IDF_BRANCH\"" >> "$AR_SDK/$MEMCONF/include/sdkconfig.h" + +# Replace "framework-arduinoespressif32" with "framework-arduino-solo1" +sed -i '' 's/framework-arduinoespressif32/framework-arduino-solo1/g' $AR_COMPS/arduino/tools/platformio-build-esp32.py +sed -i '' 's/framework-arduinoespressif32/framework-arduino-solo1/g' $AR_COMPS/arduino/tools/platformio-build.py From 5d2ab6507094a4f2f8fc221f15b8920a5c4ef2d7 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 23 Sep 2022 14:41:19 +0200 Subject: [PATCH 07/19] different syntax for sed for macOS and Linux --- tools/copy-libs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/copy-libs.sh b/tools/copy-libs.sh index e3844c019..0a5376720 100755 --- a/tools/copy-libs.sh +++ b/tools/copy-libs.sh @@ -529,5 +529,5 @@ echo "#define CONFIG_ARDUINO_IDF_COMMIT \"$IDF_COMMIT\"" >> "$AR_SDK/$MEMCONF/in echo "#define CONFIG_ARDUINO_IDF_BRANCH \"$IDF_BRANCH\"" >> "$AR_SDK/$MEMCONF/include/sdkconfig.h" # Replace "framework-arduinoespressif32" with "framework-arduino-solo1" -sed -i '' 's/framework-arduinoespressif32/framework-arduino-solo1/g' $AR_COMPS/arduino/tools/platformio-build-esp32.py -sed -i '' 's/framework-arduinoespressif32/framework-arduino-solo1/g' $AR_COMPS/arduino/tools/platformio-build.py +sed -i 's/framework-arduinoespressif32/framework-arduino-solo1/g' $AR_COMPS/arduino/tools/platformio-build-esp32.py +sed -i 's/framework-arduinoespressif32/framework-arduino-solo1/g' $AR_COMPS/arduino/tools/platformio-build.py From c884897aa3e2b6bb1fb252ce11fd846b0d46b6e8 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 23 Sep 2022 18:33:39 +0200 Subject: [PATCH 08/19] use awk (syntax is same for Linux and Mac) --- tools/archive-build.sh | 3 +++ tools/copy-libs.sh | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/archive-build.sh b/tools/archive-build.sh index 47615c5fb..6bcb73e85 100755 --- a/tools/archive-build.sh +++ b/tools/archive-build.sh @@ -30,6 +30,9 @@ cp -f tools/gen_esp32part.py arduino-esp32/tools/ cp -f tools/platformio-build-*.py arduino-esp32/tools/ cp ../package.json arduino-esp32/package.json cp ../core_version.h arduino-esp32/cores/esp32/core_version.h +# Replace "framework-arduinoespressif32" with "framework-arduino-solo1" +awk -i inplace -v cuv1="framework-arduinoespressif32" -v cuv2="framework-arduino-solo1" '{gsub(cuv1,cuv2); print;}' "arduino-esp32/tools/platformio-build-esp32.py" +awk -i inplace -v cuv1="framework-arduinoespressif32" -v cuv2="framework-arduino-solo1" '{gsub(cuv1,cuv2); print;}' "arduino-esp32/tools/platformio-build.py" mv arduino-esp32/ framework-arduinoespressif32/ # If the framework is as tar.gz is needed uncomment next line # tar --exclude=.* -zcf ../$pio_archive_path framework-arduinoespressif32/ diff --git a/tools/copy-libs.sh b/tools/copy-libs.sh index 0a5376720..4d044a7dd 100755 --- a/tools/copy-libs.sh +++ b/tools/copy-libs.sh @@ -527,7 +527,3 @@ done; # Add IDF versions to sdkconfig echo "#define CONFIG_ARDUINO_IDF_COMMIT \"$IDF_COMMIT\"" >> "$AR_SDK/$MEMCONF/include/sdkconfig.h" echo "#define CONFIG_ARDUINO_IDF_BRANCH \"$IDF_BRANCH\"" >> "$AR_SDK/$MEMCONF/include/sdkconfig.h" - -# Replace "framework-arduinoespressif32" with "framework-arduino-solo1" -sed -i 's/framework-arduinoespressif32/framework-arduino-solo1/g' $AR_COMPS/arduino/tools/platformio-build-esp32.py -sed -i 's/framework-arduinoespressif32/framework-arduino-solo1/g' $AR_COMPS/arduino/tools/platformio-build.py From d3a3b5c998f73a8a1492e031abfd56a1b06e20af Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 23 Sep 2022 18:44:11 +0200 Subject: [PATCH 09/19] AR_BRANCH="pr7284" --- tools/config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/config.sh b/tools/config.sh index b4fd9bee5..474b09b1d 100755 --- a/tools/config.sh +++ b/tools/config.sh @@ -34,7 +34,7 @@ AR_USER="tasmota" AR_REPO="$AR_USER/arduino-esp32" # Arduino branch to use -AR_BRANCH="work" +AR_BRANCH="pr7284" AR_REPO_URL="https://github.com/$AR_REPO.git" if [ -n $GITHUB_TOKEN ]; then From 63e4ffc2b96c5cd2bb227e29fc0433f146fb934e Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sat, 24 Sep 2022 16:51:23 +0200 Subject: [PATCH 10/19] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9c56e3a24..4543792b2 100644 --- a/README.md +++ b/README.md @@ -13,17 +13,17 @@ cd esp32-arduino-lib-builder ### Development builds Look in release and download a version. The day of build is using the commits of this day of IDF / Arduino. -### Stable Release -are based on Arduino Core 2.0.4 and can be used with Platformio for the ESP32, ESP32C3, ESP32S2 and ESP32S3 +### Stable Release including ESP32solo1 +based on Arduino Core 2.0.5 and can be used with Platformio for the ESP32/ESP32solo1, ESP32C3, ESP32S2 and ESP32S3 ``` [platformio] -platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.4.1/platform-espressif32-2.0.4.1.zip +platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.5.1/platform-espressif32-2.0.5.1.zip framework = arduino, espidf ``` -and for the ESP32solo1 with +to use the ESP32 Solo1 Arduino framework add in your env ``` -[platformio] -platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.4.1/platform-espressif32-solo1-2.0.4.1.zip -framework = arduino, espidf +[env:esp32solo1] +board = every esp32 board can be used +build_flags = -DFRAMEWORK_ARDUINO_SOLO1 ``` The frameworks are here [https://github.com/tasmota/arduino-esp32/releases](https://github.com/tasmota/arduino-esp32/releases) From 21a00e14085342cb1fcd893360aedbda4bcdd276 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Tue, 18 Oct 2022 15:12:49 +0200 Subject: [PATCH 11/19] add `cam_hal.h` to include folder --- tools/install-esp-idf.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/install-esp-idf.sh b/tools/install-esp-idf.sh index cd23443ff..67127a50f 100755 --- a/tools/install-esp-idf.sh +++ b/tools/install-esp-idf.sh @@ -34,6 +34,12 @@ if [ ! -x $idf_was_installed ] || [ ! -x $commit_predefined ]; then $IDF_PATH/install.sh fi +# +# Arduino needs cam_hal.h from esp32-camera in include folder +# + +cp "$IDF_PATH/components/esp32-camera/driver/private_include/cam_hal.h" "$IDF_PATH/components/esp32-camera/driver/include/" + # # SETUP ESP-IDF ENV # From 9cca69eda03fbd1eb693c8afed4b05e4cd305ff5 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Tue, 18 Oct 2022 16:52:03 +0200 Subject: [PATCH 12/19] CONFIG_LWIP_UDP_RECVMBOX_SIZE=64 --- configs/defconfig.esp32 | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/defconfig.esp32 b/configs/defconfig.esp32 index e4447fa1a..408cf48a1 100644 --- a/configs/defconfig.esp32 +++ b/configs/defconfig.esp32 @@ -71,6 +71,7 @@ CONFIG_LWIP_TCP_MSS=1436 CONFIG_LWIP_TCP_RTO_TIME=3000 CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=2560 CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU0=y +CONFIG_LWIP_UDP_RECVMBOX_SIZE=64 # CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN is not set CONFIG_MBEDTLS_PSK_MODES=y CONFIG_MBEDTLS_KEY_EXCHANGE_PSK=y From 13607175b5841e46ec3f08db01d95d0b73ccffd9 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 28 Oct 2022 10:04:08 +0200 Subject: [PATCH 13/19] jason2866/action-gh-release@v1.1 --- .github/workflows/push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 725a0d401..925d2860a 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -18,7 +18,7 @@ jobs: - name: Build Arduino Libs run: bash ./build.sh - name: Release - uses: softprops/action-gh-release@v1 + uses: jason2866/action-gh-release@v1.1 #if: startsWith(github.ref, 'refs/tags/') with: tag_name: ${{ github.run_number }} From 20790f0b993523923e1cae17cb39a46190762e27 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 28 Oct 2022 10:06:11 +0200 Subject: [PATCH 14/19] 2.0.5.2 --- core_version.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core_version.h b/core_version.h index 2266543d3..dce32ef2e 100644 --- a/core_version.h +++ b/core_version.h @@ -1,4 +1,4 @@ #define ARDUINO_ESP32_GIT_VER 0x38c3f487 -#define ARDUINO_ESP32_GIT_DESC 2.0.5 -#define ARDUINO_ESP32_RELEASE_2_0_5 -#define ARDUINO_ESP32_RELEASE "2_0_5" +#define ARDUINO_ESP32_GIT_DESC 2.0.5.2 +#define ARDUINO_ESP32_RELEASE_2_0_5_2 +#define ARDUINO_ESP32_RELEASE "2_0_5_2" From ce2fb94ce2f65323df5909f8782e3f1543bfe26f Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Thu, 10 Nov 2022 10:19:46 +0100 Subject: [PATCH 15/19] Update config.sh --- tools/config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/config.sh b/tools/config.sh index 474b09b1d..2910560c7 100755 --- a/tools/config.sh +++ b/tools/config.sh @@ -6,7 +6,7 @@ if [ -z $IDF_PATH ]; then fi if [ -z $IDF_BRANCH ]; then - IDF_BRANCH="IDF_Arduino" + IDF_BRANCH="Tasmota/v4.4" fi if [ -z $AR_PR_TARGET_BRANCH ]; then @@ -34,7 +34,7 @@ AR_USER="tasmota" AR_REPO="$AR_USER/arduino-esp32" # Arduino branch to use -AR_BRANCH="pr7284" +AR_BRANCH="master" AR_REPO_URL="https://github.com/$AR_REPO.git" if [ -n $GITHUB_TOKEN ]; then From 1e1328497c5ec8c7e82b6ff6f61653ab0ba44f94 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Thu, 10 Nov 2022 12:38:54 +0100 Subject: [PATCH 16/19] core 2.0.5.3 --- core_version.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core_version.h b/core_version.h index dce32ef2e..19c6bb113 100644 --- a/core_version.h +++ b/core_version.h @@ -1,4 +1,4 @@ #define ARDUINO_ESP32_GIT_VER 0x38c3f487 -#define ARDUINO_ESP32_GIT_DESC 2.0.5.2 -#define ARDUINO_ESP32_RELEASE_2_0_5_2 -#define ARDUINO_ESP32_RELEASE "2_0_5_2" +#define ARDUINO_ESP32_GIT_DESC 2.0.5.3 +#define ARDUINO_ESP32_RELEASE_2_0_5_3 +#define ARDUINO_ESP32_RELEASE "2_0_5_3" From 5d5e795b4990cc258da2b7df3946152ca8c33118 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Wed, 16 Nov 2022 16:36:01 +0100 Subject: [PATCH 17/19] Update push.yml --- .github/workflows/push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 925d2860a..00dfea0d2 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -18,7 +18,7 @@ jobs: - name: Build Arduino Libs run: bash ./build.sh - name: Release - uses: jason2866/action-gh-release@v1.1 + uses: jason2866/action-gh-release@v1.2 #if: startsWith(github.ref, 'refs/tags/') with: tag_name: ${{ github.run_number }} From a517111801a95cc4e6e082555c08e649e958009e Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sat, 10 Dec 2022 16:54:36 +0100 Subject: [PATCH 18/19] added release info --- .github/workflows/push.yml | 16 ++++++++-------- README.md | 6 +++--- configs/defconfig.esp32 | 1 + configs/defconfig.esp32c3 | 3 ++- configs/defconfig.esp32s2 | 5 ++++- configs/defconfig.esp32s3 | 4 +++- tools/config.sh | 8 +++++++- tools/copy-libs.sh | 6 ++++-- 8 files changed, 32 insertions(+), 17 deletions(-) mode change 100755 => 100644 tools/config.sh diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 00dfea0d2..ca4389f38 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,28 +1,28 @@ -name: ESP32 builder IDF_Arduino 4.4.3 solo1 +name: IDF_Arduino 4.4.3 solo1 on: workflow_dispatch: # Manually start a workflow -# push: -# branches: master -# paths-ignore: -# - '.github/**' # Ignore changes towards the .github directory jobs: build-libs: name: Build Arduino Libs - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - name: Install dependencies run: bash ./tools/prepare-ci.sh - name: Build Arduino Libs run: bash ./build.sh + - name: Display files + run: ls -R ./* - name: Release uses: jason2866/action-gh-release@v1.2 - #if: startsWith(github.ref, 'refs/tags/') with: tag_name: ${{ github.run_number }} + body_path: release-info.txt prerelease: true - files: dist/framework* + files: | + dist/framework* + release-info.txt env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 4543792b2..e63f24845 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,13 @@ cd esp32-arduino-lib-builder ./build.sh ``` ### Development builds -Look in release and download a version. The day of build is using the commits of this day of IDF / Arduino. +Look in release and download a version. There is the Info of the used commits of IDF / Arduino. -### Stable Release including ESP32solo1 +### Stable Platformio Platform release including ESP32solo1 based on Arduino Core 2.0.5 and can be used with Platformio for the ESP32/ESP32solo1, ESP32C3, ESP32S2 and ESP32S3 ``` [platformio] -platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.5.1/platform-espressif32-2.0.5.1.zip +platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.5.2/platform-espressif32-2.0.5.2.zip framework = arduino, espidf ``` to use the ESP32 Solo1 Arduino framework add in your env diff --git a/configs/defconfig.esp32 b/configs/defconfig.esp32 index 408cf48a1..fec81ead8 100644 --- a/configs/defconfig.esp32 +++ b/configs/defconfig.esp32 @@ -72,6 +72,7 @@ CONFIG_LWIP_TCP_RTO_TIME=3000 CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=2560 CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU0=y CONFIG_LWIP_UDP_RECVMBOX_SIZE=64 +CONFIG_LWIP_IPV6_AUTOCONFIG=y # CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN is not set CONFIG_MBEDTLS_PSK_MODES=y CONFIG_MBEDTLS_KEY_EXCHANGE_PSK=y diff --git a/configs/defconfig.esp32c3 b/configs/defconfig.esp32c3 index cbecef8f0..cb23bee4c 100644 --- a/configs/defconfig.esp32c3 +++ b/configs/defconfig.esp32c3 @@ -56,7 +56,6 @@ CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=2304 CONFIG_HAL_ASSERTION_DISABLE=y CONFIG_LOG_DEFAULT_LEVEL_NONE=y # CONFIG_LOG_COLORS is not set -CONFIG_LWIP_IPV6_AUTOCONFIG=y CONFIG_LWIP_LOCAL_HOSTNAME="tasmota" CONFIG_LWIP_MAX_SOCKETS=16 CONFIG_LWIP_SO_RCVBUF=y @@ -64,6 +63,8 @@ CONFIG_LWIP_IP_FORWARD=y CONFIG_LWIP_IPV4_NAPT=y CONFIG_LWIP_DHCP_OPTIONS_LEN=128 CONFIG_LWIP_SNTP_UPDATE_DELAY=10800000 +CONFIG_LWIP_UDP_RECVMBOX_SIZE=64 +CONFIG_LWIP_IPV6_AUTOCONFIG=y CONFIG_MBEDTLS_PSK_MODES=y CONFIG_MBEDTLS_KEY_EXCHANGE_PSK=y CONFIG_NEWLIB_NANO_FORMAT=y diff --git a/configs/defconfig.esp32s2 b/configs/defconfig.esp32s2 index de21b3d17..c589b743c 100644 --- a/configs/defconfig.esp32s2 +++ b/configs/defconfig.esp32s2 @@ -16,7 +16,8 @@ CONFIG_COMPILER_WARN_WRITE_STRINGS=y CONFIG_ESP32S2_DEFAULT_CPU_FREQ_240=y CONFIG_ESP32S2_SPIRAM_SUPPORT=y CONFIG_ESP32S2_ULP_COPROC_ENABLED=y -CONFIG_ESP32S2_ULP_COPROC_RESERVE_MEM=1024 +CONFIG_ESP32S2_ULP_COPROC_RISCV=y +CONFIG_ESP32S2_ULP_COPROC_RESERVE_MEM=4096 CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=4096 CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=0 @@ -65,6 +66,8 @@ CONFIG_LWIP_TCP_MSS=1436 CONFIG_LWIP_TCP_RTO_TIME=3000 CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=2560 CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU0=y +CONFIG_LWIP_UDP_RECVMBOX_SIZE=64 +CONFIG_LWIP_IPV6_AUTOCONFIG=y # CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN is not set CONFIG_MBEDTLS_SSL_PROTO_DTLS=y CONFIG_MBEDTLS_PSK_MODES=y diff --git a/configs/defconfig.esp32s3 b/configs/defconfig.esp32s3 index bef54a741..1e559dbce 100644 --- a/configs/defconfig.esp32s3 +++ b/configs/defconfig.esp32s3 @@ -41,7 +41,7 @@ CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y CONFIG_ESP32S3_SPIRAM_SUPPORT=y CONFIG_ESP32S3_ULP_COPROC_ENABLED=y CONFIG_ESP32S3_ULP_COPROC_RISCV=y -CONFIG_ESP32S3_ULP_COPROC_RESERVE_MEM=1024 +CONFIG_ESP32S3_ULP_COPROC_RESERVE_MEM=4096 CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=4096 CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=0 @@ -93,6 +93,8 @@ CONFIG_LWIP_TCP_MSS=1436 CONFIG_LWIP_TCP_RTO_TIME=3000 CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=2560 CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU0=y +CONFIG_LWIP_UDP_RECVMBOX_SIZE=64 +CONFIG_LWIP_IPV6_AUTOCONFIG=y # CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN is not set CONFIG_MBEDTLS_PSK_MODES=y CONFIG_MBEDTLS_KEY_EXCHANGE_PSK=y diff --git a/tools/config.sh b/tools/config.sh old mode 100755 new mode 100644 index 2910560c7..cc39aa971 --- a/tools/config.sh +++ b/tools/config.sh @@ -6,7 +6,7 @@ if [ -z $IDF_PATH ]; then fi if [ -z $IDF_BRANCH ]; then - IDF_BRANCH="Tasmota/v4.4" + IDF_BRANCH="release/v4.4" fi if [ -z $AR_PR_TARGET_BRANCH ]; then @@ -50,6 +50,12 @@ AR_ESPTOOL_PY="$AR_TOOLS/esptool.py" AR_GEN_PART_PY="$AR_TOOLS/gen_esp32part.py" AR_SDK="$AR_TOOLS/sdk/$IDF_TARGET" +IDF_COMMIT=$(git -C "$IDF_PATH" rev-parse --short HEAD || echo "") +AR_COMMIT=$(git -C "$AR_COMPS/arduino" rev-parse --short HEAD || echo "") + +rm -rf release-info.txt +echo "Framework built from Tasmota IDF branch $IDF_BRANCH commit $IDF_COMMIT and $AR_REPO branch $AR_BRANCH commit $AR_COMMIT" >> release-info.txt + function get_os(){ OSBITS=`arch` if [[ "$OSTYPE" == "linux"* ]]; then diff --git a/tools/copy-libs.sh b/tools/copy-libs.sh index 4d044a7dd..8b2f7d275 100755 --- a/tools/copy-libs.sh +++ b/tools/copy-libs.sh @@ -92,6 +92,8 @@ for item in "${@:2:${#@}-5}"; do if [[ "${item:2:7}" != "ARDUINO" ]] && [[ "$item" != "-DESP32" ]]; then #skip ARDUINO defines DEFINES+="$item " fi + elif [ "$prefix" = "-O" ]; then + PIO_CC_FLAGS+="$item " elif [[ "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" ]]; then if [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" ]]; then C_FLAGS+="$item " @@ -106,7 +108,7 @@ str=`printf '%b' "$str"` #unescape the string set -- $str for item in "${@:2:${#@}-5}"; do prefix="${item:0:2}" - if [[ "$prefix" != "-I" && "$prefix" != "-D" && "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" ]]; then + if [[ "$prefix" != "-I" && "$prefix" != "-D" && "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" && "$prefix" != "-O" ]]; then if [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" ]]; then AS_FLAGS+="$item " if [[ $C_FLAGS == *"$item"* ]]; then @@ -125,7 +127,7 @@ str=`printf '%b' "$str"` #unescape the string set -- $str for item in "${@:2:${#@}-5}"; do prefix="${item:0:2}" - if [[ "$prefix" != "-I" && "$prefix" != "-D" && "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" ]]; then + if [[ "$prefix" != "-I" && "$prefix" != "-D" && "$item" != "-Wall" && "$item" != "-Werror=all" && "$item" != "-Wextra" && "$prefix" != "-O" ]]; then if [[ "${item:0:23}" != "-mfix-esp32-psram-cache" && "${item:0:18}" != "-fmacro-prefix-map" ]]; then CPP_FLAGS+="$item " if [[ $PIO_CC_FLAGS != *"$item"* ]]; then From 2327614b4de69ec9bb5cfbabcdd9492c8087c174 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Thu, 22 Dec 2022 23:41:40 +0100 Subject: [PATCH 19/19] Solo1 core 2.0.6 (#25) --- README.md | 2 +- build.sh | 4 ++-- core_version.h | 8 ++++---- main/Kconfig.projbuild | 4 ++++ package.json | 2 +- tools/archive-build.sh | 7 +++++-- tools/config.sh | 11 +++++++++-- tools/copy-bootloader.sh | 12 +----------- tools/copy-libs.sh | 3 --- tools/copy-to-arduino.sh | 3 +-- tools/install-esp-idf.sh | 2 +- 11 files changed, 29 insertions(+), 29 deletions(-) mode change 100755 => 100644 tools/archive-build.sh diff --git a/README.md b/README.md index e63f24845..b6fd32ed5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Tasmota ESP32 Arduino Lib Builder [![ESP32 builder](https://github.com/Jason2866/esp32-arduino-lib-builder/actions/workflows/push.yml/badge.svg)](https://github.com/Jason2866/esp32-arduino-lib-builder/actions/workflows/push.yml) +# Tasmota ESP32 Arduino Lib Builder [![ESP32 builder](https://github.com/Jason2866/esp32-arduino-lib-builder/actions/workflows/push.yml/badge.svg)](https://github.com/Jason2866/esp32-arduino-lib-builder/actions/workflows/push.yml)[![GitHub Releases](https://img.shields.io/github/downloads/Jason2866/esp32-arduino-lib-builder/total?label=downloads)](https://github.com/Jason2866/esp32-arduino-lib-builder/releases/latest) This repository contains the scripts that produce the libraries included with Tasmota esp32-arduino. diff --git a/build.sh b/build.sh index 450d42544..0b9bf3189 100755 --- a/build.sh +++ b/build.sh @@ -119,11 +119,11 @@ rm -rf build sdkconfig out # Add components version info mkdir -p "$AR_TOOLS/sdk" && rm -rf version.txt && rm -rf "$AR_TOOLS/sdk/versions.txt" -component_version="esp-idf: "$(git -C "$IDF_PATH" symbolic-ref --short HEAD)" "$(git -C "$IDF_PATH" rev-parse --short HEAD) +component_version="esp-idf: "$(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD)" "$(git -C "$IDF_PATH" rev-parse --short HEAD) echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/sdk/versions.txt" for component in `ls "$AR_COMPS"`; do if [ -d "$AR_COMPS/$component/.git" ] || [ -d "$AR_COMPS/$component/.github" ]; then - component_version="$component: "$(git -C "$AR_COMPS/$component" symbolic-ref --short HEAD)" "$(git -C "$AR_COMPS/$component" rev-parse --short HEAD) + component_version="$component: "$(git -C "$AR_COMPS/$component" symbolic-ref --short HEAD || git -C "$AR_COMPS/$component" tag --points-at HEAD)" "$(git -C "$AR_COMPS/$component" rev-parse --short HEAD) echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/sdk/versions.txt" fi done diff --git a/core_version.h b/core_version.h index 19c6bb113..c593bf82d 100644 --- a/core_version.h +++ b/core_version.h @@ -1,4 +1,4 @@ -#define ARDUINO_ESP32_GIT_VER 0x38c3f487 -#define ARDUINO_ESP32_GIT_DESC 2.0.5.3 -#define ARDUINO_ESP32_RELEASE_2_0_5_3 -#define ARDUINO_ESP32_RELEASE "2_0_5_3" +#define ARDUINO_ESP32_GIT_VER 0xcbaeab4e +#define ARDUINO_ESP32_GIT_DESC 2.0.6 +#define ARDUINO_ESP32_RELEASE_2_0_6 +#define ARDUINO_ESP32_RELEASE "2_0_6" diff --git a/main/Kconfig.projbuild b/main/Kconfig.projbuild index d30fccce9..76e2defdb 100644 --- a/main/Kconfig.projbuild +++ b/main/Kconfig.projbuild @@ -13,3 +13,7 @@ config LIB_BUILDER_FLASHFREQ default "40m" if ESPTOOLPY_FLASHFREQ_40M default "26m" if ESPTOOLPY_FLASHFREQ_26M default "20m" if ESPTOOLPY_FLASHFREQ_20M + +config LIB_BUILDER_COMPILE + bool + default y diff --git a/package.json b/package.json index 8f72c8441..4a482e7e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "framework-arduinoespressif32", - "version": "2.0.5", + "version": "2.0.6", "description": "Tasmota Arduino Framework for the Espressif ESP32, ESP32-S and ESP32-C series of SoCs", "keywords": [ "tasmota", diff --git a/tools/archive-build.sh b/tools/archive-build.sh old mode 100755 new mode 100644 index 6bcb73e85..9604c296f --- a/tools/archive-build.sh +++ b/tools/archive-build.sh @@ -1,7 +1,7 @@ #!/bin/bash IDF_COMMIT=$(git -C "$IDF_PATH" rev-parse --short HEAD || echo "") -IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD || echo "") +IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD || echo "") idf_version_string=${IDF_BRANCH//\//_}"-$IDF_COMMIT" archive_path="dist/arduino-esp32-libs-solo1-$idf_version_string.tar.gz" @@ -16,16 +16,19 @@ echo "Creating framework-arduinoespressif32-solo1" cp -rf ../components/arduino arduino-esp32 rm -rf arduino-esp32/docs rm -rf arduino-esp32/tests +rm -rf arduino-esp32/libraries/RainMaker +rm -rf arduino-esp32/libraries/Insights rm -rf arduino-esp32/package rm -rf arduino-esp32/tools/sdk rm -rf arduino-esp32/tools/esptool.py rm -rf arduino-esp32/tools/gen_esp32part.py +rm -rf arduino-esp32/tools/gen_insights_package.py +rm -rf arduino-esp32/tools/gen_insights_package.exe rm -rf arduino-esp32/tools/platformio-build-*.py rm -rf arduino-esp32/platform.txt rm -rf arduino-esp32/package.json cp -f platform.txt arduino-esp32/ cp -Rf tools/sdk arduino-esp32/tools/ -cp -f tools/esptool.py arduino-esp32/tools/ cp -f tools/gen_esp32part.py arduino-esp32/tools/ cp -f tools/platformio-build-*.py arduino-esp32/tools/ cp ../package.json arduino-esp32/package.json diff --git a/tools/config.sh b/tools/config.sh index cc39aa971..86c2b196a 100644 --- a/tools/config.sh +++ b/tools/config.sh @@ -34,7 +34,7 @@ AR_USER="tasmota" AR_REPO="$AR_USER/arduino-esp32" # Arduino branch to use -AR_BRANCH="master" +AR_BRANCH="work_ipv6" AR_REPO_URL="https://github.com/$AR_REPO.git" if [ -n $GITHUB_TOKEN ]; then @@ -46,7 +46,6 @@ AR_COMPS="$AR_ROOT/components" AR_OUT="$AR_ROOT/out" AR_TOOLS="$AR_OUT/tools" AR_PLATFORM_TXT="$AR_OUT/platform.txt" -AR_ESPTOOL_PY="$AR_TOOLS/esptool.py" AR_GEN_PART_PY="$AR_TOOLS/gen_esp32part.py" AR_SDK="$AR_TOOLS/sdk/$IDF_TARGET" @@ -86,6 +85,14 @@ export SED="sed" export SSTAT="stat -c %s" if [[ "$AR_OS" == "macos" ]]; then + if ! [ -x "$(command -v gsed)" ]; then + echo "ERROR: gsed is not installed! Please install gsed first. ex. brew install gsed" + exit 1 + fi + if ! [ -x "$(command -v gawk)" ]; then + echo "ERROR: gawk is not installed! Please install gawk first. ex. brew install gawk" + exit 1 + fi export SED="gsed" export SSTAT="stat -f %z" fi diff --git a/tools/copy-bootloader.sh b/tools/copy-bootloader.sh index c8faf2dfc..1442c70fa 100755 --- a/tools/copy-bootloader.sh +++ b/tools/copy-bootloader.sh @@ -7,18 +7,8 @@ BOOTCONF=$FLASH_MODE"_$FLASH_FREQ" source ./tools/config.sh -echo "Copying bootloader: $AR_SDK/bin/bootloader_$BOOTCONF.bin" +echo "Copying bootloader: $AR_SDK/bin/bootloader_$BOOTCONF.elf" mkdir -p "$AR_SDK/bin" -# Workaround for getting the bootloaders to be flashable with esptool v4.x -# It might still be needed for IDF5, but using the included esptool instead -#cp "build/bootloader/bootloader.bin" "$AR_SDK/bin/bootloader_$BOOTCONF.bin" - -# We use esptool v.4.21 in Tasmota IDF fork so no need to clone here - -#if [ ! -e "tools/esptool" ]; then -# git clone https://github.com/espressif/esptool tools/esptool -#fi -./esp-idf/components/esptool_py/esptool/esptool.py --chip "$IDF_TARGET" elf2image --dont-append-digest "build/bootloader/bootloader.elf" -o "$AR_SDK/bin/bootloader_$BOOTCONF.bin" cp "build/bootloader/bootloader.elf" "$AR_SDK/bin/bootloader_$BOOTCONF.elf" diff --git a/tools/copy-libs.sh b/tools/copy-libs.sh index 8b2f7d275..a6505d084 100755 --- a/tools/copy-libs.sh +++ b/tools/copy-libs.sh @@ -481,9 +481,6 @@ rm -rf platform_start.txt platform_mid.txt 1platform_mid.txt # sdkconfig cp -f "sdkconfig" "$AR_SDK/sdkconfig" -# esptool.py -cp "$IDF_COMPS/esptool_py/esptool/esptool.py" "$AR_ESPTOOL_PY" - # gen_esp32part.py cp "$IDF_COMPS/partition_table/gen_esp32part.py" "$AR_GEN_PART_PY" diff --git a/tools/copy-to-arduino.sh b/tools/copy-to-arduino.sh index ba5b17273..6880b75d6 100755 --- a/tools/copy-to-arduino.sh +++ b/tools/copy-to-arduino.sh @@ -16,10 +16,9 @@ fi echo "Installing new libraries to $ESP32_ARDUINO" -rm -rf $ESP32_ARDUINO/tools/sdk $ESP32_ARDUINO/tools/esptool.py $ESP32_ARDUINO/tools/gen_esp32part.py $ESP32_ARDUINO/tools/platformio-build-*.py $ESP32_ARDUINO/platform.txt +rm -rf $ESP32_ARDUINO/tools/sdk $ESP32_ARDUINO/tools/gen_esp32part.py $ESP32_ARDUINO/tools/platformio-build-*.py $ESP32_ARDUINO/platform.txt cp -f $AR_OUT/platform.txt $ESP32_ARDUINO/ cp -Rf $AR_TOOLS/sdk $ESP32_ARDUINO/tools/ -cp -f $AR_TOOLS/esptool.py $ESP32_ARDUINO/tools/ cp -f $AR_TOOLS/gen_esp32part.py $ESP32_ARDUINO/tools/ cp -f $AR_TOOLS/platformio-build-*.py $ESP32_ARDUINO/tools/ diff --git a/tools/install-esp-idf.sh b/tools/install-esp-idf.sh index 67127a50f..a6fd16a4c 100755 --- a/tools/install-esp-idf.sh +++ b/tools/install-esp-idf.sh @@ -46,4 +46,4 @@ cp "$IDF_PATH/components/esp32-camera/driver/private_include/cam_hal.h" "$IDF_PA source $IDF_PATH/export.sh export IDF_COMMIT=$(git -C "$IDF_PATH" rev-parse --short HEAD) -export IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD) +export IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD)