The newest ESP32 can run Linux and it's getting close to a Raspberry Pi
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
The newest ESP32 can run Linux and it's getting close to a Raspberry Pi
Unofficial Hacker News client; not affiliated with Y Combinator.
dsign · · focus · HN ↗
There’s no way a multi-user OS such as Linux can be as efficient as a firmware blob that does one thing. Tell me if I’m wrong, but in my mental model, one can get about the same mileage with 16 MB of PSRAM in an MCU running FreeRTOS as one can get in a 512 MB SBC running Linux. For my use case, the winner combination would, of course, be a 512 MB SBC running FreeRTOS, but I’ve so far been unable to find such a wondrous thing.
ValdikSS · · focus · HN ↗
For your use case, you need raw performance and low-level control, and you have it. But for IoT device which is all about network more or less, there's usually no need to go low-level.
ESP32 for Wi-Fi handling uses wpa_supplicant port from Linux for example.
You can run a real, multi-user Linux with as low RAM as 8 MB. You get the benefit of running any Linux-supported programming languages (and combine any amount of them without extra effort, just on a real machine), established portable abstractions, established memory protection model, ease of debugging.
You can run both though. Both FreeRTOS and Linux simultaneously, where Linux is a FreeRTOS task on a dedicated core. That's how several Linux ports work, haven't checked if Espressif's works this way as well.
Rohansi · · focus · HN ↗
Or you could just use it as a microcontroller. Networking support is already good. Programming language support is better than you think (C++, Rust, Python, JavaScript). Debugging just works on newer boards.
ValdikSS · · focus · HN ↗
>There's also limited support for 32-bit RISC-V in distros so anyone looking to run Linux on this will need to build everything themselves.
For this kind of a device, "everything" is a kernel + your application/libraries + maybe busybox/toybox with some applets, all with XIP.
>Easier to just get a cheap ARM SoC that can probably run Android
It's at least twice as expensive for the features S31 provides. See my other messages here.
Rohansi · · focus · HN ↗
But what does Linux actually give you in a MCU? It's a lot of overhead so it has to really be worth it.
ValdikSS · · focus · HN ↗
ESP32-S31 is no longer an MCU anymore if it has an MMU I guess. It's a full-blown "computer chip".
[deleted] · · focus · HN ↗
[deleted]
zelo · · focus · HN ↗
nicman23 · · focus · HN ↗
yjftsjthsd-h · · focus · HN ↗
Yes, obviously. The advantage is in how easy it is to port software to the board, and how much work you need to do to get any given amount of functionality.
andrewstuart · · focus · HN ↗
mrheosuper · · focus · HN ↗