by 5- · 1y ago · 0 comments
https://github.com/ByteWelder/Tactility/blob/main/App/Source...
since a lot of the newer esp32 devices purport to be computers (e.g. lilygo t-deck/t-lora pager, m5stack cardputer, ...), it's a bit strange that with a typical esp-idf setup you can't actually run arbitrary code on them.
In the past, the solution for arbitrary code was running scripts such as Wrench: https://github.com/jingoro2112/wrench
More recently also became possible to run Java apps with a JVM on ESP32: https://github.com/FlintVN/FlintESPJVM which is not yet arbitrary (e.g. download and run) but that is the route of development.
Even Linux was demonstrated running on ESP32 albeit I've never tried it: https://www.youtube.com/watch?v=pj0a91vlcGo
I hadn't heard about any Linux ports until I saw your comment here. Thanks!
The "playground" Linux port looks interesting, but it hasn't seen any updates for nearly a year. Still, I'm going to try it on a ESP32-S3 N16R8 and see how it goes.
It's funny, because I first ran Linux (SLS & Yggdrasil) on a PC with a 33MHz clock, 32MB RAM, and a 70MB hard drive. The N16R8 clock speed, RAM, and flash are all within an order of magnitude of what was on that old PC.
If you try the Linux build I'd appreciate to read your feedback/experience when running it.
Very skeptical that this is of any use; after bootup you have, what ... 260kb of RAM? Just doing runtime linking/relocations would eat up some of that. Just how small would your application have to be to be loaded at runtime?
Maybe they don't load the whole think into RAM, but thunk it somehow (I assume that elf supports that)?
Also 260kB of RAM on a 32bit processor could be a fair bit of code. Plus you could write it to external or internal flash. Though I don't know if esp-idf supports XIP (Zephyr does).
XIP depends on hardware support, not software.
It's still not much, but more will be made in the coming months. I wanted to stabilize the APIs a bit more before making more apps. I almost finished a Diceware app.
I envision an OS that handles networking, remote maintenance and updates and possibly even some scheduling for multiple applications, so that I don’t have to do all that in my application code. I don’t see what conceptually would make this hard and it would be a great step up in hobbyist development experience to me.
As far as I’m aware NuttX (POSIX-like) even has a shell, so I don’t see what should be so hard about it (please correct me).
Edit: Apparently Zephyr is also gaining support for this. Whoever builds a simple platform on top of one of these definitely had my attention.