You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
tcsullivan 998b3ac86e Fixed syscalls, initrd program works 5 years ago
arm-stmos Merge branch 'master' of https://github.com/tcsullivan/stmos 6 years ago
src Fixed syscalls, initrd program works 5 years ago
tools vfs, initrd 6 years ago
.gitignore working toochain build script 6 years ago
LICENSE initial commit 6 years ago
Makefile libgpio, better initrd structure 6 years ago
README.md Update README.md 6 years ago
link.ld hello world from initrd 6 years ago
run.sh Fixed syscalls, initrd program works 5 years ago

README.md

stmos

stmos is an operating system for STM microprocessors. It aims to support (or be able to support) all STM Cortex-M processors.

Features:

  • Unprivileged code execution
  • ELF loading and execution (loads an init from the initrd)
  • Near-full C standard library support for loaded ELFs
  • libgpio: GPIO access for loaded ELFs

Currently supported processors:

  • STM32L476RG (board: NUCLEO-L476RG)

building

To build stmos, you'll need the following programs:

  • The arm-stmos toolchain (see the arm-stmos folder)
  • openocd
  • gdb (with multiarch support)

To compile stmos simply run make (-j option supported). To upload, use run.sh to start openocd/gdb; do lo to load stmos, and c to run it.

notes

Only the initrd works right now in regards to filesystem access. Files in the folder src/initrd/files are put into the initrd. C source files in src/initrd are compiled with libgpio, placing the program in src/initrd/files.

What's next for stmos?

  • SD card support
  • Display support (ILI....)
  • Script program support (a shell like sash, maybe lua)
  • More ELF work (better execve, signals?, etc.)