6 ms·
Linux Foundation to support Zephyr microkernel
- Animats 11y agoPress release from Linux Foundation.[1] Zephyr is a no-protection microkernel, like VxWorks (but unlike QNX, Minix, or L4, which run user processes in protected mode.) Everything is in one address space. It's actually Rocket, from Wind River, which also sells VxWorks and has open-sourced Rocket. Zephyr is for very small systems. Think smart light bulb, not WiFi router. Supported hardware includes the Arduno Due (ARM) and Arduino 101 (x86). The QEMU emulator can be used for testing. The API is C-oriented and very low level - fibers, threads, mailboxes, semaphores, etc. [1] http://www.linuxfoundation.org/news-media/announcements/2016/02/linux-foundation-announces-project-build-real-time-operating-system http://www.linuxfoundation.org/news-media/announcements/2016...
- MrTonyD 11y agoAre you saying that Zephyr is Rocket? I didn't see anything in the press release saying that, and I didn't see anything on the web site saying that (admittedly, I only spent a few minutes looking...). If it is Rocket, is it a product that couldn't get traction so now they are giving it away?
- Animats 11y agoHere's the statement from Wind River:[1] "Wind River contributed the Rocket kernel to Zephyr who brings together industry leaders in software and hardware to build an RTOS for IoT." There will still be a proprietary version of Rocket, which is the same kernel but also has components for connecting to Wind River's "App Cloud", which seems to be a hosted IDE. The Zephyr project offers only command line build tools under Linux. [1] http://blogs.windriver.com/wind_river_blog/2016/02/wind-river-welcomes-linux-foundations-zephyr-project.html http://blogs.windriver.com/wind_river_blog/2016/02/wind-rive...
- nickpsecurity 11y agoIt's description of features sounds a lot like eCOS's marketing material. That one has been around a while. What's the advantage(s) you see of this one?
- cpeterso 11y agoWhy is the Linux Foundation interested in supporting a non-Linux operating system?
- joezydeco 11y agoMore nodes = more backend servers?
- Animats 11y agoThat's a good question. Anyone know the political background? Zephyr is for systems far too small for Linux. You don't even have to have a file system. Several of the endorsers in the press release speak of Zephyr as "secure". This OS has no memory protection, no user IDs, and no permission system. Any code can do anything. Messages are passed around as raw pointers; they're not copied. Nor is the size sent with the message. And it's all in C. What could possibly go wrong? There's nothing wrong with using an OS like this when your application program is a few hundred lines. But if you add a networking stack and a mini web server, there's going to be trouble. [1] https://www.zephyrproject.org/doc/api/api.html https://www.zephyrproject.org/doc/api/api.html
- cpeterso 11y agoIt seems like small, custom systems like these without memory protection should at least use a safe language like Rust.
- tosseraccount 11y agoThe first "stable" version of the Rust, version 1.0.0, was released in May 2015 - wikipedia. Seems like Rust needs a few more laps around the track. ( Rust is from Mozilla Foundation, perhaps we can see some alternate implementations of their products to see how reliable they are with Rust ).
- bluejekyll 11y agoAnd it's seen 6 minor releases since then. Probably more stable than this kernel.
- pc2g4d 11y agoMission creep by the _Linux_ Foundation?
- justincormack 11y agoThey have lots of non Linux projects eg Xen http://collabprojects.linuxfoundation.org/#collaborative-projects http://collabprojects.linuxfoundation.org/#collaborative-pro...
- ck2 11y agoI'm questioning the need towards 2020 for anything that is limited to 8kb of memory? 8MB maybe, but 8KB ? I am holding in my hand a device the size of a postage stamp (or full sized SD card) that has 64MB of ram and 16MB of flash rom and supports eight simultaneous wifi devices (the zsun usb adapter). It uses two chips to accomplish this (Qualcomm MIPS cpu) and a third to support an external microsd card. http://i.imgur.com/F8P40Uo.jpg http://i.imgur.com/F8P40Uo.jpg The usb connector is almost larger than the board that holds the two chips.
- rhinoceraptor 11y agoThe less memory, the less chance of a memory error. Less memory means less code, which means fewer bugs.
- ck2 11y agoI'm all for efficiency, speed, and fewer bugs but isn't there a point where you are trading actually useful features for size reduction?
- monocasa 11y agoBecause it's cheaper.
- zokier 11y ago8MB of RAM alone probably consumes order(s) of magnitude more power than typical low-power microcontroller Zephyr is targeting. Also have you seen the size of todays microcontrollers? They are absolutely tiny: http://imgur.com/a/RsPjw http://imgur.com/a/RsPjw
- Sanddancer 11y agoThat device will last for three and a half hours on a 700maH battery. The devices here will last for months, if not years, on a single coin cell. Something like a wireless moisture sensor so you can more efficiently water your garden doesn't need 8 megs of ram. In such a case, why have waste all that power on parts of the chip that are never going to be used? There are a lot of areas where a small chip can do the job just as well, if not better, than a much larger chip using a more conventional OS.
- antirez 11y ago"Single address-space OS". Is this in order to support less advanced processors without good memory protection support?
- MrTonyD 11y agoI don't know their reasons...but virtual memory is generally non-deterministic. In practice, when I did real time programming with C, we had to empirically test for best case and worst case latencies, and then model our code performance in order to make sure that it wouldn't kill people. Perhaps if this is running on a processor with well defined instruction execution timing (that doesn't describe most modern processors), they can get full determinism.
- Animats 11y agoAnything with caches is non-deterministic, although there is worst case timing. Just because you have an MMU doesn't mean you have to have paging to disk. Paging to disk is on the way out; few mobile devices do it. RAM is too cheap.
- nickpsecurity 11y agoThere are caches that can be locked to aid determinism in certain operations. Idk their limits but they're used in some real-time systems.
- drewm1980 11y agoYep. Are you referring to mlock? That's one way of keeping your data from getting swapped out to disk when you know something the memory manager doesn't.
- nickpsecurity 11y agovardump gave a good reply: it was about locking the cache of CPU. For any interested, here's a paper with details on what I'm talking about with many methods: http://faculty.cs.tamu.edu/bettati/Courses/663/2009C/Slides/DataCachesMultitasking.pdf http://faculty.cs.tamu.edu/bettati/Courses/663/2009C/Slides/... Specific example in PPC CPU's: http://www.ibm.com/developerworks/library/pa-ppccache/ http://www.ibm.com/developerworks/library/pa-ppccache/ Googling "cache locking real time" will give you all kinds of interesting work.
- tkinom 11y agoWith today's multi-core soc, one can easily partition out one core for Zephyr. Anything real time related can move to this RTOS on its own core. This is great approach especially with Linux Foundation behind it. I am curious on what kind of License will it be released under, GPL?
- monocasa 11y agoIt has an Apache licence checked in.
- Sanddancer 11y agoApache 2.0
- crudbug 11y agoZephyr (Intel / NXP) / FreeRTOS / Brillo (Google) / mbed OS (ARM) / - Lot of noise in the IoT space.
- joezydeco 11y agoI wouldn't lump FreeRTOS in with those others. I've shipped devices with it and it's a real, tangible thing. mbed would be my next choice.
- bluejekyll 11y agoIt doesn't look like any libc is included. Which means it will probably be a pain to port any other languages a libraries. Right?