These are chat archives for SmingHub/Sming

14th
Oct 2016
zhivko
@zhivko
Oct 14 2016 08:39
Yes OTA is working in SmingRtos :)
Daniel Pechmann
@dpechman
Oct 14 2016 12:52
hey guys! trying to switch to SmingRTOS here too. Just installed ESP8266_RTOS_SDK and esp-open-sdk. When I try to compile examples it screams: daniel@sdk-rtos:~/dev/ESP8266_RTOS_SDK/examples/websocket_demo$ ./gen_misc.sh
./gen_misc.sh: line 11: SDK_PATH=/home/daniel/dev/esp-open-sdk: No such file or directory
./gen_misc.sh: line 12: BIN_PATH=/home/daniel/dev/ESP8266_BIN: No such file or directory
gen_misc.sh version 20150911
after change exports in gen_misc.sh to the "right path" it still the same error...
have pointed $export SDK_PATH to my ESP8266_RTOS_SDK folder
Daniel Pechmann
@dpechman
Oct 14 2016 12:57
not sure about ESP8266_BIN
./gen_misc.sh
./gen_misc.sh: line 11: SDK_PATH=/home/daniel/dev/ESP8266_RTOS_SDK: No such file or directory
./gen_misc.sh: line 12: BIN_PATH=/home/daniel/dev/esp-open-sdk: No such file or directory
gen_misc.sh version 20150911
ThomasL
@tht
Oct 14 2016 14:37
Hi Daniel,
To be honest I've never tried to compile any of the RTOS_SDK examples. Does it work if you tun make inside SmingRTOS/sming/?
ThomasL
@tht
Oct 14 2016 14:44
Okey... I can confirm that I'm able to compile RTOS_SDK examples after I've done the steps mentioned above.
This is what I've set in gen_misc.sh:
export SDK_PATH=~/SmingRTOS/ESP8266_RTOS_SDK
export BIN_PATH=~/SmingRTOS/ESP8266_RTOS_SDK-BIN
ThomasL
@tht
Oct 14 2016 15:00
I don't understand why you do get the error messages on line 11 and 12. Exporting a variable does NOT validate if it is a correct path. Most likely you've added an error in gen_misc.sh. Did you maybe put an unnecessary $ in front of export?
Daniel Pechmann
@dpechman
Oct 14 2016 15:28
Hi Thomas! I dont put anything? I just forgot to delete! now its showing error 127
Error 127
make1: Leaving directory '/home/daniel/dev/ESP8266_RTOS_SDK/examples/websocket_demo/user'
/home/daniel/dev/ESP8266_RTOS_SDK/Makefile:318: recipe for target '.subdirs' failed
ThomasL
@tht
Oct 14 2016 16:56
Sorry… no idea where it fails now. Did you follow my instructions from above? It's about the same on a Linux system so it should work well. And maybe it helps if you post the whole output of make.
Daniel Pechmann
@dpechman
Oct 14 2016 17:29

daniel@sdk-rtos:~/dev/ESP8266_RTOS_SDK/examples/websocket_demo$ ./gen_misc.sh
./gen_misc.sh: line 10: SDK_BASE=/home/daniel/dev/ESP8266_RTOS_SDK: No such file or directory
gen_misc.sh version 20150911

SDK_PATH:
/home/daniel/dev/ESP8266_RTOS_SDK

BIN_PATH:
/home/daniel/dev/ESP8266_BIN

Please check SDK_PATH & BIN_PATH, enter (Y/y) to continue:
Y

Please follow below steps(1-5) to generate specific bin(s):
STEP 1: use boot_v1.2+ by default
boot mode: new

STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):

ignore boot
generate bin: eagle.flash.bin+eagle.irom0text.bin

STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz)
enter (0/1/2/3, default 2):

spi speed: 40 MHz

STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT)
enter (0/1/2/3, default 0):

spi mode: QIO

STEP 5: choose spi size and map
0= 512KB( 256KB+ 256KB)
2=1024KB( 512KB+ 512KB)
3=2048KB( 512KB+ 512KB)
4=4096KB( 512KB+ 512KB)
5=2048KB(1024KB+1024KB)
6=4096KB(1024KB+1024KB)
enter (0/2/3/4/5/6, default 0):

