esphttpd icon indicating copy to clipboard operation
esphttpd copied to clipboard

make httpflash error curl: (3) malformed

Open taher143 opened this issue 7 years ago • 9 comments

make httpflash gives error

make[1]: Entering directory '/opt/esp-open-sdk/esphttpd/libesphttpd' AR libesphttpd.a index.tpl (71%, heatshrink) wifi/wifi.tpl (55%, heatshrink) wifi/style.css (73%, heatshrink) wifi/140medley.min.js (74%, heatshrink) wifi/icons.png (100%, none) wifi/connecting.html (61%, heatshrink) flash/index.html (54%, heatshrink) flash/style.css (59%, heatshrink) flash/140medley.min.js (74%, heatshrink) test/index.html (72%, heatshrink) test/test.js (38%, heatshrink) led.tpl (84%, heatshrink) style.css (78%, heatshrink) cats/cross-eyed-cat.jpg (100%, none) cats/kitten-loves-toy.jpg (100%, none) cats/junge-katze-iv.jpg (100%, none) websocket/index.html (52%, heatshrink) make[1]: Leaving directory '/opt/esp-open-sdk/esphttpd/libesphttpd' AR build/httpd_app.a Header: 40 bytes, user1: 377908 bytes, user2: 377908 bytes. curl: (3) malformed Makefile.ota:93: recipe for target 'httpflash' failed make: *** [httpflash] Error 3

taher143 avatar Nov 28 '17 13:11 taher143

curl: (3) malformed ,why I'm getting this error?

taher143 avatar Nov 29 '17 13:11 taher143

Can you add some more info? What do you see on the serial port, what did you set ESPIP to what are you trying to do in general?

Spritetm avatar Nov 29 '17 15:11 Spritetm

I have cloned this repository and make the project using make USE_OPENSDK=yes it's successfully done. I used make flash command to flash firmware to the ESP8266 ESP-12E. then as per read.me file I use make httpflash command. I got an error that curl command not found. then I installed curl using apt-get install curl . then I got above Error curl: (3) malformed for make httpflash command. Now i'm not able to solve this error, seeking urgent help for my project. Kindly guide me

taher143 avatar Nov 29 '17 20:11 taher143

Don't you mean make htmlflash?

Spritetm avatar Nov 29 '17 21:11 Spritetm

make htmlflash is not working , instead i have used make httpflash i have attached image here for reference esphttpd

taher143 avatar Nov 29 '17 21:11 taher143

Ah, gotcha. The instructions are for the nonos version, which builds a separate html and program binary. You're using the FreeRTOS version, which defaults to a single binary. You should be able to not execute the htmlflash command and get it working anyway.

Spritetm avatar Nov 29 '17 21:11 Spritetm

kindly guide Im newbie to ESP SDK and Linux thing. How can I get my http webserver on esp8266? im using esp-open-sdk as per this article

taher143 avatar Nov 29 '17 21:11 taher143

after flashing bin file using make flash command, ESP keeps resetting. Here are debug logs

ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 2408, room 16
tail 8
chksum 0xe5
load 0x3ffe8000, len 776, room 0
tail 8
chksum 0x84
load 0x3ffe8310, len 632, room 0
tail 8
chksum 0xd8
csum 0xd8

2nd boot version : 1.6
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 8Mbit(512KB+512KB)
no GPIO select!
jump to run user1 @ 1000

rf_cal[0] !=0x05,is 0xFF

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 2408, room 16
tail 8
chksum 0xe5
load 0x3ffe8000, len 776, room 0
tail 8
chksum 0x84
load 0x3ffe8310, len 632, room 0
tail 8
chksum 0xd8
csum 0xd8

taher143 avatar Nov 29 '17 21:11 taher143

Hi, taher143,

For httpflash to work under linux you must set ESPIP. An example shell command: export ESPIP=192.168.4.1

After flashing you could get:

jump to run user2 @ 101000

error magic!

from ESP in the debug console. Looks like the user2 base address is set incorrectly. In file user_main.c change .fw2Pos line 104 to 0x101000 and reflash via serial flasher.

    100 #ifdef OTA_FLASH_SIZE_K
    101 CgiUploadFlashDef uploadParams={
    102         .type=CGIFLASH_TYPE_FW,
    103         .fw1Pos=0x1000,
    104         .fw2Pos=((OTA_FLASH_SIZE_K*1024)/2)+0x1000,
    105         .fwSize=((OTA_FLASH_SIZE_K*1024)/2)-0x1000,
    106         .tagName=OTA_TAGNAME
    107 };
    108 #define INCLUDE_FLASH_FNS
    109 #endif

isavitsky avatar Dec 07 '17 16:12 isavitsky