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

Re:Bootloaders. How to create them?

Post by Mr_Spam »

i get the same error with debug. I can either write to sector 1, or sector 2, but not both
tfurtado

Re:Bootloaders. How to create them?

Post by tfurtado »

Thanks to you all!

Please, I want to start my kernel but I don't know where to do it.
Please, tell me in few lines what kind of things the kernel should do and what should I do to start the creation of my kernel.

Thanks for helping on PartCopy.

Bye!
Mr_Spam

Re:Bootloaders. How to create them?

Post by Mr_Spam »

kernals handle necsassary system proccesses. but to start, its hard enough to write one that just displays "hello" the screen and build form there
jrfritz

Re:Bootloaders. How to create them?

Post by jrfritz »

It is easier to use someone elses code as example. Frank helped me.
tfurtado

Re:Bootloaders. How to create them?

Post by tfurtado »

I don't know much assembly.
I want to create a kernel using C (mixing with ASM, if necessary). Please, I want to know how to create a simple kernel (just to display a message, for instance) and how to load it (I'm using windows).

Any help is welcome!
jrfritz

Re:Bootloaders. How to create them?

Post by jrfritz »

Well:

Just include my fstdio file.

Compile with DGJPP and NASM.

Use partcopy.

PlayOS shows how to do this in "Where do I start?", somewhere hidden in 8 pages. :o

I want to add Windows support and compiling information....but i've got alot of other stuff to do...
tfurtado

Re:Bootloaders. How to create them?

Post by tfurtado »

I may seem to be a completely stupid, but if someone could, I'd like to see posted here a list of the steps to start making a kernel.
And Tom, if you could show me your code, I'd be glad.
If someone have GOOD address for absolute AMATEURS (me), I'd be very thankful.

Thanks for your help. You're helping me so much!
P.S.: I want to know where can I find a good bootloader, easy to use that runs in Windows.

Bye..
jrfritz

Re:Bootloaders. How to create them?

Post by jrfritz »

[attachment deleted by admin]
tfurtado

Re:Bootloaders. How to create them?

Post by tfurtado »

My OS isn't running yet, since it has nothing ;)
I need the BASIC steps to start making my kernel runs. I need to know were to pick up and how to make grub works.
Then I could think in starting my kernel.

If someone could help my, I'd be glad!

Bye!
jrfritz

Re:Bootloaders. How to create them?

Post by jrfritz »

Hmm...you just make a flat binary of the code I made...and put it on a floppy.

Use the prinf function I put in FritzOS. You don't need to make one...use mine.
tfurtado

Re:Bootloaders. How to create them?

Post by tfurtado »

Thanks Tom!

I'll do this, but I'll try to understand the code and if I couldn't understand something, I'll ask you for help, ok?

Bye!
jrfritz

Re:Bootloaders. How to create them?

Post by jrfritz »

Ok.

Also...I'm making a DOS installer...so it'll be easier!
tfurtado

Re:Bootloaders. How to create them?

Post by tfurtado »

Ok!

When it's done, post it here.
I can't write the 'boot.img' to the floppy disk using partcopy...

I'll wait for the DOS installer.

Bye!
jrfritz

Re:Bootloaders. How to create them?

Post by jrfritz »

:-\ My DOS installer will use partcopy. Is there something wrong with your drive? Show me the partcopy command line and the error you get.
tfurtado

Re:Bootloaders. How to create them?

Post by tfurtado »

Command line:
partcopy boot.img 0 41200 -f0

Error:
I don't remember the exact error message, but it tells that it was not possible to write to offset 0 of the floppy drive. If I change the lenght of boot.img to 200 (only the bootsector), it works right...
If you can understand what's happening, tell me please.

Bye!
Post Reply