2. 编译“/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template”下的工程
3. 错误如下:
Code: Select all
root@esp8266-VirtualBox:/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template# ./gen_misc.sh
gen_misc.sh version 20150911
SDK_PATH:
/home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0
BIN_PATH:
/opt/xtensa-lx106-elf/bin
Please check SDK_PATH & BIN_PATH, enter (Y/y) to continue:
y
Please follow below steps(1-5) to generate specific bin(s):
STEP 1: use boot_v1.2+ by default
boot mode: new
STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):
0
ignore boot
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):
2
spi speed: 40 MHz
STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT)
enter (0/1/2/3, default 0):
0
spi mode: QIO
STEP 5: choose spi size and map
0= 512KB( 256KB+ 256KB)
2=1024KB( 512KB+ 512KB)
3=2048KB( 512KB+ 512KB)
4=4096KB( 512KB+ 512KB)
5=2048KB(1024KB+1024KB)
6=4096KB(1024KB+1024KB)
enter (0/2/3/4/5/6, default 0):
2
spi size: 1024KB
spi ota map: 512KB + 512KB
start...
make -C user clean; make -C sample_lib clean;
make[1]: Entering directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/user'
rm -f -r .output/eagle/debug
make[1]: Leaving directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/user'
make[1]: Entering directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib'
make -C folder1 clean; make -C folder2 clean;
make[2]: Entering directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib/folder1'
rm -f -r .output/eagle/debug
make[2]: Leaving directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib/folder1'
make[2]: Entering directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib/folder2'
rm -f -r .output/eagle/debug
make[2]: Leaving directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib/folder2'
rm -f -r .output/eagle/debug
make[1]: Leaving directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib'
rm -f -r .output/eagle/debug
make[1]: Entering directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/user'
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/extra_include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip/ipv4 -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip/ipv6 -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/espressif -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/spiffs user_main.c
make[1]: Leaving directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/user'
make[1]: Entering directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/user'
xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/extra_include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip/ipv4 -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip/ipv6 -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/espressif -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/spiffs -o .output/eagle/debug/obj/user_main.o -c user_main.c
xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libuser.a .output/eagle/debug/obj/user_main.o
xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/libuser.a
make[1]: Leaving directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/user'
make[1]: Entering directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib'
make[2]: Entering directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib/folder1'
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I ./ -I ../../include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/extra_include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip/ipv4 -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip/ipv6 -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/espressif -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/spiffs file1.c
make[2]: Leaving directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib/folder1'
make[2]: Entering directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib/folder1'
xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I ./ -I ../../include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/extra_include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip/ipv4 -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip/ipv6 -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/espressif -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/spiffs -o .output/eagle/debug/obj/file1.o -c file1.c
xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libfolder1.a .output/eagle/debug/obj/file1.o
xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/libfolder1.a
make[2]: Leaving directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib/folder1'
make[2]: Entering directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib/folder2'
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I ./ -I ../../include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/extra_include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip/ipv4 -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip/ipv6 -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/espressif -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/spiffs file2.c
make[2]: Leaving directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib/folder2'
make[2]: Entering directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib/folder2'
xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I ./ -I ../../include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/extra_include -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip/ipv4 -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/lwip/ipv6 -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/espressif -I /home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/include/spiffs -o .output/eagle/debug/obj/file2.o -c file2.c
xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libfolder2.a .output/eagle/debug/obj/file2.o
xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/libfolder2.a
make[2]: Leaving directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib/folder2'
mkdir -p _libsample
cd _libsample; xtensa-lx106-elf-ar xo ../folder1/.output/eagle/debug/lib/libfolder1.a; xtensa-lx106-elf-ar xo ../folder2/.output/eagle/debug/lib/libfolder2.a;
xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libsample.a _libsample/*.o
xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/libsample.a
rm -f -r _libsample
make[1]: Leaving directory `/home/ESP8266_ROTS_SDK_1_4_0/examples/project_template/sample_lib'
xtensa-lx106-elf-gcc -L/home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/lib -Wl,--gc-sections -nostdlib -T/home/ESP8266_RTOS_SDK_V1.3.0_15_11_02/ESP8266_RTOS_SDK_V1.3.0/ld/eagle.app.v6.ld -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lcirom -lcrypto -lespconn -lespnow -lfreertos -lgcc -lhal -ljson -llwip -lmain -lmesh -lmirom -lnet80211 -lnopoll -lphy -lpp -lpwm -lsmartconfig -lspiffs -lssl -lwpa -lwps user/.output/eagle/debug/lib/libuser.a sample_lib/.output/eagle/debug/lib/libsample.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out
/opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .output/eagle/debug/image/eagle.app.v6.out section `.irom0.text' will not fit in region `irom0_0_seg'
collect2: error: ld returned 1 exit status
make: *** [.output/eagle/debug/image/eagle.app.v6.out] Error 1
为什么?应该如何解决?