flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Create an OS. Help me PLEASE! How do I create a boot disk?

Author
Thread Post new topic Reply to topic
simpaticool



Joined: 12 Jan 2005
Posts: 16
Location: Romania
simpaticool 12 Jan 2005, 09:00
Hi!
I first heard about Flat ASM when I saw MenuetOS.
I have created some programs in FASM.
Now I want to create an Operating System.
I want a tutorial about this problem.

How do i create a boot diskette?

Please help me!


Thanks!

simpaticool86@yahoo.com
Post 12 Jan 2005, 09:00
View user's profile Send private message Reply with quote
bogdanontanu



Joined: 07 Jan 2004
Posts: 403
Location: Sol. Earth. Europe. Romania. Bucuresti
bogdanontanu 12 Jan 2005, 10:15
Hi,

When the computer starts it attempts to read the first sector on a floppy.
If the first sector contains the 0x55AA hexa signature at byte 510, THEN the BIOS assumes that this diskette is bootable and it will load the first sector at address 7C00 (either 7C0:0000 or 0000:7C00) and it will jump to it ...

From here on you are on your own.

Until you get into protected mode you could still use help from the BIOS interupts. After you setup protected mode you will have to talk directly with each hardware.

There is scarse documentation about hardware, some is ok, some incomplete, some missleading and some wrong... you will have to know

There are a lot of boot sectors samples on the net and quite a few web sites that deal with making your own OS Alexei Frounze and others have some step by step tutorials .

If you have had problems finding this info using Google --. then my friend you are in big troubles because doing your own OS is not an easy ride and "Google skilz" are the lowest thing needed Razz

BTW I am Romanian also Razz

And i have made my own OS; so ask me decent questions and i will answer them.
Post 12 Jan 2005, 10:15
View user's profile Send private message Visit poster's website Reply with quote
bubach



Joined: 17 Sep 2004
Posts: 341
Location: Trollhättan, Sweden
bubach 12 Jan 2005, 12:54
check out the tutorials at: http://www.osdever.net/
Post 12 Jan 2005, 12:54
View user's profile Send private message Reply with quote
simpaticool



Joined: 12 Jan 2005
Posts: 16
Location: Romania
simpaticool 13 Jan 2005, 06:50
Thanks for helping me!
I'm glad that I'm not the only one who wants to create an OS
and that you really care about me Very Happy
Please privide me more information and, if you agree,
some source code of your own OS (in FASM)

BTW, if you are a Romanian, please talk with me in our language Very Happy
Post 13 Jan 2005, 06:50
View user's profile Send private message Reply with quote
bogdanontanu



Joined: 07 Jan 2004
Posts: 403
Location: Sol. Earth. Europe. Romania. Bucuresti
bogdanontanu 13 Jan 2005, 08:54
I prefer to talk in English as the world needs a single language and the official language of this board is English we can talk in Romainan via email if you feel the need.

Using Romanian here is pointless since no other guys would understand and it will just spam the board. You must understand that a message board is NOT for your own viewing pleasure but for others to read and understand also ...

You can contact me by email at:
bogdanontanu at yahoo dot com

The source code of my OS is freely available under the GPL licence here:
http://www.hostileencounter.com/os_main.html
in the downloads section, you can see screenshots also.

However i use TASM as my assembler as i like it better, so i have no version of my OS in FASM.

AFAIK pelailo works on translating it to FASM but i am unaware of his status or agenda


BTW to your surprise wanting to make his own OS is IMHO the most popular sport in the world today!

Well, after thinking that you are Napoleon Bonaparte or Jesus Christ or GOD himself... Razz so it is by no way a singular or original or easy attempt

As Randy pointed out most personal OSes finish up a little bit after the boot sector plus enabling multitasking and paging.

Toate cele bune Razz
Post 13 Jan 2005, 08:54
View user's profile Send private message Visit poster's website Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 13 Jan 2005, 11:45
My OS (RetroForth/Native) can be downloaded at http://www.retroforth.org/release/ It's not very big (less than 2,000 lines of assembly at last count), but provides a boot sector, drivers for keyboard, text screen, serial port, parallel port, hard drive, and a complete Forth compiler/interpreter in that space. I'm working on USB support and cooperative multitasking, but that work is still in the early stages.
Post 13 Jan 2005, 11:45
View user's profile Send private message Visit poster's website Reply with quote
bubach



Joined: 17 Sep 2004
Posts: 341
Location: Trollhättan, Sweden
bubach 15 Jan 2005, 14:05
you can get my source at: http://bos.asmhackers.net/


