-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
node.LFS.reload requires compressed lfs.img #3555
Comments
against current dev branch, using build options LUA=53,
startup banner:
|
I am using that scenario every day and it works. I assume that your luac.cross is outdated as the compression feature was added in a second step. Just make sure to use the correct luac.cross that came with the FW build and it should be fine. btw the -m option is not implemented for Lua 5.3 (it does nothing) |
I see the problem now, I forgot to pass the |
Expected behavior
According to the docs, this should result in a usable lfs.img
luac.cross.int -o lfs.img *lua
Which I can then load using
node.LFS.reload("lfs.img")
Actual behavior
The firmware requires it to be in a different format (for
uzlib_inflate
)I get this error (from this invocation) if I try running
print(node.LFS.reload("lfs.img"))
after uploading usingnodemcu-tool upload lfs.img
If I do
luac.cross.int -m 20480 -o lfs.img *lua
it works just fine and restarts as expected, because of the different format I assume.NodeMCU startup banner
NodeMCU-Tool version is
3.2.1
Hardware
Tested using https://learn.adafruit.com/adafruit-feather-huzzah-esp8266
The text was updated successfully, but these errors were encountered: