Giter VIP home page Giter VIP logo

rtems-task-sets's Introduction

Sample task sets implementation in RTEMS

This project implements sample task sets defined by Preemptive Time Petri Nets (PTPNs) with the RTEMS real-time operating system. Timestamps of events are gathered to be then verified with the ORIS Tool.

Running

Compiled executables can be found in the Releases page.

Simulator

Executables compiled for aarch64/xilinx_zynqmp_lp64_qemu can be run on the QEMU emulator with the following command:

> qemu-system-aarch64 -no-reboot -nographic -serial mon:stdio \
-machine xlnx-zcu102 -m 4096 -kernel example.exe

Raspberry Pi 4 Model B

Along executables compiled for aarch64/raspberrypi4b you will also find the corresponding kernel image.

  • Copy kernel8.img to the SD card boot partition.
  • Console I/O is available through UART, which you can enable following the UART Setup section in the docs.

Building from source

RTEMS 6 and Board Support Packages (BSPs) are needed in order to build applications.

The Dockerfile is available for easy reproducibility of the environment:

> git clone --recurse-submodules https://github.com/marcodiri/rtems-task-sets.git
> cd rtems-task-sets
> DOCKER_BUILDKIT=1 docker build -t rtems:6 .

Then compile the applications in a container (pass the absolute path to the ./app folder before the colon):

> docker run --rm -it -v /absolute/path/to/app/folder:/app rtems:6 
$ chmod +x ./waf

# build for raspberry
$ ./waf configure --rtems=/opt/rtems/6 --rtems-bsp=aarch64/raspberrypi4b
$ ./waf

# build for xilinx_zynqmp_lp64_qemu
$ ./waf configure --rtems=/opt/rtems/6 --rtems-bsp=aarch64/xilinx_zynqmp_lp64_qemu
$ ./waf

Outputs will be in the build directory.

rtems-task-sets's People

Contributors

marcodiri avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.