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.
I think i know what he wants, but he just wont listen to us..
In the FAT12.. thread we have a bootsector that loads a second stage loader, and in that second stage loader it loads the kernel.. FFS... All the things he need!
vladaz, oh ye sinner, wilt thou forfeit some thoughts on that thing?
Nah, askin' questions is the eeeeasy way, but No, No, No, you will not get it spoon fed. I for one 've had to *learn* it by myself. It 'd have ashamed me to ask for info which can be researched.
just a fact:
you don't need a file system to load a kernel ... if you wrote your kernel so that it start on sector X and is N sectors-wide, you just have to read sectors X through X+N using the BIOS so that they go to the kernel's favourite location.
Ok! I have the answer to my question, i think ;D .
I needed to load the kernel to memory from bootloader. One guy told me the manual about it. Thanks for help!
Hmm. Now i have another problem ??? .
I have two files: bootsec.bin and kernel.bin .
bootsec.bin load kernel.bin to memory and execute.
But when i copy bootsec.bin to my floppy disk by partcopy bootsec.bin 0 200 -f0
and kernel.bin by partcopy kernel.bin 200 200 -f0
, then my bootloader(bootsec.bin) doesn't boots on my emulator. But when i copy only bootsec.bin, then it writes "Booting Blablabla OS......".
So how i need to copy those two files into floppy to work my OS without any errors?
Vladaz wrote:
and kernel.bin by partcopy kernel.bin 200 200 -f0
, then my bootloader(bootsec.bin) doesn't boots on my emulator.
i think you want partcopy kernel.bin 0 200 -f0 200 to write the kernel to the second sector. you cant write the file from source_offset 0x200 as you have.
Read the partcopy documentation you have for further details.