How to load the kernel from bootloader?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Vladaz

How to load the kernel from bootloader?

Post 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
Therx

Re:How to load the kernel from bootloader?

Post by Therx »

what filesystem are you using?

Pete
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:How to load the kernel from bootloader?

Post by bubach »

The FAT12.. thread may be nice reading?

/ Christoffer
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
Vladaz

Re:How to load the kernel from bootloader?

Post by Vladaz »

My bootloader and kernel are in floppy disk, so i thing that the filesystem is fat12, i think. Maybe i'am wrong?
AZZ

Re:How to load the kernel from bootloader?

Post 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!).
Vladaz

Re:How to load the kernel from bootloader?

Post by Vladaz »

Ok. But my question was - how to load kernel from bootloader?
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Re:How to load the kernel from bootloader?

Post by Neo »

you could try the FAT12 thread (as bubach said) which is here. I think that will have what you need.
Only Human
Vladaz

Re:How to load the kernel from bootloader?

Post 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?
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:How to load the kernel from bootloader?

Post 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?
Every good solution is obvious once you've found it.
Vladaz

Re:How to load the kernel from bootloader?

Post 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)
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:How to load the kernel from bootloader?

Post 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...
Every good solution is obvious once you've found it.
ASHLEY4

Re:How to load the kernel from bootloader?

Post 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.
Vladaz

Re:How to load the kernel from bootloader?

Post 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.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:How to load the kernel from bootloader?

Post by Solar »

Vladaz wrote: Still i can't understand how to load/boot/start my OS from my Bootloader.
Reading should help, damnit!

*PLONK*
Every good solution is obvious once you've found it.
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:How to load the kernel from bootloader?

Post 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*
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
Post Reply