Page 1 of 2

How to load the kernel from bootloader?

Posted: Sat Feb 28, 2004 3:53 pm
by Vladaz
Hi!
And again i have a problem ???
I don't know how to load my kernel from bootloader. Can somebody help me? Or do you know a manual about this?
Thanks

Re:How to load the kernel from bootloader?

Posted: Sat Feb 28, 2004 3:59 pm
by Therx
what filesystem are you using?

Pete

Re:How to load the kernel from bootloader?

Posted: Sat Feb 28, 2004 4:04 pm
by bubach
The FAT12.. thread may be nice reading?

/ Christoffer

Re:How to load the kernel from bootloader?

Posted: Sat Feb 28, 2004 4:18 pm
by Vladaz
My bootloader and kernel are in floppy disk, so i thing that the filesystem is fat12, i think. Maybe i'am wrong?

Re:How to load the kernel from bootloader?

Posted: Sat Feb 28, 2004 5:00 pm
by AZZ
If your runnin' win98 ^. Then you can go to win explorer and get the propities for A: (or other fd), the first screen tells the format. If you want, you can format it to Fat32 with Win98 ^ and possibly Linux (I'm a linux noobe!).

Re:How to load the kernel from bootloader?

Posted: Sat Feb 28, 2004 5:04 pm
by Vladaz
Ok. But my question was - how to load kernel from bootloader?

Re:How to load the kernel from bootloader?

Posted: Sun Feb 29, 2004 2:41 am
by Neo
you could try the FAT12 thread (as bubach said) which is here. I think that will have what you need.

Re:How to load the kernel from bootloader?

Posted: Sun Feb 29, 2004 5:48 am
by Vladaz
Hmm. I don't understand what they are talking in that thread ::)
Now i tell you what i realy want to do :)
I have a bootloader and a kernel. My bootloader and kernel is in floppy disk. I want that when my computer is turn on and floppy is in the floppy drive, to boot my kernel. But now it boots just my bootloader, because i don't know what i need to do to boot my kernel ??? . What i need to do or what i need to write, maybe in bootloader, to load/boot my kernel?

Re:How to load the kernel from bootloader?

Posted: Sun Feb 29, 2004 6:09 am
by Solar
Vladaz wrote: What i need to do or what i need to write, maybe in bootloader, to load/boot my kernel?
First, you have to know what filesystem you are using.

Second, you have to know how to find your kernel on that filesystem. Either your bootloader understands enough of the filesystem to locate the kernel file by name, or you need to feed it "hardcoded" information, e.g. a sector list.

Third, you have to write disk-access code into your bootloader that loads the kernel into memory, and starts executing that kernel.

This leaves two questions unanswered:

1) What does your bootloader do, if it doesn't load the kernel?

2) Why haven't you read the "Quick Links - Read this before you post" thread, or the FAQ, or the "How to ask questions" thread?

Re:How to load the kernel from bootloader?

Posted: Sun Feb 29, 2004 7:08 am
by Vladaz
Hmm. So what disk-access code must to be? What i need to write? Do you know manuals about it or where to get that code(be good if that code would be with comments) 8)

Re:How to load the kernel from bootloader?

Posted: Sun Feb 29, 2004 8:00 am
by Solar
Vladaz, you don't even realize how you come across, do you?

One, my post contains all the relevant links. Just follow 'em.

Two, next time please do not open *two* threads on a topic...

Re:How to load the kernel from bootloader?

Posted: Sun Feb 29, 2004 10:06 am
by ASHLEY4
Hi
The best think you can do is !!!!!!!!!!!!!!!!! go to this site

http://alexfru.chat.ru/epm.html

And get bootprog.zip,this loads a com or exe file from the floppy disk. so all you after do is make a com or exe, and call it kernel16.exe and it will load it for you.
It has nasm code ,so you can co see how it's done !.

PS. Do not use any dos int's.

ASHLEY4.

Re:How to load the kernel from bootloader?

Posted: Sun Feb 29, 2004 11:56 am
by Vladaz
Still i can't understand how to load/boot/start my OS from my Bootloader.
I have two files: bootloader.bin and kernel.bin
How can I start kernel.bin?
I need that when my bootloader.bin boots, then kernel.bin loads too. I'am using DJGPP and NASM on Windows XP(if it help something). Somebody, who can help me and tell me what code i need to write, to boot kernel.bin from bootloader.bin.

Re:How to load the kernel from bootloader?

Posted: Sun Feb 29, 2004 12:02 pm
by Solar
Vladaz wrote: Still i can't understand how to load/boot/start my OS from my Bootloader.
Reading should help, damnit!

*PLONK*

Re:How to load the kernel from bootloader?

Posted: Sun Feb 29, 2004 1:34 pm
by distantvoices
Solar, don't loose contenance with this special noob here.

Keep easy, hm? He will learn it soon enough, won't he?

*plonk* have you dared to smash your forehead onto the keyboard? such a sound sound of hurt ... *whamouchplonkaaaaauuuwww*