Skip to content
forked from MaxSinoh/MythOS

A modern operating system with x86-64 architecture based on UEFI.

License

Notifications You must be signed in to change notification settings

bgcr114514/MythOS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MythOS


MythOS

  • 一个基于UEFI的现代操作系统,采用x86-64架构。
  • 版权所有 © 2025 MaxSinoh & LuoYuDian.
  • 保留所有权利。

工具链

  • mingw64 gcc
  • x86_64-elf-tools
  • qemu-system-x86_64
  • GNU Make

编译

Tip: 前提是你的目录中有一个'bin'文件夹。

如果要编译但不运行,可以输入:

make all

之后你将得到一些对象文件,一个EFI文件和一个elf文件。


运行

Tip: 前提是你的目录中有一个'esp'文件夹,并且其中有一个'EFI'文件夹,然后还有一个'BOOT'文件夹在'EFI'里面。

如果要编译并运行MythOS,可以输入:

make run

然后你可以编译并在QEMU中运行MythOS。


真机启动

Tip: 前提是你有一台支持UEFI的真机。且你需要一个空的U盘。

  • 将U盘格式化为FAT32。
  • 将'esp'文件夹中的'EFI'文件夹和'kernel.elf'文件复制到U盘中。
  • 用U盘启动你的真机。
  • 之后你将看到MythOS的屏幕。

MythOS


MythOS

  • A modern operating system with x86-64 architecture based on UEFI.
  • Copyright (c) 2025 MaxSinoh & LuoYuDian.
  • All rights reserved.

Tools

  • mingw64 gcc
  • x86_64-elf-tools
  • qemu-system-x86_64
  • GNU Make

Compile

Tip: The premise is that there is a 'bin' folder in your directory.

If you want to compiler but not run it, you can type:

make all

Then you will get some object files, one EFI file and one elf file.


Run

Tip: The premise is that there is a 'esp' folder in your directory and there is a 'EFI' folder in 'esp', and then there is a 'BOOT' folder in 'EFI'.

If you want to compile MythOS and run it, you can type:

make run

Then you can compile MythOS and run it in the QEMU.


Boot from real machine

Tip: The premise is that you have a real machine and it supports UEFI.And you need an empty USB flash drive.

  • Format the USB flash drive to FAT32.
  • Copy the 'EFI' folder and the 'kernel.elf' file in the 'esp' folder to the USB flash drive.
  • Boot your real machine with the USB flash drive.
  • Then you will see the screen of MythOS.

About

A modern operating system with x86-64 architecture based on UEFI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.5%
  • Makefile 0.5%