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):
[Solved] unexpected operator when choose option on gen_misc.sh
[Solved] unexpected operator when choose option on gen_misc.sh
Postby metRo_ » Thu Jul 28, 2016 6:33 am
As you see my input always return "unexptected operartor" :s
Last edited by metRo_ on Sat Jul 30, 2016 2:59 am, edited 1 time in total.
-
- Posts: 45
- Joined: Tue Jan 19, 2016 2:39 pm
Re: unexpected operator when choose option on gen_misc.sh
Postby tobewinner » Thu Jul 28, 2016 9:45 am
metRo_ wrote:As you see my input always return "unexptected operartor" :sesp8266@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?
Re: unexpected operator when choose option on gen_misc.sh
Postby metRo_ » Fri Jul 29, 2016 4:50 am
tobewinner wrote:metRo_ wrote:As you see my input always return "unexptected operartor" :sesp8266@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...
-
- Posts: 45
- Joined: Tue Jan 19, 2016 2:39 pm
Re: unexpected operator when choose option on gen_misc.sh
Postby tobewinner » Fri Jul 29, 2016 10:32 am
Maybe the default shell of your OS is dash, change it to bash and have a try:
choose no
Code: Select all
sudo dpkg-reconfigure dash
choose no
Re: unexpected operator when choose option on gen_misc.sh
Postby metRo_ » Sat Jul 30, 2016 2:59 am
tobewinner wrote:Maybe the default shell of your OS is dash, change it to bash and have a try:Code: Select all
sudo dpkg-reconfigure dash
choose no
Thank you

Who is online
Users browsing this forum: No registered users and 321 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.