Archive

Posts Tagged ‘operating system’
Orange Pi Development Boards

Tock Open Source OS for Secure IoT Systems Runs on Arm Cortex-M Microcontrollers

February 13th, 2018 No comments

We already have a fair share of open source operating systems running on Arm Cortex-M microcontrollers with FreeRTOS, mbed OS, Zephyr OS, RIOT, and many others. Earlier this morning, as I wrote about the Embedded Linux and IoT Summit 2018, I discovered you can now also add Tock to the list, with the operating system specifically designed for (secure) IoT on Arm Cortex-M MCUs.

According to the abstract, Tock aims to enable more secure and extensible IoT systems by using a language sandbox and hardware enforced mechanism to isolate third-party and other untrusted code in the system.

Tock Architecture

The operating systems is comprised of three components:

  • A trusted core kernel written in Rust language with a HAL, scheduler and platform-specific configuration
  • Capsules compiled with the kernel and use Rust’s type and module systems for safety; typically used for drivers & virtualization layers
  • User-space processes using the MPU for hardware protection at runtime; used for network stack, applications, etc…

System components (an application, driver, virtualization layer, etc.) can be implemented in either a capsule or process, but each mechanism trades off concurrency and safety with memory consumption, performance, and granularity.

Category Capsule Process
Protection Language Hardware
Memory Overhead None Separate stack
Protection Granularity Fine Coarse
Concurrency Cooperative Preemptive
Update at Runtime No Yes

Some of the supported hardware two board based on Microchip Atmel SAM4L Cortex-M4 MCU and Nordic Semi nRF51822 BLE Radio:

  • $60 Hail development module, based on Photon Particle form factor, and including a temperature and humidity sensor, light intensity sensor, accelerometer & gyroscope.
  • Upcoming $100 IMIX development board with the same sensors as Hail, but also adding an 802.15.4 radio, hardware RNG, USB host port, Arduino headers and more.

Click to Enlarge

You’ll find documentation, information about the hardware, and community links in TockOS website, or directly on Helena Project’s github account, where beside the source code for the project, you can also access tools, and the (EAGLE) hardware design files for IMIX board.

Apache Mynewt RTOS for IoT Includes an Open Source Bluetooth 4.2 LE Stack for MCUs

June 15th, 2016 7 comments

The Apache Software Foundation has recently released version 0.9 Apache Mynewt open source real-time operating systems for micro-controllers under… an Apache 2.0 license. The RTOS works on STMicro STM32 Cortex-M4, and Arduino Zero / M0 Cortex-M0 boards, but they’ve also implemented the  first open source Bluetooth Low Energy stack for MCUs, starting with support for Nordic Semi nRF52 Cortex-M4 and nRF51 Cortex-M1 evaluation boards, and acting as a replacement for Nordic SoftDevice Bluetooth Smart / LE solution.

Apache_Mynewt_System_Block_DiagramThe operating system competes with ARM mbed, the Zephyr Project, and RIoT, but the foundation claims it is the only one that’s both community driven and permissively licensed (Apache 2.0) project in the embedded space.

The OS is modular and can be configured with a Go-like build and package management tool with components such as secure boot loader, flash file system and TLV storage mechanism, rich logging infrastructure, circular buffering schemes, and Bluetooth 4.2 Low Energy. WiFi, Thread, and Bluetooth 5 are also part of the roadmap, and support for Javascript and Python is currently being worked on.

You can find more information and/or get started with the project on Apache Mynewt microsite.

Tizen 1.0 SDK and Source Code Release

May 1st, 2012 No comments

The Tizen Technical Steering Group has announced, today, the release of Tizen 1.0 “Larkspur”.

Tizen 1.0 release provides several new SDK features and improvements including:

  • Simulator: A new browser-based tool that supports the Tizen APIs and allows you to run and debug your web applications, and simulate running applications with various device profiles.
  • IDE: Enhancements include more flexibility around templates and debugging tools.
  • Emulator: Significantly improved emulator performance through Intel’s Hardware Acceleration Manager for Windows and OpenGL acceleration for Linux.
Tizen Web Based Simlautor

Tizen Simulator (Click to Enlarge)

Updates to the platform source code include:

  • Web: Support for additional features of W3C/HTML5 specification
  • Location: Support for POI (Point of Interest) and route search
  • Connectivity: Wi-Fi Direct key features added

You can see the full list of changes by reading the release notes for the SDK and the source code.

Tizen has also added a bug tracker and a wiki for the community and a few back-end changes have been made in order to improve stability and scalability of the infrastructure.

If you want to install the SDK, you’ll need a dual core 2 GHz CPU, with 2 GB of RAM running the 32-bit version of Ubuntu (10.04 or greater) or the 32-bit version of Windows XP SP3/Windows 7.  Tizen SDK makes use of Oracle Java v6 or higher version and several packages: qemu-kvm, binutils-multiarch, debhelper, fakeroot, realpath, gettext, procps, xsltproc, libdbus-1-3, liblua5.1-0, libexif12, and libcurl3.

You can download the SDK for your operating system below.

Operating System Download File Size Updated Date
Ubuntu 32-bit tizen_sdk.bin 4.5 MB April 30, 2012
Windows 32-bit tizen_sdk.exe 5.1 MB April 30, 2012

