Page 2 of 3
Re:Bootloaders. How to create them?
Posted: Sun Dec 08, 2002 4:39 pm
by Mr_Spam
i get the same error with debug. I can either write to sector 1, or sector 2, but not both
Re:Bootloaders. How to create them?
Posted: Sun Dec 08, 2002 6:04 pm
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!
Re:Bootloaders. How to create them?
Posted: Sun Dec 08, 2002 6:51 pm
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
Re:Bootloaders. How to create them?
Posted: Sun Dec 08, 2002 7:29 pm
by jrfritz
It is easier to use someone elses code as example. Frank helped me.
Re:Bootloaders. How to create them?
Posted: Tue Dec 10, 2002 5:13 am
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!
Re:Bootloaders. How to create them?
Posted: Tue Dec 10, 2002 8:16 am
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.
I want to add Windows support and compiling information....but i've got alot of other stuff to do...
Re:Bootloaders. How to create them?
Posted: Tue Dec 10, 2002 3:28 pm
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..
Re:Bootloaders. How to create them?
Posted: Tue Dec 10, 2002 6:19 pm
by jrfritz
[attachment deleted by admin]
Re:Bootloaders. How to create them?
Posted: Wed Dec 11, 2002 9:47 pm
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!
Re:Bootloaders. How to create them?
Posted: Wed Dec 11, 2002 10:22 pm
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.
Re:Bootloaders. How to create them?
Posted: Wed Dec 11, 2002 11:07 pm
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!
Re:Bootloaders. How to create them?
Posted: Thu Dec 12, 2002 10:09 am
by jrfritz
Ok.
Also...I'm making a DOS installer...so it'll be easier!
Re:Bootloaders. How to create them?
Posted: Thu Dec 12, 2002 8:36 pm
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!
Re:Bootloaders. How to create them?
Posted: Thu Dec 12, 2002 9:03 pm
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.
Re:Bootloaders. How to create them?
Posted: Fri Dec 13, 2002 10:14 am
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!