SAGE OS – Self-Aware General Environment ( Operating System )
119
Self-Aware General Environment
An experimental, bare-metal operating system designed from scratch to learn, adapt, and evolve — starting on Raspberry Pi.
SAGE OS is not just another operating system. It is a living, evolving system designed to:
This is an experiment at the intersection of kernel engineering, embedded systems, and machine intelligence — pushing the boundaries of what an operating system can become.
This image illustrates the "Self-Evolving, AI-Driven OS Lifecycle" — a conceptual flow for how your SAGE OS can autonomously detect hardware, build itself, and evolve across platforms.
AI Detects Architecture and Hardware
Generate Platform-Specific Kernel and Drivers
Build Disk Image or Container
.img, .iso, or container that includes the new kernel, drivers, and shell environment.Boot Automatically
Monitor Performance and Stability
Stable → Keep New Image
Unstable → Roll Back
If issues are found, the AI automatically rolls back to the previous known-good state.
This workflow allows SAGE OS to evolve, rebuild, and test itself across any platform — moving toward true autonomy and architectural universality.
SAGE OS will include embedded, resource-efficient AI components that can:
arm-none-eabi-gcc, QEMU, Make, TinyML (TFLM, uTensor)This project is licensed under the CC BY-NC 4.0 License.
You're free to use, modify, and share the code for non-commercial purposes with attribution.
All rights reserved to the original author.
boot/ - Architecture-specific boot codekernel/ - Core kernel functionalitydrivers/ - Hardware driversscripts/ - Utility scripts for building and testingTo build and run SAGE OS, you need the following tools:
GCC cross-compilers for your target architectures:
x86_64-linux-gnu-gcc for x86_64aarch64-linux-gnu-gcc for ARM64/AArch64riscv64-linux-gnu-gcc for RISC-V 64-bitQEMU for emulation:
qemu-system-x86_64 for x86_64qemu-system-aarch64 for ARM64/AArch64qemu-system-riscv64 for RISC-V 64-bitOn Debian/Ubuntu:
# Install cross-compilers
sudo apt-get install gcc-x86-64-linux-gnu gcc-aarch64-linux-gnu gcc-riscv64-linux-gnu
# Install QEMU
sudo apt-get install qemu-system-x86 qemu-system-arm qemu-system-misc
To build SAGE OS for a specific architecture:
# Clean previous build artifacts
make clean
# Build for x86_64
make ARCH=x86_64
# Build for ARM64/AArch64
make ARCH=aarch64
# Build for RISC-V 64-bit
make ARCH=riscv64
The build process creates:
kernel.elf - The linked ELF executablekernel8.img - The raw binary imageYou can run SAGE OS in QEMU using the provided script:
# Run on x86_64
./scripts/test_emulated.sh x86_64
# Run on ARM64/AArch64
./scripts/test_emulated.sh aarch64
# Run on RISC-V 64-bit
./scripts/test_emulated.sh riscv64
For Raspberry Pi (ARM64):
kernel8.img to the boot partition of your SD cardconfig.txt contains arm_64bit=1All source files must include the BSD 3-Clause License header. You can check for compliance using:
./license-checker.py
If you need to add license headers to new files:
./add_license_headers.py
## 🧑💻 Contributing
SAGE OS is open to contributions from developers, researchers, and hardware hackers.
- 📜 [License (BSD 3-Clause)](./LICENSE)
- ⚖️ [Commercial Use Terms](./COMMERCIAL_TERMS.md)
- 🧠 [AI Safety & Ethics Manifesto](./AI_Safety_And_Ethics.md)
- 🛠️ [How to Contribute](./CONTRIBUTING.md)
By contributing, you agree to the above terms.
## License
SAGE OS is dual-licensed under the BSD 3-Clause License and a Commercial License.
You may use this project under the terms of the BSD 3-Clause License as stated in the LICENSE file.
Alternatively, commercial use with extended rights is available — contact the author for commercial licensing.
See the [LICENSE](./LICENSE) file for details.
Content type
Image
Digest
sha256:ea2effe71…
Size
520.1 MB
Last updated
over 1 year ago
docker pull ashishyesale/sage-os:arm