-
-
Notifications
You must be signed in to change notification settings - Fork 747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building for ESP32 #1751
Comments
Take a look to
https://github.com/espruino/EspruinoBuildTools/tree/master/esp32/build/app
BTW which version of ESP-IDF is used for your binary ?
Am Mo., 3. Feb. 2020 um 22:38 Uhr schrieb bazooka07 <
[email protected]>:
… Hello
I have build myself Espruino.
But when i boot the esp32, I have the following message in the terminal :
rst:0x1 (POWERON_RESET),boot:0x17 (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:2668
load:0x40078000,len:7304
load:0x40080000,len:5312
entry 0x40080274
E (529) esp_image: Image length 1392896 doesn't fit in partition length 1376256
E (529) boot: Factory app partition is not bootable
E (529) esp_image: image at 0x160000 has invalid magic byte
E (535) boot: OTA app partition slot 0 is not bootable
E (540) boot: No bootable app partitions in the partition table
Fatal exception (0): IllegalInstruction
epc1=0x400c2dba, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Where can I change the size of partition ?
I can't find partitions.csv for esp-idf.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1751?email_source=notifications&email_token=AAPYNHWX23ZOB3NE6R4LWO3RBCFGLA5CNFSM4KPMQDSKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IKXAJKQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPYNHUQDJHELJU3FCNRU3LRBCFGLANCNFSM4KPMQDSA>
.
|
Release 3.3 for esp-idf with Ubuntu 19.10 |
Same problem here.
And the other problem is i'm not sure how to achieve this. I found one partition csv under: |
I'm sorry, just in vacation on canary island.
Short feedback:
- binary size was growing from version to version. We started somewhere
around 800
- latest version tused was 3.1.3 There have been many changes in later
versions of ESP-IDF. I could not see any changes, which could be helpful
for Espruino. So my decision was follow future versions with low(no)
priority only. May be somebody will give it a try once V4 is released ;-)
- AFAIK, OTA was never implemented/used
- latest csv I used was in https://github.com/espruino/EspruinoBuildTools
- Wilberforce supported buildtools, I did not follow to see what changes he
did. Latest change was switch to ESP-IDF V3.1.3
- provision.sh downloads a lot from buildtools, but no csv. It downloads
compiled .bin for provision
Hope, this helps a bit
Jürgen
Am Do., 13. Feb. 2020 um 15:15 Uhr schrieb davidbozo <
[email protected]>:
… Same problem here.
Is it some kind of bug or just the binary growed out the partition?
And if i see right in the docs espruino does not support OTA updates. So,
could we use the ota partition for the app like this:?
#Name,Type,SubType,Offset,Size
#boot,data,0,0x1000,4K
#reserved,0,0,0x2000,24K
#partition,data,0,0x8000,4K
nvs,data,nvs,0x9000,12K
otadata,data,ota,0xC000,8K
free,data,0x40,0xE000,8K
factory,app,factory,0x10000,2688K
flash,data,0x40,0x2B0000,64K
js_code,data,0,0x2C0000,256K
storage,data,0,0x300000,1024K
And the other problem is i'm not sure how to achieve this. I found one
partition csv under:
target/esp32/Changes_V3.1/partitions_espruino.csv
But it looks like it's just a changelog maybe?
As @jumjum123 <https://github.com/jumjum123> mentioned there is a
*EspruinoBuildTools* which contains another csv but where i can find it?
It looks like the source scripts/provision.sh ESP32 downloads it but
here? I'm kind of confused.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1751?email_source=notifications&email_token=AAPYNHRFMMFXOVEVWV32RGDRCVIYHA5CNFSM4KPMQDSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELVDOVI#issuecomment-585774933>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPYNHRNNR7TQUYQRU36VPLRCVIYHANCNFSM4KPMQDSA>
.
|
No problem thank you for your answer. I was able to build a new partition binary without OTA partition and it works fine. |
@davidbozo, can you describe your steps to successfully flash your ESP32? I'm running into the same problem but I'm not sure how to build a partition binary without an OTA partition. |
@davidbozo would be great if you share your knowledge, because we are short on ESP32 know how, since @wilberforce stoped working for Espruino on ESP32 ( I hope he is fine). |
It's maybe a little hacky solution but there is no porblem with it yet. So, what i could figure out is: To rebuild the repo:
https://github.com/espruino/EspruinoBuildTools/tree/master/esp32 Sorry, this is what i remember and i can't repeat and test the steps only in work. |
Ok, let's fix this.
edit: keep ota_0 |
How fortunate... Decided I wanted to spent some time on this this evening and I just noticed the comment and commits to Thanks a lot for the changes @MaBecker, you rock! ❤️ |
Cool, so you can build and it works for you, thanks for testing! there are just two more things missing |
Yeah, it's building for me without any additional changes (I actually removed everything and cloned the repository again just to check) and the error in the original post that I was running into before is gone on my side. Ran a small script to test if that works as well and that seems to be good too 👍 |
Just created a pr for the additional required updates |
I guess it will not pull down the new app.tgz version Lines 76 to 80 in 433708f
@gfwilliams any hints how to handle updates of app.tgz ? |
Is the app.tgz for a new SDK? If so you could create as new branch (like was done for 3.1)? Or just create a new file - |
Still the same version , but with a new binary partition file. |
Ok, I'd just update it. I know the whole build/version thing is tricky but presumably all it means it it was broken and now it's working? |
It was broken during latest changes (fonts need more memory?)
Size of binary become more than expected for partition table.
So we had to resize partition size for application
Short version, fixed partition size for application to have space for
latest extensions
Am Fr., 13. März 2020 um 09:47 Uhr schrieb Gordon Williams <
[email protected]>:
… Ok, I'd just update it. I know the whole build/version thing is tricky but
presumably all it means it it *was* broken and now it's working?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1751 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPYNHULIWYHL6WZCLJ67J3RHHXKBANCNFSM4KPMQDSA>
.
|
The issue we are talking about is not the build process. The firmware did not fit into the partition. To be 100% save, I have to flash a Travis build tonight. |
just test, works like never was broken :)
|
wifi.save() does not work:
|
Hello
I have build myself Espruino.
But when i boot the esp32, I have the following message in the terminal :
Where can I change the size of partition ?
I can't find partitions.csv for esp-idf.
The text was updated successfully, but these errors were encountered: