Can not compile firmware for ESP8266

astonix
Posts: 22
Joined: Wed Aug 03, 2016 5:45 am

Hello,

Today i try to compile firmware from Supla repository (ESP8266_IoT) with execute the ./gen_misc.sh in terminal.
But it seems appear error like this:
./gen_misc.sh: line 167: make: command not found
./gen_misc.sh: line 169: make: command not found
I've checked those lines, and found that there are script regarding those error:

Code: Select all

make clean

make COMPILE=gcc BOOT=$boot APP=$app SPI_SPEED=$spi_speed SPI_MODE=$spi_mode SPI_SIZE_MAP=$spi_size_map
Did i miss something to compile?

Rgds,
Aston
User avatar
pzygmunt
Posts: 18284
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

You need to install ESP8266 toolchain.
You can use pre installed ESP developer environmental.

x64
https://www.supla.org/download/SUPLA-IOT-SDK.ova

x86
https://www.supla.org/download/SUPLA-IOT-SDK_x86.ova
astonix
Posts: 22
Joined: Wed Aug 03, 2016 5:45 am

pzygmunt wrote: Tue Feb 07, 2017 9:06 am You need to install ESP8266 toolchain.
You can use pre installed ESP developer environmental.

x64
https://www.supla.org/download/SUPLA-IOT-SDK.ova

x86
https://www.supla.org/download/SUPLA-IOT-SDK_x86.ova
Hi,

I already installed esp-open-sdk toolchain and esptool.py on my linux laptop.
I also set path, SDK, and bin to my folder which i installed the toolchain.
Should be enough to do ESP8266 related tasks (building, compiling, and flashing)
User avatar
pzygmunt
Posts: 18284
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

sudo apt-get install build-essential
astonix
Posts: 22
Joined: Wed Aug 03, 2016 5:45 am

pzygmunt wrote: Tue Feb 07, 2017 10:16 am sudo apt-get install build-essential
My build-essential is already the newest version.
User avatar
pzygmunt
Posts: 18284
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

You don't have path to make
make: command not found

try relogin
astonix
Posts: 22
Joined: Wed Aug 03, 2016 5:45 am

pzygmunt wrote: Tue Feb 07, 2017 10:38 am You don't have path to make
make: command not found

try relogin
Hi,

What did you mean "Relogin"?

I already set path like this :

Code: Select all

export PATH=/home/astonix/Documents/Project_Research/EnvinixWifiSocket/Version1.0
export SDK_PATH=/home/astonix/esp-open-sdk/esp_iot_sdk_v1.5.2/
export BIN_PATH=/home/astonix/esp-open-sdk/esp_iot_sdk_v1.5.2/bin
Rgds,
Aston
astonix
Posts: 22
Joined: Wed Aug 03, 2016 5:45 am

Hello again!

I've make changes on PATH to be like this :

Code: Select all

export PATH=/home/astonix/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
export SDK_PATH=home/astonix/esp-open-sdk/xtensa-lx106-elf
export BIN_PATH=home/astonix/esp-open-sdk/xtensa-lx106-elf/bin
then, i run ./gen_misc.sh and follow all option.
Compilation process ended up with error message :
make: *** No rule to make target 'clean'. Stop.
make: Nothing to be done for 'FORCE'.
Any clue regarding this issue?

Rgds,
Aston
User avatar
pzygmunt
Posts: 18284
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Use ./build.sh
astonix
Posts: 22
Joined: Wed Aug 03, 2016 5:45 am

pzygmunt wrote: Tue Feb 21, 2017 11:52 amUse ./build.sh

Code: Select all

Usage:
       build.sh BOARD_TYPE
--------------------------
 Board types:             
              dht11_esp01
              dht22_esp01
              am2302_esp01
              thermometer_esp01
              thermometer_esp01_ds_gpio0
              wifisocket  
              wifisocket_esp01
              wifisocket_esp01_thermometer
              wifisocket_54
              gate_module
              gate_module_dht11
              gate_module_dht22
              gate_module_esp01
              gate_module_esp01_ds
              gate_module_wroom
              gate_module2_wroom
              rs_module
              rs_module_wroom
              starter1_module_wroom
              jangoe_rs
              sonoff
              sonoff_ds18b20
              EgyIOT
              dimmer
              zam_wop_01
              rgbw
              rgbw_wroom

Code: Select all

$ ./build.sh wifisocket
./build.sh: 136: ./build.sh: make: not found
./build.sh: 147: [: Illegal number: 
./build.sh: 155: ./build.sh: make: not found
How to execute that one?
Post Reply

Return to “Help”