The installation is straightforward (especially in Windows), but if you run into problems, you can also check the instructions to install the SDK on Ubuntu or install the SDK on Windows.

If you have any feedback/comment or want to report bugs, you can do so on Tizen community page.

B2G (Boot to Gecko) Video Demo at MWC 2012

March 1st, 2012 No comments

B2G (Boot to Gecko) is an open source HTML5-based operating system targeting mobile devices by the Mozilla Foundation. This OS runs on top of Linux and uses Firefox as the web browser. You can get further details on my previous post “Mozilla Boot to Gecko (B2G) OS Is Coming to Your Smartphone“.

Mozilla Mobile Operating System User Interface

B2G Gaia User Interface (Home Screen)

As previously announced, Mozilla showcased B2G on a Samsung Galaxy S2 at Mobile World Congress 2012. Every apps are written in HTML5 including the camera application that uses HTML5 Media Capture and Canvas for real-time effects. Engadget was there and shot the video demo below.

If you have a Samsung Galaxy S2, you can build and try it on your device. This is experimental, so there is always the risk of bricking your phone.

Tizen Releases Beta Source Code and SDK

February 28th, 2012 No comments

Tizen Mobile Linux Distribution with HTML5 APIsBack in January, Tizen preview SDK and source code was made available. Today, Tizen has released the beta source code and SDK.

Here are the main changes compared with the code preview:

The Tizen team emphasizes that this version is Beta and that it is not yet designed for use to create production applications.

Since Windows is now supported, the development machine requirements have slightly changed as follows:

  • Ubuntu 10.04/10.10/11.04/11.10 32-bit, Windows XP SP3/7 32-bit (Mac version will be available soon)
  • At least dual-core 2 GHz CPU (recommend VTx supported by CPU)
  • At least 2 GB of RAM memory
  • At least 3 GB of free disk space
  • Local administrator authority
  • At least 1280×1024 screen resolution

If you are a developers and reviewed the source code and/or SDK, and have some feedback, you can contact them via:

The final release is still planned for Q2 2012.

Mozilla Boot to Gecko (B2G) OS Is Coming to Your Smartphone

February 16th, 2012 No comments

Mozilla, non-profit organization, well known for its Firefox web browser and Thunderbird mail client has recently moved to the mobile space with Firefox for Android browser for smartphones and tablets. However they intend to go even further by releasing a mobile operating systems named Boot to Gecko (B2G) competing directly with Android, iOS and Windows Phone.

Mozilla mobile operating system will use web standards (like Tizen does) and the goal is to displace proprietary, single-vendor stacks for application development (e.g. Android, iOS, WP7).  The OS itself will relies on the Linux kernel and some open source libraries and the B2G applications will be written using HTML5/Javascript/CSS3 standard. Basically, it will boot Linux and use the Gecko engine (like in Firefox) to render application in a way similar to what Google does with Chrome OS.

The HTML5-based user interface of B2G is called Gaia and is a collection of web apps.

Mozilla Mobile Operating System User Interface

B2G Gaia User Interface (Home Screen and Dialer)

Here’s a list of apps currently developed for Gaia:

  • Home screen (webGL/HTML)
    • Keyboard/IME
      • Chinese ZhuYing IME
  • Lock screen
  • Dialer
  • SMS application
  • Browser
  • Gallery
  • Camera
  • Media Player
  • App Manager
  • Settings
  • UI/widget library
  • Apps store
  • eBook reader
  • Facebook
  • Maps
Browser and Photo Gallery in B2G (Firefox Phone)
Gaia Browser and Gallery

Mozilla has a roadmap for B2G and they plan to have a working version in Q1 2012 (meaning now) that they intend to demo at Mobile World Congress (MWC 2012) at the end of the month and a release version should be available in Q2/Q3 2012.

The source code for B2G is available in github in several repositories the 2 most active being B2G and Gaia. The current development platform is the Samsung Galaxy S2 and the kernel source code is available at https://github.com/andreasgal/GT9100-kernel. However, B2G does not seem to require (many) modifications to the kernel as no changes have been made for 4 months.

If you are adventurous and the lucky owner of a Galaxy S2, you can build and try it on your device. At your own risk of course.

Tizen Releases Source Code and SDK Previews

January 10th, 2012 No comments

Tizen Mobile Linux Distribution with HTML5 APIsTizen, a new Linux based HTML5 operating systems aimed at mobile and consumer devices, was announced at the end of September 2011 without much detail.

Today, Tizen has posted a set of pre-release tools, source code and related documentation to give application developers an early look at Tizen. Tizen Alpha (pre-1.0) is a very early preview and is not yet designed for use to create production applications.

Tizen Application, API and Kernel Layers

Tizen Architecture

They specifically released the following items:

If you plan to try Tizen SDK, you development machines should match or exceed the following requirements:

  • Ubuntu 10.04/10.10/11.04 32-bit (Windows and Mac version will be available later)
  • At least dual-core 2 GHz CPU (recommend VTx supported by CPU)
  • At least 2 GB of RAM memory
  • At least 3 GB of free disk space
  • At least 1280×1024 screen resolution

The documentation is divided into 2 main sections:

If you are a developers and reviewed the source code and/or SDK, and have some feedback, you can contact them via: