ESP8266 Developer Zone The Official ESP8266 Forum 2015-06-10T23:02:28+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=571 2015-06-10T23:02:28+08:00 2015-06-10T23:02:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=571&p=2170#p2170 <![CDATA[Re: OTA question about user1.bin and user2.bin]]>
I tested with SPI_SIZE_MAP=4 (512+512), the bin files are different. The scripts in Makefile can explain that:

Code:

ifneq ($(app),0)
    ifeq ($(size_map), 6)
      LD_FILE = $(LDDIR)/eagle.app.v6.$(boot).2048.ld
    else
      ifeq ($(size_map), 5)
        LD_FILE = $(LDDIR)/eagle.app.v6.$(boot).2048.ld
      else
        ifeq ($(size_map), 4)
          LD_FILE = $(LDDIR)/eagle.app.v6.$(boot).1024.app$(app).ld
        else
          ifeq ($(size_map), 3)
            LD_FILE = $(LDDIR)/eagle.app.v6.$(boot).1024.app$(app).ld
          else
            ifeq ($(size_map), 2)
              LD_FILE = $(LDDIR)/eagle.app.v6.$(boot).1024.app$(app).ld
            else
              ifeq ($(size_map), 0)
                LD_FILE = $(LDDIR)/eagle.app.v6.$(boot).512.app$(app).ld
              endif
            endif
              endif
            endif
          endif
        endif
        BIN_NAME = user$(app).$(flash).$(boot).$(size_map)
endif


Thanks,

Statistics: Posted by xinhu.sun — Wed Jun 10, 2015 11:02 pm


]]>
2015-06-10T17:06:24+08:00 2015-06-10T17:06:24+08:00 https://bbs.espressif.com:443/viewtopic.php?t=571&p=2161#p2161 <![CDATA[Re: OTA question about user1.bin and user2.bin]]>
So sorry that I was wrong before..

In compilation STEP 5:
If choosing "5=2048KB(1024+1024)" or “6=4096KB(1024+1024)”,user1.bin and user2.bin would be the same. They have the same flash map..
If choosing other options, user1.bin and user2.bin would be different.

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Wed Jun 10, 2015 5:06 pm


]]>
2015-06-10T14:53:14+08:00 2015-06-10T14:53:14+08:00 https://bbs.espressif.com:443/viewtopic.php?t=571&p=2151#p2151 <![CDATA[Re: OTA question about user1.bin and user2.bin]]>
Thanks for the response.

I did make clean before each build. I removed codes which reference the macro __TIME__ and rebuild, the generated user1.bin and user2.bin are exactly same.
I checked the build logs from making user1.bin and user2.bin, the command lines of compile, package and link are same. It means the bin files should be same, am I right?

Code:

start...

