New to OS development
New to OS development
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.
-troy
kanagawa-os.com/project.
- BrightLight
- Member
- Posts: 901
- Joined: Sat Dec 27, 2014 9:11 am
- Location: Maadi, Cairo, Egypt
- Contact:
Re: znew to OS development
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.
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.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
Re: New to OS development
Follow http://wiki.osdev.org/Bare_Bones. It's our standard tutorial.
Re: znew to OS development
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.omarrx024 wrote:Which compiler you're using doesn't matter.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
- Alan Kay
-
- Member
- Posts: 51
- Joined: Sun Mar 01, 2015 7:58 am
Re: New to OS development
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 )
- BrightLight
- Member
- Posts: 901
- Joined: Sat Dec 27, 2014 9:11 am
- Location: Maadi, Cairo, Egypt
- Contact:
Re: znew to OS development
Yes we should use a cross-compiler. Oh, and from the Wiki: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.
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
You know your OS is advanced when you stop using the Intel programming guide as a reference.
Re: znew to OS development
Load, but not prepare. GRUB won't magically do relocation for an unknown format, I guess.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
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
- Alan Kay
- BrightLight
- Member
- Posts: 901
- Joined: Sat Dec 27, 2014 9:11 am
- Location: Maadi, Cairo, Egypt
- Contact:
Re: znew to OS development
It won't relocate, but it will execute. Anyways, most kernels will start at 0x100000.Roman wrote:Load, but not prepare. GRUB won't magically do relocation for an unknown format, I guess.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
Re: New to OS development
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
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
-
- Member
- Posts: 51
- Joined: Sun Mar 01, 2015 7:58 am
Re: New to OS development
Hey, there are three 14 years old kids, I am 14 years old too )
Re: New to OS development
There are four.TheLittleWho wrote:Hey, there are three 14 years old kids, I am 14 years old too )
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
- Alan Kay
Re: New to OS development
Now, five.Roman wrote: There are four.
Re: New to OS development
Six.muazzam wrote: Now, five.
"for example, turning off the system’s power through the movement of a large red switch" - the Advanced Configuration and Power Interface Specification
Re: New to OS development
I'm 15 now. Why did I have to age? Oh, right; because I'm not Ash from pokemon.