wlasny build supla jak zaczac

morf
Posty: 13
Rejestracja: śr paź 25, 2017 8:00 pm

sob lut 17, 2018 9:36 pm

Czesc,
do tej pory dzialalem glownie jako uzytkownik supla korzystajac glownie z gotowych buildow Zybiego, za co serdecznie dziekuje :)

Chcialbym sprobowac troche pogrzebac w kodzie.
Widzialem ze udostepniacie zrodla i SDK, mam kilka prostych (pewnie smiesznych) pytan:
  • Jesli chcialbym dokonac jakis modyfikacji dla obecnie dzialajacych urzadzen np. Zrobic sobie build ze stala korekcja wskazan DHT-11 dla paru nieswornych czujnikow.
    Gdzie grzebac?
    (sciezka z VM) Devel/supla-espressif-esp/src/include/board/.... (np sonoff.c)
    przykladowo modyfikujac argument funkcji

    Kod: Zaznacz cały

    supla_get_temperature
    ?
  • Jak np zrobic build SONOFF ze wsparciem dla DHT11/22?
    Cos jak ma Zybi ale na jego repo githubowym sa juz tylko gotowe buildy?
  • Jedzie do mnie jakis prosty czujnik pm2.5 (tak wiem ze wskazania beda licho warte - chodzi mi i PoC).
    Gada normalnie po UART. Bede go podlaczac do weemosa d1 i bede chcial go dointegrowac do supla.

    W VM z sdk w ogole nie ma buildow dla weemosa, Zybi (znowu dzieki) ma --> rozumiem ze trzeba sobie samemu naklepac?
Ogolnie chodzi mi o koncepcje, troche mam problem z rozpoznaniem sie w tych zrodlach, ale w FAQ i na forum nie znalazlem wprost opisu "how to cook Your own supla build" :)
Nie oczekuje poprowadzenia za raczke tylko potrzebuje paru hasel, dalej sobie poradze.

Dzieki za pomoc

PS. Z drugiej strony widzialem ze ktos na forum uzywal po prostu biblioteki do Arduino i w tej sposob dointegrowal sobie urzadzenie, moze ta droga trzeba isc?

Dzieki!
Slon1
Posty: 43
Rejestracja: wt mar 06, 2018 9:10 pm
Lokalizacja: Szczytno

śr mar 07, 2018 9:13 pm

Udało Ci się ruszyć z tematem? Ja jestem na tym etapie, że czytam wszystko co mogę i jestem w ciemnej d..., VM i Supla SDK jest ale dalej nie wiem co robić?
morf
Posty: 13
Rejestracja: śr paź 25, 2017 8:00 pm

śr mar 07, 2018 9:15 pm

Ostatecznie użyłem biblioteki supla dla arduino... Ale temat nadal. Aktualny
Awatar użytkownika
pzygmunt
Posty: 7431
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontaktowanie:

czw mar 08, 2018 12:11 pm

Wszystko oparte jest o GPL. Poproś Zybiego o źródła.

Jak chcesz wprowadzić korektę to możesz zrobić to tutaj
https://github.com/SUPLA/supla-espressi ... b20.c#L208

lub tutaj
https://github.com/SUPLA/supla-espressi ... _dht.c#L90

Tu możesz zdefiniować własną płytkę
https://github.com/SUPLA/supla-espressi ... lude/board
skoczo
Posty: 40
Rejestracja: czw lis 16, 2017 8:19 pm

wt mar 27, 2018 6:02 am

pzygmunt pisze:
czw mar 08, 2018 12:11 pm
Wszystko oparte jest o GPL. Poproś Zybiego o źródła.

Jak chcesz wprowadzić korektę to możesz zrobić to tutaj
https://github.com/SUPLA/supla-espressi ... b20.c#L208

lub tutaj
https://github.com/SUPLA/supla-espressi ... _dht.c#L90

Tu możesz zdefiniować własną płytkę
https://github.com/SUPLA/supla-espressi ... lude/board
Niestety Zybi nie udostępnia źródeł tylko binarki.
Zybi
Posty: 1418
Rejestracja: ndz cze 26, 2016 4:24 pm

wt mar 27, 2018 6:44 am

