Build Your Own OS

sudo apt-get install build-essential nasm genisoimage bochs bochs-sdl
nasm -f elf32 loader.s
ld -T link.ld -melf_i386 loader.o -o kernel.elf
    mkdir -p iso/boot/grub 
cp stage2_eltorito iso/boot/grub/
cp kernel.elf iso/boot/
    genisoimage -R                              \
-b boot/grub/stage2_eltorito \
-no-emul-boot \
-boot-load-size 4 \
-A os \
-input-charset utf8 \
-quiet \
-boot-info-table \
-o baseOS.iso \
bochs -f bochsrc.txt -q
cat bochslog.txt




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Access SQS with AWS SDK for Python (Boto3) from EC2

Distributed Systems

Web services

Recursion: to the end of the stack, and back-

The benefits of visualizing test automation

Keeping Files in Sync with S3 and AWS CLI Tools

But I’m not a coder!

Optimistic vs. Pessimistic locking in Rails

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Niroshan Pushparaj

Niroshan Pushparaj

More from Medium

GitHub: Forking Repositories & Sending Pull Requests

How to develop your own application?

CS373 Spring 2022: Nathan Gates Week 3

NaXum CEO, Ben Dixon Explores Loyalty Rewards Programs