Omege UOS 文档中心

应用开发全流程:编写 → 编译 ELF → 集成到 ISO

1. 项目简介

Omege UOS 是一款轻量级、高性能的自研操作系统,原生支持 ELF 格式应用程序。

  • 获取官方源码
  • 开发原生 APP
  • 编译为 ELF 可执行文件
  • 将 ELF 集成到 ISO 镜像
  • 运行 Omege UOS 并使用 APP
官方仓库:https://github.com/deeplearning-corporation/OmegeUOS.git

2. 克隆官方源码

git clone https://github.com/deeplearning-corporation/OmegeUOS.git
cd OmegeUOS

3. 搭建开发环境

sudo apt install gcc make qemu-system-x86

4. 编写 Omege UOS 原生 APP

#include <stdio.h>
int main() {
  printf("Hello, Omege UOS!\n");
  return 0;
}

5. 编译为 ELF 文件

gcc -m32 -o hello hello.c -nostdlib -fno-builtin
file hello

6. 下载官方 ISO 镜像(从 Releases)

Omege UOS 提供预编译 ISO 镜像,直接从 Releases 下载即可使用。

📥 官方下载地址:https://github.com/deeplearning-corporation/OmegeUOS/releases
  • 打开上方 Releases 页面
  • 下载最新版 ISO 镜像
  • 保存到本地工作目录

下载完成后,可直接使用或集成自定义 ELF 应用。

7. 将 ELF 放入 ISO

将你的 ELF 应用放入 ISO 镜像的可执行目录:

cp hello ./iso/rootfs/usr/bin/

8. 运行 Omege UOS

qemu-system-x86_64 -cdrom omegeuos.iso -m 512

进入系统后直接输入应用名运行:

hello