inseven / statuspanel

eInk desk calendar
https://statuspanel.io
MIT License
5 stars 0 forks source link

Write up the ROM build process #95

Closed jbmorley closed 1 year ago

jbmorley commented 3 years ago

Notes from my conversation with @tomsci:

  1. Build the firmware:
    • make menuconfig (spits out sdkconfig used by make); sdkconfig will change from branch to branch (depending on feature availability, etc) but should be OK to be checked into the source tree as we're planning on pinning the NodeMCU source
    • there’s also an XMODS file that points to some additional dependencies
    • make; generates the ROM image and a tool to create our LFS (Lua File System)
  2. Generate the LFS (using the tools build in 1)
  3. Flash the device using esptool.py which takes the partition map, kernel, metadata, and LFS image

N.B. We have a custom branch of NodeMCU. This probably needs to be public long-term. It also has a few of @tomsci's memory optimisations and other small changes. Not all PRs from this branch have been accepted, and may not actually be necessary for StatusPanel as they might only be required by @tomsci's other NodeMCU projects.

tomsci commented 3 years ago

We have a custom branch of NodeMCU. This probably needs to be public long-term.

It already is :) https://github.com/tomsci/nodemcu-firmware/commits/tomsci_dev_esp32