News for hackers. Stuff that matters.
Re:ARM mbed – An operating system for IoT devices by simpsond on Wednesday October 08, 2014 @03:04PM (#8428790)
I realize linux might be too heavy for many applications, but for any powered device, let's please make linux the default.
Re:ARM mbed – An operating system for IoT devices by Sanddancer on Wednesday October 08, 2014 @04:21PM (#8429243)
Linux as the default for the sort of devices mbed is focusing on is, plain and simple, not feasible by any shape of the imagination. The first constraint is memory; the microcontroller world is full of very powerful chips that can only address a few kilobytes of memory. Using a chip capable of running any sort of Linux kernel means limiting yourself to chips that cost at least 5-10 times more than other chips, plus the added cost of RAM, plus the design costs associated with the extra chips and discrete components, etc. Second, you are limiting what you can do with the chip; Linux, for example, has no support for being an SPI slave device, so if that's part of your design requirements, you now have to start writing your own kernel drivers for something that's almost always built into other OSes/frameworks for microcontrollers.

Finally, for many tasks, your code will end up being more complicated. Because power consumption tends to be crucial in a lot of designs, you want to spend as much time as possible sleeping, waking up only to handle whatever event you received. As such, most microcontroller frameworks have excellent support for event/interrupt-centric programming, where a device will only wake up long enough to handle the input at hand before going back to sleep. Linux just doesn't have the apis needed to support this sort of behavior well, which means you either need a proper real-time microkernel under Linux to handle your i/o, or you're going to be stuck putting all of your operations in kernel space, negating the point of Linux.

In short, stating Linux should be the default is short-sighted and neglects a lot of what is going on in the systems that mbed is focusing on. Trying to wedge it in, or even think of wedging it in, is going to make your device more expensive, and less useful, than using the right tool for the job from the get-go. All the world does not need to be Linux.

Re:ARM mbed – An operating system for IoT devices by monocasa on Wednesday October 08, 2014 @03:57PM (#8429099)
Linux won't run on most Cortex-Ms that this is for. These devices have 192KB of RAM on the high end and no MMU.
Re:ARM mbed – An operating system for IoT devices by pinkyand on Wednesday October 08, 2014 @03:18PM (#8428877)
Linux also means higher hardware costs and bigger size and worse peripheral selection. Those are critical parameters in this market.
Re:ARM mbed – An operating system for IoT devices by fragmede on Wednesday October 08, 2014 @05:23PM (#8429544)
> higher hardware costs

Yes.

> bigger size

If you're comparing something like a bare ATTiny to a Raspberry Pi, sure, but the size difference between a standard Arduino and the Pi isn't great.

> worse peripheral selection

Um, compared to what?

mbed, a new operating system, will have to have drivers written for everything it supports - which is likely much shorter list than for Linux.

Re:ARM mbed – An operating system for IoT devices by zwieback on Wednesday October 08, 2014 @03:13PM (#8428851)
Generally, that's the way it's going but there are still many situations where a lightweight real-time kernel like uC/OS or ThreadX, etc. is preferable.
Re:ARM mbed – An operating system for IoT devices by WallWextra on Wednesday October 08, 2014 @03:21PM (#8428890)
I'd really rather not have my toaster running, e.g., bash, since a toaster will never get firmware upgrades.
Re:ARM mbed – An operating system for IoT devices by mindslight on Wednesday October 08, 2014 @03:28PM (#8428936)
Rather than encouraging proprietary blobs that will have their own bugs and never get updated (if they're even publicly disclosed), we're better off solving the firmware update problem (eg GPL3).
Re:ARM mbed – An operating system for IoT devices by pinkyand on Wednesday October 08, 2014 @03:43PM (#8429027)
The GPLv3 model, i.e the need to release all your source, isn't compatible with the mindset of embedded product manufacturers, which are highly afraid of copying.

Until you solve this mindset problem(god knows how), GPLv3 isn't a workable solution.

Re:ARM mbed – An operating system for IoT devices by mindslight on Wednesday October 08, 2014 @04:13PM (#8429195)
Oh I'm well aware. Version control with something other than zip files isn't compatible with the mindset of embedded developers :P

Right now I've got a dishwasher that pukes on every second cycle. I know it's a software problem, yet their solution is to replace the whole controller board, taking months to diagnose and order a new one. Luckily I don't own it, so I'm only paying for this circus with my time.

The quip about GPL3 was meant as one possible example, although it does line up incentives pretty well. Users should be wary of devices that have worked quite well with mechanical timers/thermostats/etc being replaced with an essentially infinitely complex microcontroller, and the solution for taming that complexity to be the manufacturer retaining indefinite control.

Re:ARM mbed – An operating system for IoT devices by pinkyand on Wednesday October 08, 2014 @04:46PM (#8429372)
Sure there's a huge problem with the quality and the reliability of appliances.Basically everything's shit, or there's are high end products which are a bad deal, economically.

But solving that is much, much bigger than just open-sourcing embedded code.

Also

>>Oh I'm well aware. Version control with something other than zip files isn't compatible with the mindset of embedded developers :P

That's one thing the mbed default IDE(web ide) does well - it gets people to use version control.

Re:ARM mbed – An operating system for IoT devices by georgemcbay on Wednesday October 08, 2014 @03:41PM (#8429018)
This only solves the problem in theory, not in practice. The vast majority of users aren't going to bitbake their own toaster firmware to fix bugs (nor will they even suspect the latest Linux bug might impact their toaster).
Re:ARM mbed – An operating system for IoT devices by mindslight on Wednesday October 08, 2014 @04:20PM (#8429235)
So then you build auto-updating frameworks on top. If you don't start off with the option to DIY, you cannot possibly end up with a functioning market for repair service.

It certainly beats the current standard of manufacturers dropping firmware support after 5 short years, and older devices being left completely high and dry for the sheer majority of people that don't update appliances based on fashion.

Re:ARM mbed – An operating system for IoT devices by fra on Wednesday October 08, 2014 @07:26PM (#8429983)
Linux doesn't run without an MMU (cortex M only has an MPU). Furthermore, I don't think one size fits all. Putting a server OS on an embedded system is nuts and will hurt you across the board (power consumption, performance, ... etc.).
Re:ARM mbed – An operating system for IoT devices by unmole on Thursday October 09, 2014 @02:07AM (#8431033)
Clearly you've not heard of uCLinux.
Re:ARM mbed – An operating system for IoT devices by swah on Wednesday October 08, 2014 @03:42PM (#8429022)
I agree this has to be considered. I see this pattern some times: wow, this small device is really fun to work. Now I want to hook a camera (usb) and process the data (opencv) to do something. And I realize I should've been using arm + linux.
Re:ARM mbed – An operating system for IoT devices by justincormack on Wednesday October 08, 2014 @04:25PM (#8429259)
Linux is just too big. And we need variety to explore new ideas.
Re:ARM mbed – An operating system for IoT devices by tmuir on Wednesday October 08, 2014 @03:52PM (#8429072)
Maybe some people like reinventing the wheel with every piece of code they write Or, they like having a pool of only a couple hundred people that can help with problems, instead of a couple hundred thousand. Or they don't like the freedom to program in fifty different languages. Or they don't like a thoroughly tested, mature, code base. Perhaps they don't like when their code runs on multiple different processor architectures. Maybe they hate the abundance of freely available communication protocols, file systems, and graphical frontends. Maybe they're overwhelmed by the ease of searching for solutions to common problems because of linux's ubiquity.

I don't get it.