Need Help in making my own kernel
Posted: Mon Aug 27, 2007 2:55 am
Hi,
I am trying to develop my own kernel. I am a newbee in kernel programming, so i am taking help of one of the article on Bona Fide OS Development, http://www.osdever.net/bkerndev/index.php. For your information, I am using Fedora Core 1 for development. The rest is same i.e gcc, nasm etc...
I am following the article step by step and building and booting the kernel as soon as I finish up one step to see if everything is going fine. So, when I first created the start.asm and link.ld and build the kernel, it all worked fine. When I created the main.c, called it from start.asm and booted this kernel it gave me a problem. The error was something like this:
[Multiboot-kludge, load_addr = 0x100000....
Error 13: Invalid or unsupported file format
I am not getting why this problem is coming as I have done everything exactly as mentioned in that article. I tried searching on google but could not find anything relevant. If anyone wants to check my code, then you can check it out at:
kernel.asm: http://www.slexy.org/paste/4324
link.ld: http://www.slexy.org/paste/4325
main.c: http://www.slexy.org/paste/4326
system.h: http://www.slexy.org/paste/4327
I will really be thankful if you can help me out that where exactly I am doing wrong.
I am trying to develop my own kernel. I am a newbee in kernel programming, so i am taking help of one of the article on Bona Fide OS Development, http://www.osdever.net/bkerndev/index.php. For your information, I am using Fedora Core 1 for development. The rest is same i.e gcc, nasm etc...
I am following the article step by step and building and booting the kernel as soon as I finish up one step to see if everything is going fine. So, when I first created the start.asm and link.ld and build the kernel, it all worked fine. When I created the main.c, called it from start.asm and booted this kernel it gave me a problem. The error was something like this:
[Multiboot-kludge, load_addr = 0x100000....
Error 13: Invalid or unsupported file format
I am not getting why this problem is coming as I have done everything exactly as mentioned in that article. I tried searching on google but could not find anything relevant. If anyone wants to check my code, then you can check it out at:
kernel.asm: http://www.slexy.org/paste/4324
link.ld: http://www.slexy.org/paste/4325
main.c: http://www.slexy.org/paste/4326
system.h: http://www.slexy.org/paste/4327
I will really be thankful if you can help me out that where exactly I am doing wrong.