logoalt Hacker News

speed_spreadyesterday at 11:58 PM6 repliesview on HN

There's plenty of use cases for Linux on microcontrollers that will be impossible if nommu is removed. The only reason we don't see more Linux on MCUs is the lack of RAM. RP2350 are very close! Running Linux makes it much easier to develop than a plain RTOS.


Replies

Brian_K_Whitetoday at 12:58 AM

Linux, or any other full OS is simply a waste of that hardware. It makes no sense at all.

It's a 5 gallon pail of compute which is all used up in OS overhead so you can do a cup of work.

If the job were that small that it fits in the remainder, then you could and should have just used 1 cent hardware instead of 1 dollar hardware.

show 1 reply
duskwufftoday at 1:32 AM

> Running Linux makes it much easier to develop than a plain RTOS.

I'm not convinced that's true. All of the microcontroller tooling I've seen has been built around RTOS development; I've never seen anything comparable for µCLinux.

leoedintoday at 9:56 AM

Setting up and maintaining a custom Linux build for any hardware is pretty complicated. There's just so much complexity hidden under config options. The landscape of Linux for embedded computers is a huge mess of unmaintained forks and hacky patch files.

That's all worth it to have an application processor that can run your Python/Java app. It's probably worth it to have a consistent operating system across multiple devices.

Would you have many of those benefits if you were using Linux on a micro though? I can't imagine much 3rd party software would work reliably given the tiny amount of RAM. You'd basically just be using it as a task scheduler and wrapper over drivers. You could get most of the benefits by using an RTOS with a memory allocator.

pjc50today at 10:48 AM

There's no evidence that significant numbers of people are actually doing that, though.

RossBencinatoday at 9:27 AM

> Running Linux makes it much easier to develop than a plain RTOS.

What's missing? What would it take to make a plain RTOS that's as easy to develop on/for/with as Linux?

snvzztoday at 12:14 AM

A "plain RTOS" is the better idea most of the time.

show 1 reply