ESP8266 edycja oprogramowania.

henryxxl
Posts: 18
Joined: Wed Oct 05, 2016 7:30 pm

Post

jestem już na koncowym etapie ale tu tez mam problem, nie moge wgrac programu do ukladu. Posiadam esp8266 nodemcu na przejściówce ch340g, nie wiem jak w linuxie sprawdzic czy mam zainstalowany sterownik i może w tym problem.

Code: Select all

esp8266@dhcppc8:~/source-code-examples/blinky$ make
CC user/user_main.c
AR build/app_app.a
LD build/app.out
FW firmware/
make: esptool.py: Polecenie nie znalezione
Makefile:112: polecenia dla obiektu 'firmware/0x00000.bin' nie powiodły się
make: *** [firmware/0x00000.bin] Błąd 127
0xFF
Posts: 308
Joined: Sat Feb 20, 2016 8:54 pm

Post

Wpisz i wklej wynik

Code: Select all

lsusb

Code: Select all

dmesg | grep tty
Ale przede wszystkim nie znalzło esptool.py

Code: Select all

make: esptool.py: Polecenie nie znalezione
henryxxl
Posts: 18
Joined: Wed Oct 05, 2016 7:30 pm

Post

po wykonaniu pierwszy raz make wyskoczył mi wcześniej opisywany błąd z python, sprawdziłem i mam wersje 2.7 po czym ponownie właczyłem make i po kilku sekundach wyświetliło zainstalowen esp sdk lecz według opisy powinno to trwać około 2 godzin, może w tym jest problem?

lsub

Code: Select all

Bus 002 Device 006: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 13d3:5130 IMC Networks 
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
dmesg | grep tty

Code: Select all

esp8266@dhcppc8:~/source-code-examples/blinky$ dmesg | grep tty
[    0.000000] console [tty0] enabled
[    3.038714] fbcon: Remapping primary device, fb1, to tty 1-63
[48164.227074] usb 2-1.2: ch341-uart converter now attached to ttyUSB0
0xFF
Posts: 308
Joined: Sat Feb 20, 2016 8:54 pm

Post

Na Raspberry Pi trwa to 2 godziny, na Twoim komputerze pewnie krócej.
Zawsze możesz powtórzyć kompilację:

Code: Select all

make clean && make
Przejściówka działa poprawnie - jest na /dev/ttyUSB0

Code: Select all

[48164.227074] usb 2-1.2: ch341-uart converter now attached to ttyUSB0
henryxxl
Posts: 18
Joined: Wed Oct 05, 2016 7:30 pm

Post

Podczas kompilacji mam błąd :

Code: Select all

[ERROR]   
[ERROR]  (elapsed: 23:44.89)
[23:45] / ct-ng:152: polecenia dla obiektu 'build' nie powiodły się
make[2]: *** [build] Błąd 2
make[2]: Opuszczenie katalogu '/opt/esp-open-sdk/crosstool-NG'
../Makefile:120: polecenia dla obiektu '_toolchain' nie powiodły się
make[1]: *** [_toolchain] Błąd 2
make[1]: Opuszczenie katalogu '/opt/esp-open-sdk/crosstool-NG'
Makefile:116: polecenia dla obiektu '/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc' nie powiodły się
make: *** [/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc] Błąd 2
Zastanawiam się czy ja coś źle robię czy mam pecha ;)
User avatar
pzygmunt
Posts: 19235
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

Pecha w to nie mieszaj ;)

Co jest w logach ?
henryxxl
Posts: 18
Joined: Wed Oct 05, 2016 7:30 pm

Post

Możesz napisać o które logi chodzi? Kopiowałem komendy dokłądnie z strony podanej wcześniej, jak narazie mam same nie powodzenia co do debiana ale trzeba być twardym i muszę to zrobić bo linux to fajna sprawa;)
Dziękuję koledzy że mi pomagacie.
User avatar
pzygmunt
Posts: 19235
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

Wrzucasz tylko końcówkę błędów i trudno z tego coś wyczytać. Powinien gdzieś być log
henryxxl
Posts: 18
Joined: Wed Oct 05, 2016 7:30 pm

Post

oto calosc, na koncu sa bledy ;)

Code: Select all

