littlekernel / lk

LK embedded kernel
MIT License
3.11k stars 611 forks source link

The Little Kernel Embedded Operating System

The LK kernel is an SMP-aware kernel designed for small systems ported to a variety of platforms and cpu architectures.

See https://github.com/littlekernel/lk for the latest version.

High Level Features

Supported architectures

TODO

To build and test for ARM64 on linux

  1. install or build qemu. v2.4 and above is recommended.
  2. install gcc for arm64 (see note 1)
  3. run scripts/do-qemuarm -6 (from the lk directory)
  4. you should see 'welcome to lk/MP'

This will get you a interactive prompt into LK which is running in qemu arm64 machine 'virt' emulation. type 'help' for commands.

Note: for ubuntu x86-64 sudo apt-get install gcc-aarch64-linux-gnu or fetch a prebuilt toolchain from https://newos.org/toolchains/aarch64-elf-14.1.0-Linux-x86_64.tar.xz