Page 1 of 2
New to OS development
Posted: Fri Apr 03, 2015 1:09 pm
by Troy
Hi my name is Troy, I'm 14 years old and have been trying to make my own os. Its been quite difficult, but so far its going well. We have a kernel that compiles, but, my issue is, how do I get it to boot? i know it will work, but we would like to use grub. And every time I compile, it turns into a obj file. I am using Bloodshed dev-c++. How do I correct this problem? I would like a different format. I also tried the one on osdev.org with the linker.ld but that didnt work because i have a 64bit PC. All help would be appreicated.
-troy
kanagawa-os.com/project.
Re: znew to OS development
Posted: Fri Apr 03, 2015 1:43 pm
by BrightLight
It's nice to see other OS developer who is also 14 years old.
To get your kernel to boot with GRUB, you need to create the multiboot header somewhere in the first 8 KB of your kernel. Which compiler you're using doesn't matter. GRUB can boot any file with a valid multiboot header.
Re: New to OS development
Posted: Fri Apr 03, 2015 3:25 pm
by sortie
Follow
http://wiki.osdev.org/Bare_Bones. It's our standard tutorial.
Re: znew to OS development
Posted: Fri Apr 03, 2015 3:26 pm
by Roman
omarrx024 wrote:Which compiler you're using doesn't matter.
A cross-compiler is recommended, and I don't think, that GRUB can load anything with just a header, because some file formats need specific setup.
Re: New to OS development
Posted: Fri Apr 03, 2015 11:46 pm
by TheLittleWho
Follow Bare Bones from wiki and you will get a boot-able kernel... Don't forget to configure a cross compiler... If you have a problem, you can here, there is a lot of people that can help you... But before post anything here, a Google Search can be magical
)
Re: znew to OS development
Posted: Sat Apr 04, 2015 2:17 am
by BrightLight
Roman wrote:A cross-compiler is recommended, and I don't think, that GRUB can load anything with just a header, because some file formats need specific setup.
Yes we should use a cross-compiler. Oh, and from the Wiki:
GRUB ... can load kernels in various binary formats, including "generic" ELF, FreeBSD a.out, flat binary, and "generic" executables (any file with a valid Multiboot header). -
GRUB
Re: znew to OS development
Posted: Sat Apr 04, 2015 4:37 am
by Roman
omarrx024 wrote:Oh, and from the Wiki:
GRUB ... can load kernels in various binary formats, including "generic" ELF, FreeBSD a.out, flat binary, and "generic" executables (any file with a valid Multiboot header). -
GRUB
Load, but not prepare. GRUB won't magically do relocation for an unknown format, I guess.
Re: znew to OS development
Posted: Sat Apr 04, 2015 4:59 am
by BrightLight
Roman wrote:Load, but not prepare. GRUB won't magically do relocation for an unknown format, I guess.
It won't relocate, but it will execute. Anyways, most kernels will start at 0x100000.
Re: New to OS development
Posted: Tue Apr 07, 2015 11:25 pm
by mac
Hehe, I'm 23, I am not experienced enough for OsDev yet, but seeing two 14 year olds being able to OsDev gives me hope.
I wanted to program since I was your age, but I was making up excuses back then, until the internet was able to give me free resources (thanks
Re: New to OS development
Posted: Wed Apr 08, 2015 12:22 pm
by TheLittleWho
Hey, there are three 14 years old kids, I am 14 years old too
)
Re: New to OS development
Posted: Wed Apr 08, 2015 5:36 pm
by Troy
Thank you very much
Re: New to OS development
Posted: Thu Apr 09, 2015 12:23 am
by Roman
TheLittleWho wrote:Hey, there are three 14 years old kids, I am 14 years old too
)
There are four.
Re: New to OS development
Posted: Thu Apr 09, 2015 4:49 am
by Muazzam
Roman wrote:
There are four.
Now, five.
Re: New to OS development
Posted: Thu Apr 09, 2015 5:12 am
by bace
muazzam wrote:
Now, five.
Six.
Re: New to OS development
Posted: Thu Apr 09, 2015 5:23 am
by Coomer69
I'm 15 now. Why did I have to age? Oh, right; because I'm not Ash from pokemon.