Bootloaders. How to create them?

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.
tfurtado

Bootloaders. How to create them?

Post by tfurtado »

Hi people!
I want to create a bootloader for my starting new OS.
If you could give me tips about its creation, I will be very glad.
I want to know about file systems too. Tell about them please.
If you know where can I find GOOD tutorials about OS Dev and Assembly language, put the address here, please.

Thanks!
Tim

Re:Bootloaders. How do create them?

Post by Tim »

Here's the usual response to somebody learning boot loaders:

Don't bother learning how to write a boot loader. Use some other boot loader (e.g. GRUB) and learn how to write a good OS instead. Then you can write your own boot loader later, when you know a lot more.
tfurtado

Re:Bootloaders. How to create them?

Post by tfurtado »

Thanks Tim Robinson!

So I need to know the basic steps on creating a VERY simple kernel.
I want to know the steps I need to make to getting it working.
I need to know how to use my kernel with others bootloaders.

Thanks for any help.
jrfritz

Re:Bootloaders. How to create them?

Post by jrfritz »

The perfect beginner bootloader tutorial:

http://www.nondot.org/sabre/os/files/Booting/nasmBoot.txt
jrfritz

Re:Bootloaders. How to create them?

Post by jrfritz »

You can test making your kernel with using my bootsector. It's simple:

write bootsector's boot.bin to bootsector. Put your C kernel after the 1'st sector.
tfurtado

Re:Bootloaders. How to create them?

Post by tfurtado »

Thank you very much for the tutorial! It was very usefull! Now I can write a little bootloader.

Tom, I need to know how to put anything beyond the 1st sector. When I try to do this using debug, I get an error message (write protection).

I must know about filesystems too. Is usefull to create one?

Any help is welcome!
jrfritz

Re:Bootloaders. How to create them?

Post by jrfritz »

Hmmm...did you disable the write protection on the floppy? ???
tfurtado

Re:Bootloaders. How to create them?

Post by tfurtado »

Do you mean the write protection pin? If so, I didn't touch it when after I wrote the bootsector.
jrfritz

Re:Bootloaders. How to create them?

Post by jrfritz »

I think your floppy is write protected. If not, try partcopy.
tfurtado

Re:Bootloaders. How to create them?

Post by tfurtado »

Can you teach me how to use partcopy?
(I'm a completely newbie to this subject..)

If you have ICQ, we can communicate faster.
My number: 101210221
jrfritz

Re:Bootloaders. How to create them?

Post by jrfritz »

I don't know how to use partcopy. I use linux for development, not Windows or DOS.

Berserk, or someone else here uses partcopy.
tfurtado

Re:Bootloaders. How to create them?

Post by tfurtado »

Ok..

I need help doing my kernel. Can you help in the topics I need?
jrfritz

Re:Bootloaders. How to create them?

Post by jrfritz »

Yea...what do you need help with? ( are you talking to me, or asking about partcopy?)
Schol-R-LEA

Partcopy information

Post by Schol-R-LEA »

Some information on using PartCopy can be found in this thread, reply #5.
Post Reply