‹ BackHN Continuity

Thread

The newest ESP32 can run Linux and it's getting close to a Raspberry Pi

237 points · 123 comments · adunk

  1. ValdikSS · · focus · HN ↗
    Too bad Linux has removed Execute-in-place (XIP) support for RISC-V since 7.1. It allows to run the kernel (and applications) from NOR flash directly, without copying it into RAM first. Somebody should reintroduce it.

    Espressif's port use 6.18 due to this exact reason. There's also another port, using 7.1, not sure if it supports XIP.

    <a href="https:&#x2F;&#x2F;www.phoronix.com&#x2F;news&#x2F;RISC-V-XIP-Being-Removed" rel="nofollow">https:&#x2F;&#x2F;www.phoronix.com&#x2F;news&#x2F;RISC-V-XIP-Being-Removed

    XIP is almost essential for these low-RAM devices. You can run Linux with 8 MB RAM with reasonable functionality.

    1. iamnothere · · focus · HN ↗
      IMO Linux is gradually becoming a poor fit for niche use cases and extremely constrained devices. It makes sense, as they are trying to trim less used parts of the code that add maintenance overhead (especially areas without any volunteers to maintain them). And RTOSes are gradually replacing Linux on MCUs. I don’t know what’s best to replace it if you want a full OS, probably NetBSD?

      Edit: I looked into it, sounds like NetBSD hasn’t done work on ESP32 before because of the lack of MMU. Now this should be possible, but there’s probably a fair amount of work to do.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.