how do you start your OS

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.
Post Reply
GLneo

how do you start your OS

Post by GLneo »

just felt like asking, and becouse there hasn't been a poll sence before i can remember ;)
Tora OS

Re:how do you start your OS

Post by Tora OS »

well back when i worked on the K OS project and had no clue what i was doing i made my own custom boot loader which sucked.


Now on my Tora OS project ive been using GRUB. Makes things a wee tad easier.
FlashBurn

Re:how do you start your OS

Post by FlashBurn »

I use my own bootloader (with 2nd stage) because I started with a bootloader for iso9660 and GRUB doesn?t support it. Another point is that I use a binary file for my kernel.
Kemp

Re:how do you start your OS

Post by Kemp »

I chose custom with 2nd stage, but it's really a three stage loader. Though with some of the things I'm going to put in the third stage it should probably be dubbed the kernel's 0th stage, lol
Warrior

Re:how do you start your OS

Post by Warrior »

GRUB.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re:how do you start your OS

Post by Brendan »

Hi,

I voted for "other" as I've got a 4 stage boot, where the first stage can be GRUB or a custom boot loader...

The basic idea is that the second stage is loaded at a fixed location and started in real mode (with the remainder of a boot image loaded at another fixed location). For GRUB there's an extra step - juggling things in memory and switching from protected mode back to real mode.

The boot sequence is:

- GRUB + post-GRUB fixups, or a native boot loader (DOS utility, boot sector)
- 16 bit setup/detection code, which may run seperate/optional boot menu code
- 32 bit (or eventually 64 bit) setup code (setup and enable paging)
- 32 bit (or eventually 64 bit) kernel setup driver (initialize the micro-kernel and kernel modules)
- a kernel (one of N, auto-selected from detected features)


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:how do you start your OS

Post by Solar »

Voted "GRUB" for my past project, will do custom 2-stage boot for my new approach, with the kernel binary itself capable of being GRUB-loaded as an alternative. (I.e., kernel.bin loaded either by custom code or GRUB, with the custom code being done for learning about such things and having full control over the machine for early debug.)
Every good solution is obvious once you've found it.
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Re:how do you start your OS

Post by Neo »

I intially started out with a custom first and second stage bootloader (was pretty good actually ;) ).
However I have been laying of the implementation stuff for a while now and soaking in the theory. When I do start out the next time I will try to use GRUB as a bootloader though.
Only Human
Dex4u

Re:how do you start your OS

Post by Dex4u »

I use "bootprog" as i like to keep things simple ;D .
Xardfir

Re:how do you start your OS

Post by Xardfir »

I use GRUB because it's generic and has been tested on a lot more platforms than I have access to.
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:how do you start your OS

Post by distantvoices »

GRUB

until middle of 2003 I've used my own custom boot loader, but then the kernel grew bigger and bigger and I approached Hassles and edges I didn't want to cope with anymore so I switched over - as of now, BlueIllusion boots happily with grub - be it from floppy be it from CDROM.
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:how do you start your OS

Post by Solar »

Actually, I changed my mind when I saw what a mess they are still making with GRUB 2. Killing off a perfectly good product in pre-1.0, redubbing it "legacy", lots of talks about changing the Multiboot specs...

New plan is to do YACL. Yet another chain-loaded OS. Bootsector for selecting boot partition, partition boot sector for locating and loading the kernel binary from filesystem.

A nice bonus is that you could still install GRUB and have it chainload my stage 2 code from the filesystem, instead of having to install it in the partition boot sector. ;)
Every good solution is obvious once you've found it.
Post Reply