esp8266@dhcppc8:/opt$ cd esp-open-sdk 
esp8266@dhcppc8:/opt/esp-open-sdk$ make clean && make
Makefile:180: uwaga: polecenia zakrywające dla obiektu 'ESP8266_NONOS_SDK_V1.5.4_16_05_20/.dir'
Makefile:169: uwaga: ignoruję stare polecenia dla obiektu 'ESP8266_NONOS_SDK_V1.5.4_16_05_20/.dir'
rm -rf ESP8266_NONOS_SDK_V1.5.4_16_05_20
rm -f sdk
rm -f .sdk_patch_1.5.4
rm -f user_rf_cal_sector_set.o empty_user_rf_pre_init.o
make -C esp-open-lwip -f Makefile.open clean
make[1]: Wejście do katalogu '/opt/esp-open-sdk/esp-open-lwip'
rm -f lwip/core/def.o lwip/core/dhcp.o lwip/core/dns.o lwip/core/init.o lwip/core/mem.o lwip/core/memp.o lwip/core/netif.o lwip/core/pbuf.o lwip/core/raw.o lwip/core/sntp.o lwip/core/stats.o lwip/core/sys_arch.o lwip/core/sys.o lwip/core/tcp.o lwip/core/tcp_in.o lwip/core/tcp_out.o lwip/core/timers.o lwip/core/udp.o lwip/core/ipv4/autoip.o lwip/core/ipv4/icmp.o lwip/core/ipv4/igmp.o lwip/core/ipv4/inet.o lwip/core/ipv4/inet_chksum.o lwip/core/ipv4/ip_addr.o lwip/core/ipv4/ip.o lwip/core/ipv4/ip_frag.o lwip/netif/etharp.o lwip/app/dhcpserver.o espconn_dummy.o  liblwip_open.a
make[1]: Opuszczenie katalogu '/opt/esp-open-sdk/esp-open-lwip'
make -C crosstool-NG clean MAKELEVEL=0
make: Wejście do katalogu '/opt/esp-open-sdk/crosstool-NG'
  RM     'ct-ng'
  RM     'scripts/crosstool-NG.sh'
  RM     'scripts/saveSample.sh'
  RM     'scripts/showTuple.sh'
  RM     'paths'
  RM     'config/configure.in'
  RM     'kconfig'
  RM     'docs/ct-ng.1'
  RM     'docs/ct-ng.1.gz'
make: Opuszczenie katalogu '/opt/esp-open-sdk/crosstool-NG'
rm -rf crosstool-NG/.build/src
rm -f crosstool-NG/local-patches/gcc/4.8.5/1000-*
rm -rf /opt/esp-open-sdk/xtensa-lx106-elf
Makefile:180: uwaga: polecenia zakrywające dla obiektu 'ESP8266_NONOS_SDK_V1.5.4_16_05_20/.dir'
Makefile:169: uwaga: ignoruję stare polecenia dla obiektu 'ESP8266_NONOS_SDK_V1.5.4_16_05_20/.dir'
make -C crosstool-NG -f ../Makefile _ct-ng
make[1]: Wejście do katalogu '/opt/esp-open-sdk/crosstool-NG'
../Makefile:180: uwaga: polecenia zakrywające dla obiektu 'ESP8266_NONOS_SDK_V1.5.4_16_05_20/.dir'
../Makefile:169: uwaga: ignoruję stare polecenia dla obiektu 'ESP8266_NONOS_SDK_V1.5.4_16_05_20/.dir'
./bootstrap
Running autoconf...
Done. You may now run:
    ./configure
