Skip to content

TrellixVulnTeam/raspberrry2v8_1JCB

 
 

Repository files navigation

raspberrRy2v8 Build Status

raspberrRy2v8 is a kernel built on V8 JavaScript engine. It uses event-driven and non-blocking I/O model inspired by Node.js.

The goal of this project is to design and implement a kernel that is optimized to run JavaScript applications. By providing environment for JavaScript code only, it is possible to rethink kernel design to improve security, reliability and performance of the system.

It target at small mobile devices, and provides best performance and power consumption balance.

You can use issues section to ask any questions or share your ideas https://github.com/sloanyang/raspberrry2v8/issues

It's under heavy development. Please contact [email protected] for more info.

Technical details

TARGET design

  • performance/energy efficiency.
  • secure
  • small
  • decentralized

Kernel architecture

  • supported raspberrypi board and arm based board (SUPPOSED).
  • software isolated applications (isolates)
  • single address space, no hardware context switches.
  • does not use cpu protection rings
  • non-blocking asynchronous inter-isolate communication (IIC)
  • drivers and system services are implemented in JavaScript
  • low-level kernel services are written in C++11

Status

####What's done

  • V8 isolates
  • multitasking (cooperative only)
  • Inter-isolate communication using RPC
  • embedded ACPICA for ACPI support
  • simple keyboard and VGA display drivers
  • shell and some basic applications
  • PCI bus driver device detection
  • virtio-net driver

####Planned

  • network stack
  • virtual file system
  • virtio drivers for storage and network

Build

####Prerequisites

  • gcc 4.8 or newer cross compiler (target x86_64-elf)
  • fasm
  • scons

Warning: gcc 4.9.0 is not supported because of libc++ compile bug (use 4.9.1 or newer)

####Building

You need to install fasm, scons and GCC cross compiler targeting x86_64-elf. http://wiki.osdev.org/GCC_Cross-Compiler

To build

scons

####Run using QEMU (recommended version >= 2.0.0)

./qemu.sh

####Try prebuilt binaries in QEMU

Download latest runtime and initrd files from releases page https://github.com/runtimejs/runtime/releases

Run

qemu-system-x86_64                                \
    -m 512                                        \
    -smp 1                                        \
    -kernel runtime                               \
    -initrd initrd                                \
    -serial stdio

Documentation

Wiki pages

License

GNU GENERAL PUBLIC LICENSE, Version 2, June 1991

About

Boot raspberry pi into v8 engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 82.9%
  • C++ 10.1%
  • Assembly 2.7%
  • Perl 1.5%
  • JavaScript 0.8%
  • Python 0.5%
  • Other 1.5%