Commit Graph

7 Commits

Author SHA1 Message Date
Johny Mattsson ba36857c50 Backwards compatibility for embedded LFS startup on 5.3 2021-08-30 17:37:35 +10:00
Johny Mattsson c6a2e99650 Make LFS flash sig config specific.
Loading an LFS from a different int/float combo build is bad, so let's not
allow it in the first place.
2021-08-30 16:51:48 +10:00
Johny Mattsson d66473aeeb Fix broken LFS loading in Lua 5.3.
Do not [lua_]assert() on things which have a side effect...
2021-08-30 16:49:23 +10:00
Johny Mattsson dee19e2777 Fix broken embedded LFS image with 64bit values.
The marshalling code wasn't taking into account the changing size of
the TValue struct.
2021-08-25 18:59:15 +10:00
Johny Mattsson 46f5079a63 Fixed panic handling on REPL input.
The Lua debug module is mandatory now.
2021-08-23 23:32:13 +10:00
Johny Mattsson fbef7feae1 Discard old console driver.
The IDF provides all we need these days, and the old driver was just
needlessly conflicting with the IDF settings and setup.

This also simplifies our uart input path as we no longer need to
duplicate the raw byte handling for when "run_input" is false.
2021-08-23 23:00:54 +10:00
Johny Mattsson 17df207a5f Port Terry's Lua 5.1 + 5.3 work from the esp8266 branch.
Changes have been kept to a minimum, but a serious chunk of work was
needed to move from 8266isms to IDFisms.

Some things got refactored into components/lua/common, in particular
the LFS location awareness.

As part of this work I also evicted our partition table manipulation
code, as with the current IDF it kept breaking checksums and rendering
things unbootable, which is the opposite of helpful (which was the
original intent behind it).

The uart module got relocated from base_nodemcu to the modules component
properly, after I worked out how to force its inclusion using Kconfig alone.
2021-08-22 02:03:05 +10:00