← Back to list

Simple Operating System- NR_OS

I have created the simple operating system called NR_OS for the educational purpose. It will display the basic hardware information of the…

Niroshan Rajh · 2020-07-24 18:28 · 1 claps · 1.2 min read
#nro #how-to-create-os
Open on Medium ↗
Wiki topics: EDU · Education & Learning 💭 · Philosophy of Spirit

Simple Operating System- NR_OS

NR_OS

NR_OS

I have created the simple operating system called NR_OS for the educational purpose. It will display the basic hardware information of the computer system. The OS is created by modifying the JOSH operating system which is also an operating system for educational purpose.

To implement this operating system a basic understanding of some functions and operations in assembly language is needed. The final OS can be viewed in virtual box as well as in QEMU emulator. Also a compiler named nasm is needed sometimes, for compiling.To install both of them in Ubuntu:

sudo apt-get install build-essential qemu nasm

I created the kernel.asm using the basic functions and operations provided by the JOSH OS tutorial. Then added the relevant assembly codes for displaying the hardware information. Those things were obtained from the reference materials provided.

For booting the Operating System a bootloader program is needed and i used the same bootload.asm from the JOSH without any modifications. The OS is booted from the floppy image. This can be created manually. But I used the image from the OS named MikeOS. For manually creating, run the below code

mkdosfs -C mikeos.flp 144

Finally for compiling the program, it can be compiled using the compiler. But I used the build-linux.sh from MikeOS which makes it more easier for compiling it. There should be some modifications to be done in the file for making it compact with out OS.

Compiling the program

sudo bash ./build-linux.sh

Running the QEMU emulator

qemu-system-i386 -fda ./disk_images/mikeos.flp

Source Code:NR_OS


메타데이터
post_id
e017fa2aea7
slug
simple-operating-system-nr-os-e017fa2aea7
url
https://medium.com/@nnirosh448/simple-operating-system-nr-os-e017fa2aea7
canonical_url
https://medium.com/@nnirosh448/simple-operating-system-nr-os-e017fa2aea7
author_url
https://medium.com/@nnirosh448
status
ok
fetched_at
2026-06-21 09:28:28