./configure --prefix=`pwd`
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking whether sed understands -r -i -e... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for gobjcopy... no
checking for objcopy... objcopy
checking for absolute path to objcopy... /usr/bin/objcopy
checking for gobjdump... no
checking for objdump... objdump
checking for absolute path to objdump... /usr/bin/objdump
checking for greadelf... no
checking for readelf... readelf
checking for absolute path to readelf... /usr/bin/readelf
checking for gperf... gperf
checking for absolute path to gperf... /usr/bin/gperf
checking for bison... bison
checking for flex... flex
checking for makeinfo... makeinfo
checking for cut... cut
checking for stat... stat
checking for readlink... readlink
checking for wget... wget
checking for tar... tar
checking for gzip... gzip
checking for bzip2... bzip2
checking for help2man... help2man
checking for gpatch... no
checking for patch... patch
checking for absolute path to patch... /usr/bin/patch
checking for bash >= 3.1... /bin/bash
checking for GNU awk... /usr/bin/gawk
checking for GNU make >= 3.80... /usr/bin/make
checking whether /usr/bin/make sets $(MAKE)... yes
checking for make 3.81... no
checking for GNU libtool >= 1.5.26... /usr/bin/libtool
checking for GNU libtoolize >= 1.5.26... /usr/bin/libtoolize
checking for GNU automake >= 1.10... /usr/bin/automake
checking for xz... xz
checking for cvs... no
checking for svn... no
checking for inline... inline
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking whether gettext is declared... yes
checking for library containing bindtextdomain... none required
checking ncurses/ncurses.h usability... no
checking ncurses/ncurses.h presence... no
checking for ncurses/ncurses.h... no
checking ncurses/curses.h usability... no
checking ncurses/curses.h presence... no
checking for ncurses/curses.h... no
checking ncursesw/curses.h usability... no
checking ncursesw/curses.h presence... no
checking for ncursesw/curses.h... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for library containing initscr... -lncurses
checking for library containing tgetent... none required
configure: creating ./config.status
config.status: creating Makefile
make MAKELEVEL=0
make: Wejście do katalogu '/opt/esp-open-sdk/crosstool-NG'
  SED    'ct-ng'
  SED    'scripts/crosstool-NG.sh'
  SED    'scripts/saveSample.sh'
  SED    'scripts/showTuple.sh'
  GEN    'config/configure.in'
  GEN    'paths.mk'
  GEN    'paths.sh'
  DEP    'nconf.gui.dep'
  DEP    'nconf.dep'
  DEP    'lxdialog/yesno.dep'
  DEP    'lxdialog/util.dep'
  DEP    'lxdialog/textbox.dep'
  DEP    'lxdialog/menubox.dep'
  DEP    'lxdialog/inputbox.dep'
  DEP    'lxdialog/checklist.dep'
  DEP    'mconf.dep'
  DEP    'conf.dep'
  BISON  'zconf.tab.c'
  GPERF  'zconf.hash.c'
  LEX    'zconf.lex.c'
  DEP    'zconf.tab.dep'
  CC     'zconf.tab.o'
  CC     'conf.o'
  LD     'conf'
  CC     'lxdialog/checklist.o'
  CC     'lxdialog/inputbox.o'
  CC     'lxdialog/menubox.o'
  CC     'lxdialog/textbox.o'
  CC     'lxdialog/util.o'
  CC     'lxdialog/yesno.o'
  CC     'mconf.o'
  LD     'mconf'
  CC     'nconf.o'
  CC     'nconf.gui.o'
  LD     'nconf'
  SED    'docs/ct-ng.1'
  GZIP   'docs/ct-ng.1.gz'
make: Opuszczenie katalogu '/opt/esp-open-sdk/crosstool-NG'
make install MAKELEVEL=0
make: Wejście do katalogu '/opt/esp-open-sdk/crosstool-NG'
  GEN    'config/configure.in'
  GEN    'paths.mk'
  GEN    'paths.sh'
  INST    'ct-ng'
  INSTDIR 'config/'
  INSTDIR 'contrib/'
  INSTDIR 'patches/'
  INSTDIR 'scripts/'
  INST    'steps.mk'
  INST    'paths'
  INSTDIR 'samples/'
  INST    'kconfig/'
  INST    'docs/*.txt'
  INST    'ct-ng.1.gz'

For auto-completion, do not forget to install 'ct-ng.comp' into
your bash completion directory (usually /etc/bash_completion.d)
make: Opuszczenie katalogu '/opt/esp-open-sdk/crosstool-NG'
make[1]: Opuszczenie katalogu '/opt/esp-open-sdk/crosstool-NG'
cp -f 1000-mforce-l32.patch crosstool-NG/local-patches/gcc/4.8.5/
make -C crosstool-NG -f ../Makefile _toolchain
make[1]: Wejście do katalogu '/opt/esp-open-sdk/crosstool-NG'
../Makefile:180: uwaga: polecenia zakrywające dla obiektu 'ESP8266_NONOS_SDK_V1.5.4_16_05_20/.dir'
../Makefile:169: uwaga: ignoruję stare polecenia dla obiektu 'ESP8266_NONOS_SDK_V1.5.4_16_05_20/.dir'
./ct-ng xtensa-lx106-elf
make[2]: Wejście do katalogu '/opt/esp-open-sdk/crosstool-NG'
  CONF  config/config.in
#
# configuration written to .config
#

***********************************************************

Initially reported by: Max Filippov <jcmvbkbc@gmail.com>
URL: http://www.esp8266.com/viewtopic.php?f=9&t=224

***********************************************************

WARNING! This sample may enable experimental features.
         Please be sure to review the configuration prior
         to building and using your toolchain!