spi size: 512KB
spi ota map: 256KB + 256KB

start...

make -C user clean; make -C websocket clean;
make1: Entering directory '/home/daniel/dev/ESP8266_RTOS_SDK/examples/websocket_demo/user'
rm -f -r .output/eagle/debug
make1: Leaving directory '/home/daniel/dev/ESP8266_RTOS_SDK/examples/websocket_demo/user'
make1: Entering directory '/home/daniel/dev/ESP8266_RTOS_SDK/examples/websocket_demo/websocket'
rm -f -r .output/eagle/debug
make1: Leaving directory '/home/daniel/dev/ESP8266_RTOS_SDK/examples/websocket_demo/websocket'
rm -f -r .output/eagle/debug
make1: Entering directory '/home/daniel/dev/ESP8266_RTOS_SDK/examples/websocket_demo/user'
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I /home/daniel/dev/ESP8266_RTOS_SDK/include -I /home/daniel/dev/ESP8266_RTOS_SDK/extra_include -I /home/daniel/dev/ESP8266_RTOS_SDK/include/espressif -I /home/daniel/dev/ESP8266_RTOS_SDK/include/lwip -I /home/daniel/dev/ESP8266_RTOS_SDK/include/lwip/ipv4 -I /home/daniel/dev/ESP8266_RTOS_SDK/include/lwip/ipv6 -I /home/daniel/dev/ESP8266_RTOS_SDK/include/nopoll -I /home/daniel/dev/ESP8266_RTOS_SDK/include/spiffs -I /home/daniel/dev/ESP8266_RTOS_SDK/include/ssl -I /home/daniel/dev/ESP8266_RTOS_SDK/include/json user_main.c
/bin/sh: 2: xtensa-lx106-elf-gcc: not found
xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I /home/daniel/dev/ESP8266_RTOS_SDK/include -I /home/daniel/dev/ESP8266_RTOS_SDK/extra_include -I /home/daniel/dev/ESP8266_RTOS_SDK/include/espressif -I /home/daniel/dev/ESP8266_RTOS_SDK/include/lwip -I /home/daniel/dev/ESP8266_RTOS_SDK/include/lwip/ipv4 -I /home/daniel/dev/ESP8266_RTOS_SDK/include/lwip/ipv6 -I /home/daniel/dev/ESP8266_RTOS_SDK/include/nopoll -I /home/daniel/dev/ESP8266_RTOS_SDK/include/spiffs -I /home/daniel/dev/ESP8266_RTOS_SDK/include/ssl -I /home/daniel/dev/ESP8266_RTOS_SDK/include/json -o .output/eagle/debug/obj/user_main.o -c user_main.c
make1: xtensa-lx106-elf-gcc: Command not found
/home/daniel/dev/ESP8266_RTOS_SDK/Makefile:332: recipe for target '.output/eagle/debug/obj/user_main.o' failed
make1: [.output/eagle/debug/obj/user_main.o] Error 127
make1: Leaving directory '/home/daniel/dev/ESP8266_RTOS_SDK/examples/websocket_demo/user'
/home/daniel/dev/ESP8266_RTOS_SDK/Makefile:318: recipe for target '.subdirs' failed
make:
[.subdirs] Error 2

Daniel Pechmann
@dpechman
Oct 14 2016 17:34
xtensa-lx106-elf-gcc is installed....
it is in ~/dev/esp-open-sdk/xtensa-lx106-elf
Daniel Pechmann
@dpechman
Oct 14 2016 18:04
progress... was missing export PATH=/home/daniel/dev/esp-open-sdk/crosstool-NG/builds/xtensa-lx106-elf/bin/:$PATH
now error 1 !!!
/home/daniel/dev/esp-open-sdk/crosstool-NG/builds/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.5/../../../../xtensa-lx106-elf/bin/ld: cannot find -lhal
collect2: error: ld returned 1 exit status
ThomasL
@tht
Oct 14 2016 21:46

There is still something wrong in the script…

./gen_misc.sh: line 10: SDK_BASE=/home/daniel/dev/ESP8266_RTOS_SDK: No such file or directory

I don't think that will solve your issue but IMHO it's always a good idea to fix alle the errors shown on screen in the order they appear.

Btw… the libhal.a archive should be in esp-open-sdk/xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/lib, lib32, lib64