-->
Page 1 of 2

Include lua files into firmware binary

PostPosted: Tue Jun 16, 2015 4:38 pm
by kriegste
Is it possible to include lua (text) files (or even compiled lua files) into a firmware binary? So I can flash several ESP8266 modules without the need to transfer the lua files on to them afterwards.

Re: Include lua files into firmware binary

PostPosted: Tue Jun 16, 2015 7:34 pm
by TerryE
kriegste wrote:Is it possible to include lua (text) files (or even compiled lua files) into a firmware binary?

Yes, f you looks at the SPIFFS drivers in the nodeLUA code this FS is mapped in a fairly simple way onto any available flash. So in principle we could include a base FS in the flashed build.

However, is there any off-the-shelf projects which already do this? I don't know of any. Sorry

Re: Include lua files into firmware binary

PostPosted: Wed Mar 16, 2016 2:18 pm
by Alexey
Key +kriegste,
were you able to find a way to do so?

Re: Include lua files into firmware binary

PostPosted: Thu Mar 17, 2016 8:12 pm
by TerryE
There's a whole topic on this on the firmware issues list: https://github.com/nodemcu/nodemcu-firmware/pull/1064