make[1]: Entering directory `/mnt/750g/esp8266/esp_iot_sdk_v1.1.1/app/user'
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include wifi_station.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include vsprintf.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include user_main.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include uart_fifo.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include uart.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include uart0_receive_handler.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include time.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include sxhlib.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include sscanf.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include smart_link.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include queue.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include os_tasks.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include mymem.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include json_parser.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include iot_client.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include iot.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include firmware_upgrade.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include delay_run.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include cmd_handler.c
make[1]: Leaving directory `/mnt/750g/esp8266/esp_iot_sdk_v1.1.1/app/user'
make[1]: Entering directory `/mnt/750g/esp8266/esp_iot_sdk_v1.1.1/app/user'
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/cmd_handler.o -c cmd_handler.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/delay_run.o -c delay_run.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/firmware_upgrade.o -c firmware_upgrade.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/iot.o -c iot.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/iot_client.o -c iot_client.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/json_parser.o -c json_parser.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/mymem.o -c mymem.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/os_tasks.o -c os_tasks.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/queue.o -c queue.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/smart_link.o -c smart_link.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/sscanf.o -c sscanf.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/sxhlib.o -c sxhlib.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/time.o -c time.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/uart0_receive_handler.o -c uart0_receive_handler.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/uart.o -c uart.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/uart_fifo.o -c uart_fifo.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/user_main.o -c user_main.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/vsprintf.o -c vsprintf.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/wifi_station.o -c wifi_station.c
xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libuser.a .output/eagle/debug/obj/cmd_handler.o .output/eagle/debug/obj/delay_run.o .output/eagle/debug/obj/firmware_upgrade.o .output/eagle/debug/obj/iot.o .output/eagle/debug/obj/iot_client.o .output/eagle/debug/obj/json_parser.o .output/eagle/debug/obj/mymem.o .output/eagle/debug/obj/os_tasks.o .output/eagle/debug/obj/queue.o .output/eagle/debug/obj/smart_link.o .output/eagle/debug/obj/sscanf.o .output/eagle/debug/obj/sxhlib.o .output/eagle/debug/obj/time.o .output/eagle/debug/obj/uart0_receive_handler.o .output/eagle/debug/obj/uart.o .output/eagle/debug/obj/uart_fifo.o .output/eagle/debug/obj/user_main.o .output/eagle/debug/obj/vsprintf.o .output/eagle/debug/obj/wifi_station.o
make[1]: Leaving directory `/mnt/750g/esp8266/esp_iot_sdk_v1.1.1/app/user'
make[1]: Entering directory `/mnt/750g/esp8266/esp_iot_sdk_v1.1.1/app/driver'
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include spi.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include key.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include i2c_master.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include hw_timer.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include gpio16.c
make[1]: Leaving directory `/mnt/750g/esp8266/esp_iot_sdk_v1.1.1/app/driver'
make[1]: Entering directory `/mnt/750g/esp8266/esp_iot_sdk_v1.1.1/app/driver'
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/gpio16.o -c gpio16.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/hw_timer.o -c hw_timer.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/i2c_master.o -c i2c_master.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/key.o -c key.c
xtensa-lx106-elf-gcc -Os -std=gnu99 -g -Os -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 ../../include -I ../../include/eagle -I ../../app/user -I ../../app/include -I ../../app/include/driver -I ../../app/driver -I ../../extra_include  -o .output/eagle/debug/obj/spi.o -c spi.c
xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libdriver.a .output/eagle/debug/obj/gpio16.o .output/eagle/debug/obj/hw_timer.o .output/eagle/debug/obj/i2c_master.o .output/eagle/debug/obj/key.o .output/eagle/debug/obj/spi.o
make[1]: Leaving directory `/mnt/750g/esp8266/esp_iot_sdk_v1.1.1/app/driver'
xtensa-lx106-elf-gcc  -L../lib -nostdlib -T../ld/eagle.app.v6.new.2048.ld -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lc -lgcc -lhal -lphy -lpp -lnet80211 -llwip -lwpa -lmain -ljson -lupgrade -lssl -lsmartconfig user/.output/eagle/debug/lib/libuser.a driver/.output/eagle/debug/lib/libdriver.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out


The only difference is the information paste below about file name and flash address:
user1:

Code:

!!!
Support boot_v1.4 and +
Generate user1.4096.new.6.bin successully in folder bin/upgrade.
boot.bin------------>0x00000
user1.4096.new.6.bin--->0x01000
!!!


user2:

Code:

!!!
Support boot_v1.4 and +
Generate user2.4096.new.6.bin successully in folder bin/upgrade.
boot.bin------------>0x00000
user2.4096.new.6.bin--->0x101000
!!!


Did i missed something ?

Thanks,

Statistics: Posted by xinhu.sun — Wed Jun 10, 2015 2:53 pm


]]>
2015-06-10T10:45:51+08:00 2015-06-10T10:45:51+08:00 https://bbs.espressif.com:443/viewtopic.php?t=571&p=2140#p2140 <![CDATA[Re: OTA question about user1.bin and user2.bin]]>
Here is the document “99C-ESP8266__OTA_Upagrade” http://bbs.espressif.com/viewtopic.php?f=21&t=413

user1.bin and user2.bin are different,they are the same software but located in different place,please call “make clean” after compiled user1.bin to delete the temporary files of compilation,then compile user2.bin.

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Wed Jun 10, 2015 10:45 am


]]>
2015-06-09T16:04:40+08:00 2015-06-09T16:04:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=571&p=2127#p2127 <![CDATA[OTA question about user1.bin and user2.bin]]>
I generated only user1.bin and wrote to flash for user1 or user2 using spi_flash_write and system_upgrade_flag_set function in my firmware upgrade routine, it works fine so far. Is it necessary to generate user2.bin for user2 ?

I compared the contents of user1.bin and user2.bin and found that only the last byte is different.

Regards,
Xinhu

Statistics: Posted by xinhu.sun — Tue Jun 09, 2015 4:04 pm


]]>