Fayos is 16-bit real-mode OS. Write by GNU Assembler.
Step summary
- Dependency install
- Build the Fayos
- Execute Fayos
Using apt package manager in this guide.
sudo apt update
sudo apt upgrade
sudo apt install git make binutilsgit- for thegit clonemake- build forfayos.imgbinutils- include theas,ldcommands-
as- GNU assembler compiler
-
ld- linker
git clone https://github.com/facooya/fayos.git
cd fayos
makemake- buildfayos.imginbuild/directory. Andbuild/directory auto created.make clean- remove object and binary files inbuild/directory. Only rest thefayos.imginbuild/directory.make clean_all- removebuild/directory.
Emulator install:
sudo apt install qemu-systemQuick execute:
./tools/qemu.shThe ./tools/qemu.sh for amd64 architecture.
Manual execute:
qemu-system-x86_64 -drive format=raw,file=./build/fayos.imgqemu-system-[architecture] -drive format=raw,file=[path].img
Follow the Command List section.
Emulator install:
sudo apt install bochs bochsbios vgabios bochs-sdlQuick execute:
./tools/bochs.sh- Bochs log default path:
build/bochslog
Manual execute:
Modify tools/bochsrc file if you need.
bochs -q -f ./tools/bochsrcFollow the Command List section.
Install linux terminal in windows:
- open windows terminal
- install the windows system in linux:
wsl --install -d Debian -
- debian linux using
apt
- debian linux using
- windows reboot:
shutdown /r /t 0 - open windows terminal
- execute linux terminal
wsl -d Debianordebian - make user and password and reboot WSL.
And follow the Quick Start section.
-
Directory
-
mkdir- create new directory
-
rmdir- remove directory
-
cd- change directory
-
ls- show directory list
-
File
-
touch- create new file
-
rm- remove file
-
cat- show file content
-
System
-
echo- output string
-
help- show command list
-
clear- clear screen
boot/- Bootdocs/- Documentationdrv/- Driverfs/- File Systeminc/- Include: Constants onlyint/- Interruptkern/- Kernellib/- Librarysh/- Shelltools/- Tools: Misc
More directory structure in docs/. Examples: docs/kern/README.md and find Directory Structure section.
Fayos is "FAcooYa Operating System"