BetaArchive Logo
Total Current Archive Size: 4765.54GB in 15409 files
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 12d, 9h, 15m | CPU: 19% | MEM: 5460MB of 12279MB used
{The community for beta collectors}

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPost subject: [How to] Project/design bootloader        Posted: Sun Apr 22, 2012 7:17 pm 
Amateur Beta Collector
Amateur Beta Collector
Offline

Joined
Thu Apr 19, 2012 7:18 am

Posts
88

Location
The Democratic People's Republic of Korea

Favourite OS
ArchLinux GNU/Linux distro
Hi BA!

Now I'll show you how to design/project (not write!) bootloader.

1. You need to think in which language you'll write it. I recommend Assembler.

2. Now, think - do you want one stage, very simple bootloader - or - two staged.

Look:
Onestage:
  • Bootloader starts
  • Looking for partitions
  • Loading kernel

Onestage bootloader can't have graphical GUI, but twostaged can.

Twostaged:
  • Bootloader starts
  • Searches for stage 2 or stage 1.5
  • Loads it
  • Stage 1.5 loads stage 2 from HDD (OPTIONAL/Like in GRUB)
  • Stage 2 loads GUI etc.

Stage 1 is written at sector 0; stage 1.5 is written (in GRUB) after sector 0, but before the partition table start.

Windows Bootloader is twostaged, but it has stage 2 on partition.

3. You should think about the FS you will implement, for beginners I recommend FAT12.

4. Now you should code it ;)

_________________
Nothing.


Top  Profile
 PostPost subject: Re: [How to] Project/design bootloader        Posted: Mon Apr 23, 2012 2:48 pm 
Guru Beta Collector
Guru Beta Collector
Offline

Joined
Wed Apr 27, 2011 11:21 am

Posts
612

Location
Home Sweet Home

Favourite OS
9200
Useful post! :)

_________________
Goodbye.

Last edited by prayaas1998 on Sun Jun 31, 2012 13:65 am, edited ∞ times in total.


Top  Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 




Who is online

Users browsing this forum: tarlabnor and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2013

 

Sitemap | XML | RSS