Page 1 of 3

Bootloaders. How to create them?

Posted: Fri Dec 06, 2002 8:53 pm
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!

Re:Bootloaders. How do create them?

Posted: Sat Dec 07, 2002 6:59 am
by pskyboy

Re:Bootloaders. How do create them?

Posted: Sat Dec 07, 2002 10:11 am
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.

Re:Bootloaders. How to create them?

Posted: Sat Dec 07, 2002 10:57 am
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.

Re:Bootloaders. How to create them?

Posted: Sat Dec 07, 2002 8:02 pm
by jrfritz
The perfect beginner bootloader tutorial:

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

Re:Bootloaders. How to create them?

Posted: Sat Dec 07, 2002 8:23 pm
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.

Re:Bootloaders. How to create them?

Posted: Sat Dec 07, 2002 9:07 pm
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!

Re:Bootloaders. How to create them?

Posted: Sat Dec 07, 2002 9:10 pm
by jrfritz
Hmmm...did you disable the write protection on the floppy? ???

Re:Bootloaders. How to create them?

Posted: Sat Dec 07, 2002 9:15 pm
by tfurtado
Do you mean the write protection pin? If so, I didn't touch it when after I wrote the bootsector.

Re:Bootloaders. How to create them?

Posted: Sat Dec 07, 2002 9:22 pm
by jrfritz
I think your floppy is write protected. If not, try partcopy.

Re:Bootloaders. How to create them?

Posted: Sat Dec 07, 2002 9:23 pm
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

Re:Bootloaders. How to create them?

Posted: Sun Dec 08, 2002 12:52 pm
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.

Re:Bootloaders. How to create them?

Posted: Sun Dec 08, 2002 1:02 pm
by tfurtado
Ok..

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

Re:Bootloaders. How to create them?

Posted: Sun Dec 08, 2002 1:16 pm
by jrfritz
Yea...what do you need help with? ( are you talking to me, or asking about partcopy?)

Partcopy information

Posted: Sun Dec 08, 2002 4:25 pm
by Schol-R-LEA
Some information on using PartCopy can be found in this thread, reply #5.