GithubHelp home page GithubHelp logo

cy023 / tenok Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tenok-rtos/tenok

0.0 0.0 0.0 13.68 MB

An experimental real-time operating system

Home Page: https://www.youtube.com/watch?v=byWihWcMP00

License: BSD 2-Clause "Simplified" License

Shell 0.02% C 98.09% Assembly 0.88% Makefile 0.05% HTML 0.96% GDB 0.01%

tenok's Introduction

Tenok

An experimental real-time operating system inspired by rtenv and rtenv-plus.

The Amis people are an indigenous tribe that originated in Taiwan, and the term "tenok" in their language means "kernel."

Features

  • POSIX style
  • Spinlock
  • Mutex
  • Semaphore
  • FIFO (named pipe)
  • Message queue
  • Built-in shell interface
  • Simple rootfs and romfs

Supported Platforms

ARM Cortex-M4F

  • STM32F4DISCOVERY (STM32F407VG)

    • Select by enabling include platform/stm32f4disc.mk in the Makefile
    • Serial0 (UART3): PC10 (TX), PC11 (RX)
  • 32F429IDISCOVERY (STM32F429ZI)

    • Select by enabling include platform/stm32f429disc.mk in the Makefile
    • Serial0 (UART3): PC10 (TX), PC11 (RX)
  • QEMU Emulation of netduinoplus2 (STM32F405RGT6)

    • Select by enabling include platform/qemu.mk in the Makefile

Shell Keys

  • Backspace, Delete: Delete a single character

  • Home, Ctrl+A: Move the cursor to the leftmost

  • End, Ctrl+E: Move the cursor to the rightmost

  • Ctrl+U: Delete a whole line

  • Left Arrow, Ctrl+B: Move the cursor one to left

  • Right Arrow, Ctrl+F: Move the cursor one to right

  • Up Arrow, Down Arrow: Display previous typings

  • Tab: Command completion

Development Tools

  1. Prerequisites:
sudo apt install build-essential git zlib1g-dev libsdl1.2-dev automake* autoconf* \
         libtool libpixman-1-dev lib32gcc1 lib32ncurses5 libc6:i386 libncurses5:i386 \
         libstdc++6:i386 libusb-1.0.0-dev ninja-build
  1. OpenOCD:
git clone git://git.code.sf.net/p/openocd/code openocd
cd openocd
./bootstrap
./configure --prefix=/usr/local --enable-jlink --enable-amtjtagaccel --enable-buspirate \
            --enable-stlink --disable-libftdi
echo -e "all:\ninstall:" > doc/Makefile
make -j4
sudo make install
  1. ARM GCC toolchain 9:
wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
tar jxf ./gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
rm gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
  1. QEMU:
git clone git://git.qemu.org/qemu.git
cd qemu
git submodule init
git submodule update --recursive
mkdir build
cd build
../configure
make -j $(nproc)
  1. Edit ~/.bashrc and append the following instructions:
PATH=$PATH:${YOUR_PATH}/qemu/build
PATH=$PATH:${YOUR_PATH}/gcc-arm-none-eabi-9-2019-q4-major/bin
  1. Restart the terminal

Build and Run

Build:

git clone https://github.com/shengwen-tw/tenok.git
cd tenok
make

Run emulation:

make qemu

Upload binary:

make flash

Remote debugging with gdb:

make openocd #start the gdb server if you have real hardware
make gdbauto

License

Tenok is released under the BSD 2-Clause License, for detailed information please read LICENSE.

tenok's People

Contributors

shengwen-tw 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.