Now, you have been warned!

***********************************************************

Now configured for "xtensa-lx106-elf"
make[2]: Opuszczenie katalogu '/opt/esp-open-sdk/crosstool-NG'
sed -r -i.org s%CT_PREFIX_DIR=.*%CT_PREFIX_DIR="/opt/esp-open-sdk/xtensa-lx106-elf"% .config
sed -r -i s%CT_INSTALL_DIR_RO=y%"#"CT_INSTALL_DIR_RO=y% .config
cat ../crosstool-config-overrides >> .config
./ct-ng build
make[2]: Wejście do katalogu '/opt/esp-open-sdk/crosstool-NG'
[INFO ]  Performing some trivial sanity checks
[INFO ]  Build started 20161010.204130
[INFO ]  Building environment variables
[INFO ]  =================================================================
[INFO ]  Retrieving needed toolchain components' tarballs
[INFO ]  Retrieving needed toolchain components' tarballs: done in 0.08s (at 00:04)
[INFO ]  =================================================================
[INFO ]  Extracting and patching toolchain components
[INFO ]  Extracting and patching toolchain components: done in 86.29s (at 01:30)
[INFO ]  =================================================================
[INFO ]  Installing ncurses for build
[INFO ]  Installing ncurses for build: done in 52.38s (at 02:22)
[INFO ]  =================================================================
[INFO ]  Installing GMP for host
[INFO ]  Installing GMP for host: done in 56.94s (at 03:19)
[INFO ]  =================================================================
[INFO ]  Installing MPFR for host
[INFO ]  Installing MPFR for host: done in 41.29s (at 04:01)
[INFO ]  =================================================================
[INFO ]  Installing ISL for host
[INFO ]  Installing ISL for host: done in 41.59s (at 04:42)
[INFO ]  =================================================================
[INFO ]  Installing CLooG for host
[INFO ]  Installing CLooG for host: done in 8.94s (at 04:51)
[INFO ]  =================================================================
[INFO ]  Installing MPC for host
[INFO ]  Installing MPC for host: done in 20.31s (at 05:12)
[INFO ]  =================================================================
[INFO ]  Installing expat for host
[INFO ]  Installing expat for host: done in 9.42s (at 05:21)
[INFO ]  =================================================================
[INFO ]  Installing binutils for host
[INFO ]  Installing binutils for host: done in 87.31s (at 06:48)
[INFO ]  =================================================================
[INFO ]  Installing C library headers & start files
[INFO ]  Installing C library headers & start files: done in 0.03s (at 06:48)
[INFO ]  =================================================================
[INFO ]  Installing pass-2 core C gcc compiler
[INFO ]  Installing pass-2 core C gcc compiler: done in 401.73s (at 13:30)
[INFO ]  =================================================================
[INFO ]  Installing C library
[INFO ]  Installing C library: done in 54.00s (at 14:24)
[INFO ]  =================================================================
[INFO ]  Installing final gcc compiler
[INFO ]  Installing final gcc compiler: done in 492.09s (at 22:36)
[INFO ]  =================================================================
[INFO ]  Installing cross-gdb
[ERROR]    configure: error: python is missing or unusable
[ERROR]    make[4]: *** [configure-gdb] Error 1
[ERROR]    make[3]: *** [all] Error 2
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing cross-gdb'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_debug_gdb_build[scripts/build/debug/300-gdb.sh@120]
[ERROR]  >>        called from: do_debug[scripts/build/debug.sh@35]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@646]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      'share/doc/crosstool-ng/crosstool-ng-1.22.0-55-gecfc19a/B - Known issues.txt'
[ERROR]   
[ERROR]  (elapsed: 24:12.11)
[24:12] / ct-ng:152: polecenia dla obiektu 'build' nie powiodły się
make[2]: *** [build] Błąd 2
make[2]: Opuszczenie katalogu '/opt/esp-open-sdk/crosstool-NG'
../Makefile:120: polecenia dla obiektu '_toolchain' nie powiodły się
make[1]: *** [_toolchain] Błąd 2
make[1]: Opuszczenie katalogu '/opt/esp-open-sdk/crosstool-NG'
Makefile:116: polecenia dla obiektu '/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc' nie powiodły się
make: *** [/opt/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc] Błąd 2
esp8266@dhcppc8:/opt/esp-open-sdk$ 
User avatar
pzygmunt
Posts: 19235
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

python is missing or unusable

Return to “Pomoc”