whitecatboard / Lua-RTOS-ESP32

Lua RTOS for ESP32
Other
1.18k stars 222 forks source link

Any plan to upgrade to recent IDF? #402

Open mgliewe opened 2 years ago

mgliewe commented 2 years ago

Is there any plan to upgrade to a more recent idf?

I would be willing to volunteer, but it might involve some major changes in the codebase and the build system.

Topics involving..

sugestions?

the0ne commented 2 years ago

That sounds reasonable. Did you make progress yet?

a2800276 commented 2 years ago

I would be interested in helping out as well. @mgliewe were you just feeling the water or have you started kicking the tires to see how feasible the migration would be?

mgliewe commented 2 years ago

due to lack of time, till now I basically just browsed the code to assess the effort.

A first naive attempt, just tweak the makefiles until you get any binary, failed marvelously, but i didn't expect otherwise and didn't put much time into that though.

I'ld guess the first point on my list would be the starting point. On working on the build files one should try to reduce the cross-dependencies between the components...
This could be done on the legacy IDF?

a2800276 commented 2 years ago

This could be done on the legacy IDF?

Wasn't the point of this issue to discuss migration to a current IDF? Or are you asking if it makes sense to first upgrade to the most recent Makefile based IDF?

mgliewe commented 2 years ago

After even more examinations and some very annoying hacking sessions on dropbear (trying to work on #404, porting unixish processes and signals to a thread model is just no fun; got it somewhat working, but with ugly hacks and the prospect to port 'scp -t' and implement a sftp server from scratch) i decided to drop the topic and chose another path.

My reasons, all of them very subjective, mostly a matter of taste, and not at all ment to be taken as an insult or devaluation of this work, i still like it and found it very inspiring:

Right now I'm working on a port of cyclone tcp (https://www.oryx-embedded.com/) to 'regular' bsd sockets, which is doing good, and i'm planning to use parts of the lua engine from Lua-RTOS as a 'command shell', if I may....

I'll post a comment here, if there's anything to look at.

allogic commented 1 year ago

After trying this myself, I came to the same conclusions as @mgliewe.

I got it working in the end (idf v4.4.3), but some parts of the filesystem aren't working as they should.

Other components certainly don't work as they should either, but I haven't tested those yet. Since I've spent far too much time on testing this, I would really appreciate some response on this topic.

the0ne commented 1 year ago

@allogic please upload what you have so far to a fork so we can see what's the problem. Thanks in advance!

allogic commented 1 year ago

Here is a fork with my described problems https://github.com/allogic/Lua-RTOS-ESP32

the0ne commented 1 year ago

Wow, thanks a lot @allogic 😎

@mgliewe @a2800276 @jolivepetrus @TotallyNotSethP @nlw0 @ar055 @wasn-eu @KernelErr looks like Lua-RTOS has been ported to idf v4.4.3. Who'll step up and find out what it needs to be finalized? Your turn now 😊