ESP8266 Developer Zone The Official ESP8266 Forum 2016-07-30T02:59:48+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2479 2016-07-30T02:59:28+08:00 2016-07-30T02:59:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2479&p=8205#p8205 <![CDATA[Re: unexpected operator when choose option on gen_misc.sh]]>
tobewinner wrote:
Maybe the default shell of your OS is dash, change it to bash and have a try:

Code:

sudo dpkg-reconfigure dash

choose no


Thank you :)

Statistics: Posted by metRo_ — Sat Jul 30, 2016 2:59 am


]]>
2016-07-29T10:32:07+08:00 2016-07-29T10:32:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2479&p=8185#p8185 <![CDATA[Re: unexpected operator when choose option on gen_misc.sh]]>

Code:

sudo dpkg-reconfigure dash

choose no

Statistics: Posted by tobewinner — Fri Jul 29, 2016 10:32 am


]]>
2016-07-29T04:50:16+08:00 2016-07-29T04:50:16+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2479&p=8178#p8178 <![CDATA[Re: unexpected operator when choose option on gen_misc.sh]]>
tobewinner wrote:
metRo_ wrote:As you see my input always return "unexptected operartor" :s

esp8266@esp8266-VirtualBox:~/Share/ESP8266_NONOS_SDK/examples/IoT_Demo$ ls
driver gen_misc.bat gen_misc.sh include Makefile user
esp8266@esp8266-VirtualBox:~/Share/ESP8266_NONOS_SDK/examples/IoT_Demo$ sh gen_misc.sh
gen_misc.sh version 20150511

Please follow below steps(1-5) to generate specific bin(s):
STEP 1: choose boot version(0=boot_v1.1, 1=boot_v1.2+, 2=none)
enter(0/1/2, default 2):
1
gen_misc.sh: 13: [: 1: unexpected operator
gen_misc.sh: 15: [: 1: unexpected operator
boot mode: none

STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):
1
gen_misc.sh: 35: [: 1: unexpected operator
gen_misc.sh: 44: [: 1: unexpected operator
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):

Did you edit the gen_misc.sh?


no :s I'm running it on the virtual box image as said in the SDK manual...

Statistics: Posted by metRo_ — Fri Jul 29, 2016 4:50 am


]]>
2016-07-28T09:45:13+08:00 2016-07-28T09:45:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2479&p=8159#p8159 <![CDATA[Re: unexpected operator when choose option on gen_misc.sh]]>
metRo_ wrote:
As you see my input always return "unexptected operartor" :s

esp8266@esp8266-VirtualBox:~/Share/ESP8266_NONOS_SDK/examples/IoT_Demo$ ls
driver gen_misc.bat gen_misc.sh include Makefile user
esp8266@esp8266-VirtualBox:~/Share/ESP8266_NONOS_SDK/examples/IoT_Demo$ sh gen_misc.sh
gen_misc.sh version 20150511

Please follow below steps(1-5) to generate specific bin(s):
STEP 1: choose boot version(0=boot_v1.1, 1=boot_v1.2+, 2=none)
enter(0/1/2, default 2):
1
gen_misc.sh: 13: [: 1: unexpected operator
gen_misc.sh: 15: [: 1: unexpected operator
boot mode: none

STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):
1
gen_misc.sh: 35: [: 1: unexpected operator
gen_misc.sh: 44: [: 1: unexpected operator
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):

Did you edit the gen_misc.sh?

Statistics: Posted by tobewinner — Thu Jul 28, 2016 9:45 am


]]>
2016-07-30T02:59:48+08:00 2016-07-28T06:33:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2479&p=8156#p8156 <![CDATA[[Solved] unexpected operator when choose option on gen_misc.sh]]>

esp8266@esp8266-VirtualBox:~/Share/ESP8266_NONOS_SDK/examples/IoT_Demo$ ls
driver gen_misc.bat gen_misc.sh include Makefile user
esp8266@esp8266-VirtualBox:~/Share/ESP8266_NONOS_SDK/examples/IoT_Demo$ sh gen_misc.sh
gen_misc.sh version 20150511

Please follow below steps(1-5) to generate specific bin(s):
STEP 1: choose boot version(0=boot_v1.1, 1=boot_v1.2+, 2=none)
enter(0/1/2, default 2):
1
gen_misc.sh: 13: [: 1: unexpected operator
gen_misc.sh: 15: [: 1: unexpected operator
boot mode: none

STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):
1
gen_misc.sh: 35: [: 1: unexpected operator
gen_misc.sh: 44: [: 1: unexpected operator
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):

Statistics: Posted by metRo_ — Thu Jul 28, 2016 6:33 am


]]>