Write a Simple Operating System-for beginners.

Puvaneswaran Sajeesan
2 min readJul 26, 2020

First of all, If you have no idea about Operating system then try to refer this Website to get some fundamental knowledge about OS.

Before we start to talk about our simple operating system read the Tutorial written on JOSH by Dr. Mohan Raj Dhanagopal and fully understand its code. because most of the making of the operating system is based on this material.

myOS is a simple operating system to display information of the main hardware components of a computer. This operating System has been created by modifying the JOSH operating system which has been referred in above materiel.

The main requirements to develop this OS is using Ubuntu. Because using an open operating system is far more easier in this case. if you only have windows OS in your computer then you can dual boot Ubuntu using USB or you can use virtual box to use Ubuntu. The other main requirements are QEMU emulator and NASM assembler.

Enter the below code to install QEMU emulator and NASM assembler into Ubuntu:

sudo apt-get install build-essential qemu nasm

IF you still miss the qemu emulator then try this code to install qemu emulator into ubuntu:

sudo apt install qemu-system-x86

I hope you now you have some knowledge about OS. So,When you are referring the JOSH operating system to create a new one then you don’t need to change anything in the boot.asm file.

Boot loaders are used to boot other operating systems but usually each operating systems have their own specified boot loaders. So, the boot loader handles the loading part of the kernel to the memory. Kernel is the core of an operating system.

When you are running your OS use .sh file which is used in MIKEOS to convert the boot loader and kernel into image files. It will make your process more easier. So after you installed Qemu and nasm use the below code to run the .sh file:

sudo bash ./filename.sh

By doing this now the binary files for both kernel and boot assembly files will be created automatically. So now everything has been set And the System is ready to Run. To run the qemu load the flp file by using this code:

qemu-system-1386 -fda ./Disk_images/myOS.flp
note :- Disk_images is the folder where myOS.flp is.

Now you can Do your operations which predefined in the Kernel assembly file. This is the very simple operating system to get the details of tha main computer hardware components. i have attached my Simple operating System So you can get any ideas about your own operating system

This is my simple operating System which has been uploaded in GitHub. So i hope this was helpful for you to write your own operating System.

THANK YOU

--

--

Puvaneswaran Sajeesan

undergraduate Software Engineering student at University of kelaniya.