Przecież źródła Supli są udostępnione, w czym problem?
Awatar użytkownika
pzygmunt
Posty: 7431
Rejestracja: wt sty 19, 2016 9:26 am
Lokalizacja: Paczków
Kontaktowanie:

wt mar 27, 2018 8:31 am

Wszelkie modyfikacje też powinny być udostępniane. Nawet jak zmodyfikujesz jedną literkę. Wyjątek stanowi korzystanie z alternatywnej komercyjnej licencji tego samego kodu, a takową posiada obecnie tylko kilka firm. Z tego co wiem nikt z forumowiczów.

https://pl.wikipedia.org/wiki/GNU_Gener ... ic_License
skoczo
Posty: 40
Rejestracja: czw lis 16, 2017 8:19 pm

czw mar 29, 2018 11:04 am

pzygmunt pisze:
wt mar 27, 2018 8:31 am
Wszelkie modyfikacje też powinny być udostępniane. Nawet jak zmodyfikujesz jedną literkę. Wyjątek stanowi korzystanie z alternatywnej komercyjnej licencji tego samego kodu, a takową posiada obecnie tylko kilka firm. Z tego co wiem nikt z forumowiczów.

https://pl.wikipedia.org/wiki/GNU_Gener ... ic_License
Zybi. To jak będzie z tymi źródłami?
Awatar użytkownika
Espablo
Posty: 1462
Rejestracja: śr cze 29, 2016 5:04 pm
Lokalizacja: Oświęcim
Kontaktowanie:

czw mar 29, 2018 12:24 pm

skoczo pisze:
czw mar 29, 2018 11:04 am
Zybi. To jak będzie z tymi źródłami?
Przecież @pzygmunt pokazał miejsca, w których można dokonać zmian. Po co ci kody od @Zybi ego. Jeśli znasz podstawy programowania w "C" to powinieneś sobie poradzić z modyfikacją.
Może po świętach zrobię mały poradnik jak zrobić własną kompilację z własnymi ustawieniami.
Każde urządzenie elektryczne działa o wiele lepiej jeśli podłączysz je do prądu. :? :roll:
https://github.com/Espablo
skoczo
Posty: 40
Rejestracja: czw lis 16, 2017 8:19 pm

śr kwie 04, 2018 6:27 pm

Hej,

Mam dwa pytania.
1. Dla sonof touch w sofcie od zibiego są trzy pliki. Po zbudowaniu kodu na wirtualce dostaję jednak tylko dwa pliki(boot_v1.5.bin i sonoff_touch_user1.1024.new.2.bin). Jaka jest różnica?

2. Po wprowadzeniu zmian w kodzie w pliku sonoff_touch.c i zbudowaniu komendą (supla@supla-iotsdk:~/Devel/supla-espressif-esp/src$ ./build.sh sonoff_touch) wynik ma takie same sumy md5 więc chyba moje zmiany nie weszły do buildu. Co robię nie tak? Sprawdzam pliki w katalogu /home/supla/Desktop/ESP8266-Firmware

