esp_image: Image length 1062848 doesn't fit in partition length 1048576
Lisa999 opened this issue · 9 comments
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4364
load:0x40078000,len:0
load:0x40078000,len:10992
entry 0x4007a6c4
E (400) esp_image: Image length 1062848 doesn't fit in partition length 1048576
E (400) boot: Factory app partition is not bootable
E (402) boot: No bootable app partitions in the partition table
user code done
Standard ESP32 code + mrsurly's dev_sleep patch to implement machine.RTC.
This error did NOT happen on the standard ESP32 branch (but then i have no RTC).
I thought the partition table was adjusted to the firmware size?
@Lisa999 I think (but I'm not sure) that the newer ESP-IDF actually checks partition length, whereas older ones did not. IIRC, the partition table wasn't updated for MP, we just moved the flash start sector further out.
In the interim, you can edit <ESPIDF>/components/partition_table/partitions_singleapp.csv
, and increase the "factory, app" size from 1M
to 0x180000
.
@dpgeorge I'll get a PR soon to rectify this.
Typo in partitions.csv!
Typo in partitions.csv!
Yes, there was. Thanks for the catch @robert-hh. Fixed now.
@MrSurly: It's working! Thanks a lot! uPyEasy is putting a LOT of demands on micropython, i'm aware of it. The upside is that it's running cross-platform, which is a major benefit.
@Lisa999 I think (but I'm not sure) that the newer ESP-IDF actually checks partition length, whereas older ones did not. IIRC, the partition table wasn't updated for MP, we just moved the flash start sector further out.
In the interim, you can edit
<ESPIDF>/components/partition_table/partitions_singleapp.csv
, and increase the "factory, app" size from1M
to0x180000
.@dpgeorge I'll get a PR soon to rectify this.
Can I increase the "factory, app" size from1M
to a number that larger than 0x18000?Because I still fail even if I increase it to0x180000
Thank you very much ...It is working for me
@Lisa999 I think (but I'm not sure) that the newer ESP-IDF actually checks partition length, whereas older ones did not. IIRC, the partition table wasn't updated for MP, we just moved the flash start sector further out.
In the interim, you can edit
<ESPIDF>/components/partition_table/partitions_singleapp.csv
, and increase the "factory, app" size from1M
to0x180000
.@dpgeorge I'll get a PR soon to rectify this.
Working for me
This works for me issue rectified