Flayme Logo

Flayme Kernel

Hybrid open-source kernel that natively runs Linux apps, Windows EXE/PE, Android APKs, and universal .jyd packages.

Version 1.0.0 "Ember"
Base Linux 6.x
Architecture Hybrid kernel
License GPL-2.0 / LGPL-2.1 / Apache-2.0

What This Is

Flayme is a kernel, not a full operating system. It extends the Linux kernel with multi-runtime compatibility layers capable of running Linux, Windows, Android, and Jayde applications under one unified runtime bus.

Feature How
Run Linux ELF apps Native — zero overhead, standard binfmt_elf
Run Windows .EXE/.PE Wine-Flayme compatibility layer
Run Android .APK FART — Flayme Android Runtime
Run .jyd packages Jayde universal app format
Cross-runtime IPC FRB — Flayme Runtime Bus

None of this is CPU emulation. Applications execute native x86-64 or ARM64 machine code directly on the processor. Only APIs and system calls are translated.

Architecture

┌──────────────────────────────────────────────────────────────────┐ │ USER SPACE │ │ │ │ Linux ELF Windows PE Android APK .jyd │ │ │ │ │ │ │ │ (native) Wine-Flayme FART Jayde │ │ binfmt_elf (Wine fork) (ART port) jyd-runner │ │ │ ntdll.so art.so │ │ │ │ Win32→Linux DEX→native (unpacks + │ │ │ syscall shim JIT/AOT re-executes) │ │ └──────────────┴─────────────────┴──────────────┘ │ │ │ │ │ /dev/frb │ (Flayme Runtime Bus) │ ├──────────────────────────────▼───────────────────────────────────┤ │ FLAYME KERNEL │ │ │ │ binfmt_pe binfmt_apk binfmt_jyd frb.ko (kernel modules) │ │ │ │ Standard Linux kernel subsystems: │ │ scheduler | memory | VFS | network | drivers │ └──────────────────────────────────────────────────────────────────┘ HARDWARE

Kernel Subsystems

fs/binfmt/binfmt_pe.c

Detects MZ binaries on execve() and forwards execution to Wine-Flayme. Windows x86-64 code runs directly on the CPU.

fs/binfmt/binfmt_apk.c

Detects Android APKs and boots the Flayme Android Runtime. DEX bytecode is AOT-compiled into native machine code.

fs/binfmt/binfmt_jyd.c

Handles universal .jyd containers and selects the best payload automatically.

kernel/frb/frb.c

The Flayme Runtime Bus. Provides lockless IPC communication between Linux, Windows, and Android runtime environments.

wine-flayme/

android-rt/ (FART)

tools/jayde/jayde.c

Jayde creates, signs, installs, and runs .jyd packages.

.jyd Package Format

[256-byte header "JAYD"] [manifest.json] [sections...] [signature]

Each section is zstd-compressed and SHA-256 verified. Packages can contain ELF, PE, APK, or mixed universal payloads.

# Convert an existing app
jayde pack --apk myapp.apk --exe myapp.exe --elf myapp -o myapp.jyd

# Run it
jayde run myapp.jyd

# Or exec directly
./myapp.jyd

Building

# Install dependencies
make deps

# Configure
make defconfig

# Build everything
make all

# Step-by-step
make kernel
make modules
make wine-flayme
make fart
make jayde

# Test
make run-qemu

# Build ISO
make logo && make iso

Contributing

Contributions are welcome across all subsystems:

More info: spectrion.github.io/flayme/contributing.md

Why "Not an emulator"?

Term Meaning
Emulator Simulates a different CPU architecture in software
Compatibility Layer Translates APIs/syscalls while machine code runs natively

Flayme is a compatibility layer. Applications execute directly on the host CPU at native speed while operating system calls are translated underneath.