Logi z budowania:
supla@supla-iotsdk:~/Devel/supla-espressif-esp/src$ ./build.sh sonoff_touch
make -C user clean; make -C driver clean; make -C supla-dev clean;
make[1]: Entering directory '/home/supla/Devel/supla-espressif-esp/src/user'
rm -f -r .output/eagle/debug
make[1]: Leaving directory '/home/supla/Devel/supla-espressif-esp/src/user'
make[1]: Entering directory '/home/supla/Devel/supla-espressif-esp/src/driver'
rm -f -r .output/eagle/debug
make[1]: Leaving directory '/home/supla/Devel/supla-espressif-esp/src/driver'
make[1]: Entering directory '/home/supla/Devel/supla-espressif-esp/src/supla-dev'
rm -f -r .output/eagle/debug
make[1]: Leaving directory '/home/supla/Devel/supla-espressif-esp/src/supla-dev'
rm -f -r .output/eagle/debug
make[1]: Entering directory '/home/supla/Devel/supla-espressif-esp/src/user'
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_esp_hw_timer.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_esp_cfgmode.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_update.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_esp_cfg.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include user_main.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_ds18b20.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_esp_pwm.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_esp_devconn.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_esp_gpio.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_w1.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include supla_dht.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/supla_dht.o -c supla_dht.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/supla_w1.o -c supla_w1.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/supla_esp_gpio.o -c supla_esp_gpio.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/supla_esp_devconn.o -c supla_esp_devconn.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/supla_esp_pwm.o -c supla_esp_pwm.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/supla_ds18b20.o -c supla_ds18b20.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/user_main.o -c user_main.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/supla_esp_cfg.o -c supla_esp_cfg.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/supla_update.o -c supla_update.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/supla_esp_cfgmode.o -c supla_esp_cfgmode.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/supla_esp_hw_timer.o -c supla_esp_hw_timer.c
xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libuser.a .output/eagle/debug/obj/supla_dht.o .output/eagle/debug/obj/supla_w1.o .output/eagle/debug/obj/supla_esp_gpio.o .output/eagle/debug/obj/supla_esp_devconn.o .output/eagle/debug/obj/supla_esp_pwm.o .output/eagle/debug/obj/supla_ds18b20.o .output/eagle/debug/obj/user_main.o .output/eagle/debug/obj/supla_esp_cfg.o .output/eagle/debug/obj/supla_update.o .output/eagle/debug/obj/supla_esp_cfgmode.o .output/eagle/debug/obj/supla_esp_hw_timer.o
xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/libuser.a
make[1]: Leaving directory '/home/supla/Devel/supla-espressif-esp/src/user'
make[1]: Entering directory '/home/supla/Devel/supla-espressif-esp/src/driver'
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include dht22.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/dht22.o -c dht22.c
xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libdriver.a .output/eagle/debug/obj/dht22.o
xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/libdriver.a
make[1]: Leaving directory '/home/supla/Devel/supla-espressif-esp/src/driver'
make[1]: Entering directory '/home/supla/Devel/supla-espressif-esp/src/supla-dev'
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include/supla-dev -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include proto.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include/supla-dev -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include srpc.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include/supla-dev -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include lck.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include/supla-dev -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include log.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include/supla-dev -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/log.o -c log.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include/supla-dev -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/lck.o -c lck.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include/supla-dev -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/srpc.o -c srpc.c
xtensa-lx106-elf-gcc -Os -ggdb -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -Wno-address -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -DESP8266 -D__SINGLE_THREAD -D__EH_DISABLED -D__BOARD_sonoff_touch -DCFG_SECTOR=0x7C -DNOSSL=0 -D__FOTA=1 -I include -I ./ -I ../include/supla-dev -I ../include -I ../nettle/include -I ../include -I ../include/eagle -I ../driver_lib/include -o .output/eagle/debug/obj/proto.o -c proto.c
xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libsupladev.a .output/eagle/debug/obj/log.o .output/eagle/debug/obj/lck.o .output/eagle/debug/obj/srpc.o .output/eagle/debug/obj/proto.o
xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/libsupladev.a
make[1]: Leaving directory '/home/supla/Devel/supla-espressif-esp/src/supla-dev'
make[1]: Entering directory '/home/supla/Devel/supla-espressif-esp/src/nettle'
make[1]: Leaving directory '/home/supla/Devel/supla-espressif-esp/src/nettle'
xtensa-lx106-elf-gcc -L/hdd2/Espressif/ESP8266_NONOS_SDK154/lib -Wl,--gc-sections -nostdlib -T/hdd2/Espressif/ESP8266_NONOS_SDK154/ld/eagle.app.v6.new.1024.app1.ld -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lc -lgcc -lpp -lphy -lnet80211 -lwpa -lmain -llwip -lcrypto -lssl user/.output/eagle/debug/lib/libuser.a driver/.output/eagle/debug/lib/libdriver.a supla-dev/.output/eagle/debug/lib/libsupladev.a nettle/.output/eagle/debug/lib/libnettle.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out
mkdir -p /hdd2/Espressif/ESP8266_BIN154/upgrade

!!!
-1362714563
1362714562
Support boot_v1.2 and +
mv: replace ‘/hdd2/Espressif/ESP8266_BIN154/upgrade/user1.1024.new.2.bin’, overriding mode 0644 (rw-r--r--)?
Generate user1.1024.new.2.bin successully in folder bin/upgrade.
boot.bin------------>0x00000
user1.1024.new.2.bin--->0x01000
!!!
ODPOWIEDZ