Last edited by bubach on 17 Feb 2005, 14:04; edited 1 time in total
Post 15 Jan 2005, 14:05
View user's profile Send private message Reply with quote
simpaticool



Joined: 12 Jan 2005
Posts: 16
Location: Romania
simpaticool 19 Jan 2005, 09:22
Thanks!
I have created a boot diskette.
The computer boots and then it prints:
" Welcome! Press any key to rebot ..."
Very Happy
It's very simple, but I'm very happy.
Now I'm going to create something like MS-DOS.

Thanks for your source codes and congratulations.
I hope one day I'll present you my OS.


BTW, I really like BIOS INTs Smile
Post 19 Jan 2005, 09:22
View user's profile Send private message Reply with quote
bubach



Joined: 17 Sep 2004
Posts: 341
Location: Trollhättan, Sweden
bubach 19 Jan 2005, 10:24
don't get to used to it if you plan to go 32-bit. Wink


Last edited by bubach on 13 Feb 2012, 15:42; edited 2 times in total
Post 19 Jan 2005, 10:24
View user's profile Send private message Reply with quote
simpaticool



Joined: 12 Jan 2005
Posts: 16
Location: Romania
simpaticool 02 Feb 2005, 08:05
bubach, what do u mean?
I can't use bios int in 32b mode?
Then how do i create an 32-bit OS?

btw ... please help me with some stuff:
1. mkdir, rmdir, and other stuff (FAT12)
2. ramdisk (like in MenuetOS)
3. !!! How do I load the kernel?
I have created the 512 bytes bootloader
This must load the kernel wich contains the commands and functions.
But how do i execute it? I know how to read from disk but I don't know
where (memory location) do I have tu put it and how to execute it. Thanks!


U are the greatest! Very Happy
Thanks again!
Post 02 Feb 2005, 08:05
View user's profile Send private message Reply with quote
simpaticool



Joined: 12 Jan 2005
Posts: 16
Location: Romania
simpaticool 10 Feb 2005, 06:46
Please help me!
Hello!
Am I dead?
PLEASE!
Crying or Very sad
Post 10 Feb 2005, 06:46
View user's profile Send private message Reply with quote
bubach



Joined: 17 Sep 2004
Posts: 341
Location: Trollhättan, Sweden
bubach 11 Feb 2005, 08:39
simpaticool wrote:
bubach, what do u mean?
I can't use bios int in 32b mode?
Then how do i create an 32-bit OS?


No, you cannot call 16-bit code in 32-bit mode. If you have to you can go back to 16-bit, make the call, and enter 32-bit again. But that is ugly.
For I/O in 32-bit you have to use the I/O ports directly.. Wink

Quote:
btw ... please help me with some stuff:
1. mkdir, rmdir, and other stuff (FAT12)
2. ramdisk (like in MenuetOS)
3. !!! How do I load the kernel?
I have created the 512 bytes bootloader
This must load the kernel wich contains the commands and functions.
But how do i execute it? I know how to read from disk but I don't know
where (memory location) do I have tu put it and how to execute it. Thanks!

First of all calm down, you sound like me when i was new to OS-dev... Laughing
Here's my tip for you to begin with:

Start by making a simple bootsector that simply load a couple of secors after the bootsector (don't care about the filsesystem yet), and maybe enter pmode in the bootsector aswell.

Good tutorials for this can be found at:
http://www.osdever.net/tutorials.php?cat=4&sort=1
(gregor brunmar and xosdev)

When you have the kernel loaded, start out by writing a couple of screen functions to scroll, print and move cursor.

That should keep you busy for the next couple of months or so.. Wink

/ Christoffer

_________________
BOS homepage: http://bos.asmhackers.net/
Post 11 Feb 2005, 08:39
View user's profile Send private message Reply with quote
simpaticool



Joined: 12 Jan 2005
Posts: 16
Location: Romania
simpaticool 17 Feb 2005, 07:16
Very Happy
ok
Post 17 Feb 2005, 07:16
View user's profile Send private message Reply with quote
bubach



Joined: 17 Sep 2004
Posts: 341
Location: Trollhättan, Sweden
bubach 17 Feb 2005, 14:06
OT & PS: PM me with the password you want..
Post 17 Feb 2005, 14:06
View user's profile Send private message Reply with quote
simpaticool



Joined: 12 Jan 2005
Posts: 16
Location: Romania
simpaticool 23 Feb 2005, 09:01
ok Very Happy
Post 23 Feb 2005, 09:01
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.