完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
本帖最后由 城东 于 2016-12-6 22:31 编辑
已经把所有的视频都看完了,发现并没有太多我想要的关于源代码的消息,所以这里逼不得已呀,只能够自己去扣了,既然我们编译时用~/Share/SDK/et_app/gen_misc.sh,那么我们就从这个脚本开始,这样就有点像看嵌入式Linux代码一样了,只不过Linux是从makefile开始而已! 这里先把gen_misc.sh脚本打印信息列出来,给后面的分析提供方便! 运行该脚本后打印信息如下: gen_misc.sh version 20150826 SDK_PATH: /home/esp8266/Share/SDK/ BIN_PATH: /home/esp8266/Share/SDK/bin Please check SDK_PATH & BIN_PATH, enter (Y/y) to continue: 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): generate bin: user1.bin STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz) enter (0/1/2/3, default 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): 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): spi size: 2048KB spi ota map: 512KB + 512KB start... make -C user clean; make -C sample_lib clean; make -C driver clean; make[1]: Entering directory `/mnt/Share/SDK/et_app/user' rm -f -r .output/eagle/debug make[1]: Leaving directory `/mnt/Share/SDK/et_app/user' make[1]: Entering directory `/mnt/Share/SDK/et_app/sample_lib' make -C folder1 clean; make -C folder2 clean; make[2]: Entering directory `/mnt/Share/SDK/et_app/sample_lib/folder1' rm -f -r .output/eagle/debug make[2]: Leaving directory `/mnt/Share/SDK/et_app/sample_lib/folder1' make[2]: Entering directory `/mnt/Share/SDK/et_app/sample_lib/folder2' rm -f -r .output/eagle/debug make[2]: Leaving directory `/mnt/Share/SDK/et_app/sample_lib/folder2' rm -f -r .output/eagle/debug make[1]: Leaving directory `/mnt/Share/SDK/et_app/sample_lib' make[1]: Entering directory `/mnt/Share/SDK/et_app/driver' rm -f -r .output/eagle/debug make[1]: Leaving directory `/mnt/Share/SDK/et_app/driver' rm -f -r .output/eagle/debug make[1]: Entering directory `/mnt/Share/SDK/et_app/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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json wifi_led.c 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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json user_main.c 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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json upgrade.c 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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json std.c 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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json rtos.c 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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json et_user_app.c 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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json base.c make[1]: Leaving directory `/mnt/Share/SDK/et_app/user' make[1]: Entering directory `/mnt/Share/SDK/et_app/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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/base.o -c base.c 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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/et_user_app.o -c et_user_app.c 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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/rtos.o -c rtos.c 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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/std.o -c std.c 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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/upgrade.o -c upgrade.c 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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/user_main.o -c user_main.c 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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/wifi_led.o -c wifi_led.c xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libuser.a .output/eagle/debug/obj/base.o .output/eagle/debug/obj/et_user_app.o .output/eagle/debug/obj/rtos.o .output/eagle/debug/obj/std.o .output/eagle/debug/obj/upgrade.o .output/eagle/debug/obj/user_main.o .output/eagle/debug/obj/wifi_led.o xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/libuser.a make[1]: Leaving directory `/mnt/Share/SDK/et_app/user' make[1]: Entering directory `/mnt/Share/SDK/et_app/sample_lib' make[2]: Entering directory `/mnt/Share/SDK/et_app/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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json file1.c make[2]: Leaving directory `/mnt/Share/SDK/et_app/sample_lib/folder1' make[2]: Entering directory `/mnt/Share/SDK/et_app/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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -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 `/mnt/Share/SDK/et_app/sample_lib/folder1' make[2]: Entering directory `/mnt/Share/SDK/et_app/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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json file2.c make[2]: Leaving directory `/mnt/Share/SDK/et_app/sample_lib/folder2' make[2]: Entering directory `/mnt/Share/SDK/et_app/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/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -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 `/mnt/Share/SDK/et_app/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 `/mnt/Share/SDK/et_app/sample_lib' make[1]: Entering directory `/mnt/Share/SDK/et_app/driver' 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json uart.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json sdio_slv.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json ring_buf.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json RGB_light.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json OLED_I2C.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json kfifo.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json ir.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json i2s.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json i2c_master.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json hw_timer.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json humiture.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json gpio.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json delay.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json barometric.c make[1]: Leaving directory `/mnt/Share/SDK/et_app/driver' make[1]: Entering directory `/mnt/Share/SDK/et_app/driver' 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/barometric.o -c barometric.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/delay.o -c delay.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/gpio.o -c gpio.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/humiture.o -c humiture.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/hw_timer.o -c hw_timer.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/i2c_master.o -c i2c_master.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/i2s.o -c i2s.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/ir.o -c ir.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/kfifo.o -c kfifo.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/OLED_I2C.o -c OLED_I2C.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/RGB_light.o -c RGB_light.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/ring_buf.o -c ring_buf.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/sdio_slv.o -c sdio_slv.c 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 ../include -I /home/esp8266/Share/SDK//include -I /home/esp8266/Share/SDK//extra_include -I /home/esp8266/Share/SDK//include/espressif -I /home/esp8266/Share/SDK//include/lwip -I /home/esp8266/Share/SDK//include/lwip/ipv4 -I /home/esp8266/Share/SDK//include/lwip/ipv6 -I /home/esp8266/Share/SDK//include/nopoll -I /home/esp8266/Share/SDK//include/spiffs -I /home/esp8266/Share/SDK//include/ssl -I /home/esp8266/Share/SDK//include/json -o .output/eagle/debug/obj/uart.o -c uart.c xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libdriver.a .output/eagle/debug/obj/barometric.o .output/eagle/debug/obj/delay.o .output/eagle/debug/obj/gpio.o .output/eagle/debug/obj/humiture.o .output/eagle/debug/obj/hw_timer.o .output/eagle/debug/obj/i2c_master.o .output/eagle/debug/obj/i2s.o .output/eagle/debug/obj/ir.o .output/eagle/debug/obj/kfifo.o .output/eagle/debug/obj/OLED_I2C.o .output/eagle/debug/obj/RGB_light.o .output/eagle/debug/obj/ring_buf.o .output/eagle/debug/obj/sdio_slv.o .output/eagle/debug/obj/uart.o xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/libdriver.a make[1]: Leaving directory `/mnt/Share/SDK/et_app/driver' xtensa-lx106-elf-gcc -L/home/esp8266/Share/SDK//lib -Wl,--gc-sections -nostdlib -T/home/esp8266/Share/SDK//ld/eagle.app.v6.new.1024.app1.ld -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lminic -lgcc -lhal -lphy -lpp -ljson -lpwm -lnet80211 -lwpa -lcrypto -lmain -lfreertos -llwip -lespconn -lsmartconfig -letilink -lfac -lairkiss user/.output/eagle/debug/lib/libuser.a sample_lib/.output/eagle/debug/lib/libsample.a driver/.output/eagle/debug/lib/libdriver.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out !!! SDK_PATH: /home/esp8266/Share/SDK/ BIN_PATH: /home/esp8266/Share/SDK/bin/upgrade bin crc: 1a0bb04a Support boot_v1.2 and + Generate user1.2048.new.3.bin successully in BIN_PATH boot.bin------------>0x00000 user1.2048.new.3.bin--->0x01000 !!! esp8266@esp8266-VirtualBox:~/Share/SDK/et_app$ |
|
相关推荐
1 个讨论
|
|
下面是./gen_misc.sh脚本的具体内容:
#!/bin/bash echo "gen_misc.sh version 20150826" echo "" home_path=${PWD%et*} export SDK_PATH=${home_path} export BIN_PATH=${home_path}"bin" if [ $SDK_PATH ]; then echo "SDK_PATH:" echo "$SDK_PATH" echo "" else echo "ERROR: Please export SDK_PATH firstly, exit!!!" exit fi if [ $BIN_PATH ]; then echo "BIN_PATH:" echo "$BIN_PATH" echo "" else echo "ERROR: Please export BIN_PATH firstly, exit!!!" exit fi echo "Please check SDK_PATH & BIN_PATH, enter (Y/y) to continue:" input=y if [[ $input != Y ]] && [[ $input != y ]]; then exit fi echo "" echo "Please follow below steps(1-5) to generate specific bin(s):" echo "STEP 1: use boot_v1.2+ by default" boot=new echo "boot mode: $boot" echo "" echo "STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)" echo "enter (0/1/2, default 0):" input=1 if [ -z "$input" ]; then if [ $boot != none ]; then boot=none echo "ignore boot" fi app=0 echo "generate bin: eagle.flash.bin+eagle.irom0text.bin" elif [ $input == 1 ]; then if [ $boot == none ]; then app=0 echo "choose no boot before" echo "generate bin: eagle.flash.bin+eagle.irom0text.bin" else app=1 echo "generate bin: user1.bin" fi elif [ $input == 2 ]; then if [ $boot == none ]; then app=0 echo "choose no boot before" echo "generate bin: eagle.flash.bin+eagle.irom0text.bin" else app=2 echo "generate bin: user2.bin" fi else if [ $boot != none ]; then boot=none echo "ignore boot" fi app=0 echo "generate bin: eagle.flash.bin+eagle.irom0text.bin" fi echo "" echo "STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz)" echo "enter (0/1/2/3, default 2):" input=2 if [ -z "$input" ]; then spi_speed=40 elif [ $input == 0 ]; then spi_speed=20 elif [ $input == 1 ]; then spi_speed=26.7 elif [ $input == 3 ]; then spi_speed=80 else spi_speed=40 fi echo "spi speed: $spi_speed MHz" echo "" echo "STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT)" echo "enter (0/1/2/3, default 0):" input=0 if [ -z "$input" ]; then spi_mode=QIO elif [ $input == 1 ]; then spi_mode=QOUT elif [ $input == 2 ]; then spi_mode=DIO elif [ $input == 3 ]; then spi_mode=DOUT else spi_mode=QIO fi echo "spi mode: $spi_mode" echo "" echo "STEP 5: choose spi size and map" echo " 0= 512KB( 256KB+ 256KB)" echo " 2=1024KB( 512KB+ 512KB)" echo " 3=2048KB( 512KB+ 512KB)" echo " 4=4096KB( 512KB+ 512KB)" echo " 5=2048KB(1024KB+1024KB)" echo " 6=4096KB(1024KB+1024KB)" echo "enter (0/2/3/4/5/6, default 0):" input=3 if [ -z "$input" ]; then spi_size_map=0 echo "spi size: 512KB" echo "spi ota map: 256KB + 256KB" elif [ $input == 2 ]; then spi_size_map=2 echo "spi size: 1024KB" echo "spi ota map: 512KB + 512KB" elif [ $input == 3 ]; then spi_size_map=3 echo "spi size: 2048KB" echo "spi ota map: 512KB + 512KB" elif [ $input == 4 ]; then spi_size_map=4 echo "spi size: 4096KB" echo "spi ota map: 512KB + 512KB" elif [ $input == 5 ]; then spi_size_map=5 echo "spi size: 2048KB" echo "spi ota map: 1024KB + 1024KB" elif [ $input == 6 ]; then spi_size_map=6 echo "spi size: 4096KB" echo "spi ota map: 1024KB + 1024KB" else spi_size_map=0 echo "spi size: 512KB" echo "spi ota map: 256KB + 256KB" fi echo "" echo "start..." echo "" make clean make BOOT=$boot APP=$app SPI_SPEED=$spi_speed SPI_MODE=$spi_mode SPI_SIZE_MAP=$spi_size_map |
|
|
|
|
|
只有小组成员才能发言,加入小组>>
[小e体验板] 【小体积大智慧】关于体验板的技术问题,看这一篇就够了
2881 浏览 4 评论
【小e1开发板试用体验】分析程序架构四~/Share/SDK/makefile分析
3648 浏览 1 评论
6767 浏览 19 评论
29276 浏览 59 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-28 10:48 , Processed in 0.667404 second(s), Total 69, Slave 52 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号