diff --git a/components/thingjs_boards b/components/thingjs_boards index f0fa8b1..1753284 160000 --- a/components/thingjs_boards +++ b/components/thingjs_boards @@ -1 +1 @@ -Subproject commit f0fa8b1ae59d9bfe63d8a86f98ce43c5de33269d +Subproject commit 17532840280db1b26055f5a383d3cc3724821edd diff --git a/components/thingjs_core b/components/thingjs_core index 2401a9c..a82efb9 160000 --- a/components/thingjs_core +++ b/components/thingjs_core @@ -1 +1 @@ -Subproject commit 2401a9cbf67b15747102a6f7021e739ea3f56617 +Subproject commit a82efb96b74093a70eb7b1e6be59875872e12d9b diff --git a/components/thingjs_extern b/components/thingjs_extern index e9aa15f..3a348c5 160000 --- a/components/thingjs_extern +++ b/components/thingjs_extern @@ -1 +1 @@ -Subproject commit e9aa15f82c7b90cb40e431933de32525f919b032 +Subproject commit 3a348c5ec0744c1e0b81ce108142015d31ec1dc4 diff --git a/components/thingjs_front b/components/thingjs_front index b7a49c2..1a00337 160000 --- a/components/thingjs_front +++ b/components/thingjs_front @@ -1 +1 @@ -Subproject commit b7a49c286c9ef7e430672a0bb3cd487b939124bb +Subproject commit 1a003373679bfbd6d36c45a7331d9e8022d5b8b1 diff --git a/components/thingjs_stdi b/components/thingjs_stdi index f847b6c..a1e4b55 160000 --- a/components/thingjs_stdi +++ b/components/thingjs_stdi @@ -1 +1 @@ -Subproject commit f847b6c3d0ab2a210fc92381e65dd9e9344d881b +Subproject commit a1e4b5519fd0129a10f91d3b4fb6ea3b5fd05fc3 diff --git a/do.sh b/do.sh new file mode 100755 index 0000000..54cf0b7 --- /dev/null +++ b/do.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +if [ -n "$1" ] +then + while [ -n "$1" ] + do + case $1 in + clean) + $IDF_PATH/tools/idf.py clean + ;; + build) + $IDF_PATH/tools/idf.py all + ;; + build-front) + cd components/thingjs_front/ && npm run build && cd ../.. + ;; + build-all) + cd components/thingjs_front/ && npm run build && cd ../.. && $IDF_PATH/tools/idf.py all + ;; + flash) + $IDF_PATH/tools/idf.py flash + ;; + erase) + $IDF_PATH/tools/idf.py erase + ;; + monitor) + $IDF_PATH/tools/idf.py monitor + ;; + pull-all) + echo "Pull esp32" + git pull + echo "Pulling thingjs_boards" + cd components/thingjs_boards/ && git pull && cd .. + echo "Pulling thingjs_extern" + cd thingjs_extern && git pull && cd .. + echo "Pulling thingjs_front" + cd thingjs_front && git pull && cd .. + echo "Pulling thingjs_stdi" + cd thingjs_stdi && git pull && cd .. + ;; + checkout-all) + if [[ $2 == "-b" ]]; then + over_params="-b" + shift + fi + echo "Checkout esp32 to $over_params $2" + git checkout $over_params $2 && git pull + echo "Checkout thingjs_boards to $over_params $2" + cd components/thingjs_boards/ && git checkout $over_params $2 && git pull + cd .. + echo "Checkout thingjs_front to $over_params $2" + cd thingjs_front && git checkout $over_params $2 && git pull + cd .. + echo "Checkout thingjs_stdi to $over_params $2" + cd thingjs_stdi && git checkout $over_params $2 && git pull + cd .. + shift + ;; + air) + if [ ! -d "./build/" ] + then + echo "Prepare firmware..." + $IDF_PATH/tools/idf.py all + fi + + ip=$(awk -F "=" '/controller-ip/ {print $2}' config.ini) + echo "Try to upload firmware to $ip" + curl -m 60 -# -F 'data=@./build/ThingJS.bin;filename=firmware.bin' "http://$ip/firmware" + echo "" + ;; + *) + echo "Unknown command $1" + ;; + esac + shift + done +else + $IDF_PATH/tools/idf.py all +fi diff --git a/partitions.csv b/partitions.csv index 9f96b1f..e478321 100644 --- a/partitions.csv +++ b/partitions.csv @@ -3,6 +3,6 @@ nvs, data, nvs, 0x9000, 0x4000, otadata, data, ota, 0xd000, 0x2000 phy_init, data, phy, 0xf000, 0x1000, -ota_0, app, ota_0, 0x10000, 0x140000, -ota_1, app, ota_1, , 0x140000, -storage, data, spiffs, , 0x170000, \ No newline at end of file +ota_0, app, ota_0, 0x10000, 0x160000, +ota_1, app, ota_1, , 0x160000, +storage, data, spiffs, , 0x130000, \ No newline at end of file diff --git a/sdkconfig b/sdkconfig index 51cbc32..fa1968c 100644 --- a/sdkconfig +++ b/sdkconfig @@ -4,7 +4,6 @@ # CONFIG_IDF_TARGET_ESP32=y CONFIG_IDF_TARGET="esp32" -CONFIG_IDF_FIRMWARE_CHIP_ID=0x0000 # # SDK tool configuration