HACKER Q&A
📣 roschdal

Someone Port Linux to Arduino


Someone port Linux to Arduino please. Why? Just for fun!

https://superuser.com/questions/1687541/is-there-a-way-to-run-linux-in-arduino-due-like-ubuntu

https://forum.arduino.cc/t/simple-arduino-based-operating-system/502929

https://forum.arduino.cc/t/an-os-for-arduino/641772

https://www.hackster.io/SamRuben123/mcuos-an-os-for-arduino-boards-eacf3b


  👤 tony-allan Accepted Answer ✓
Small systems (such as the Raspberry Pi) and microcontrollers are very different beasts. A linux system requires more resources than are generally available with a microcontroller.

Microcontrollers work without and operating system or with a very small Real-time operating system (RTOS).

A microcontroller just as the Raspberry Pi Pico (RP2040 chip) and a Raspberry Pi running linux (e.g. Raspberry Pi Zero 2 W) are almost the same price — $4 vs $15.

Microcontroller have KB's to MB's of RAM and storage and computers have GB's of RAM and storage.

There is some overlap in how these systems are used but generally if you want to control low-level are hardware with specific time or latency constraints use a microcontroller. If you want to run regular programs (with or without a keyboard and screen) use linux.


👤 hnlmorg
The links you posted explain why Linux couldn’t be ported.

If you need Linux on a developer board then you’re better off with a Raspberry Pi (or one of its many equivalents).

Also, it’s pretty bad form to ask people requests like these. You’re asking them to give up weeks of their free time for nothing.


👤 pjmlp
What for?

It doesn't provide any value over Nuttx, FreeRTOS+POSIX, Zephyr, Azure RTOS, Mbed, RIOT,...