flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Operating System Kernel questions

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
Quote:

Are there any tutorials out there can explain the entire process step by step?

Well, it's sort of trivial - "use the right BIOS interrupts to load the kernel off the boot drive in the proper way".

BIOS interrupts would usually be int 13h but there are extensions.
I can't remember where the boot drive is stored, look for osdev articles.
The proper way depends on how your disk is prepared - most people will start with a raw disk or fat12/fat16.

Quote:

but I'm afraid that I do not know if this is the correct way to do it.

man dd Smile
Or, alternatively, you could copy bootsector+kernel to one file, and dd that.

http://www.nondot.org/sabre/os/articles
http://my.execpc.com/~geezer/osd/index.htm
Post 10 Feb 2005, 01:42
View user's profile Send private message Visit poster's website Reply with quote
jeffwilson



Joined: 06 Feb 2005
Posts: 10
jeffwilson
Hello f0dder. Smile

I am currently using dd ti copy my bootsector to the first sector of the floppy disk, and then having it copy my kernel to the second sector (of course, it is not limited to only one sector. Wink)

I am still playing around with reading floppy sectors; I have gotten a few methods that reproduce some results, and some that produce no results at all, but not yet have I found the desired result. I know I will get there; I always do after I piddle around for a bit. Razz

-Jeff
Post 10 Feb 2005, 02:01
View user's profile Send private message Reply with quote
bubach



Joined: 17 Sep 2004
Posts: 340
Location: Trollhättan, Sweden
bubach
http://www.osdever.net/
and http://mega-tokyo.com/osfaq2/
has much nice info for the beginner.

On osdever, check out gregor brunmar's and the first xosdev tutorials (http://www.osdever.net/tutorials.php?cat=4&sort=1).

The xosdev tutorial contains info on how to load a couple of sectors of the floppy right after the bootsector (no filesystem). It can be a good way to practice.

/ Christoffer
Post 11 Feb 2005, 08:30
View user's profile Send private message Reply with quote
jeffwilson



Joined: 06 Feb 2005
Posts: 10
jeffwilson
Those tutorials are quite helpful - thanks a lot. I have quite a bit of reading to do. Wink

-Jeff
Post 12 Feb 2005, 14:00
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< 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-2020, Tomasz Grysztar.

Powered by rwasa.