Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. How to create / use a simple bootloader

How to create / use a simple bootloader

Scheduled Pinned Locked Moved System Admin
tutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ashish Kaila
    wrote on last edited by
    #1

    Hello, I am trying to make a small OS as a hobby. But I am not sure how can I code / use (and which one) a bootloader that transfers control over to my kernel. Can anyone guide me / suggest a simple bootloader with an example of kernel control handover ? Thanks Ashish

    H R T 3 Replies Last reply
    0
    • A Ashish Kaila

      Hello, I am trying to make a small OS as a hobby. But I am not sure how can I code / use (and which one) a bootloader that transfers control over to my kernel. Can anyone guide me / suggest a simple bootloader with an example of kernel control handover ? Thanks Ashish

      H Offline
      H Offline
      hauptman
      wrote on last edited by
      #2

      What about http://www.osdev.org/?

      1 Reply Last reply
      0
      • A Ashish Kaila

        Hello, I am trying to make a small OS as a hobby. But I am not sure how can I code / use (and which one) a bootloader that transfers control over to my kernel. Can anyone guide me / suggest a simple bootloader with an example of kernel control handover ? Thanks Ashish

        R Offline
        R Offline
        raouls
        wrote on last edited by
        #3

        also, check out grub and lilo, the linux bootloaders. since they're open source, you can look at their code, and probably get advice from their authors too. -- Raoul Snyman Saturn Laboratories e-mail: raoul.snyman@saturnlaboratories.co.za web: http://www.saturnlaboratories.co.za/ blog: http://blog.saturnlaboratories.co.za/ linux user: #333298

        1 Reply Last reply
        0
        • A Ashish Kaila

          Hello, I am trying to make a small OS as a hobby. But I am not sure how can I code / use (and which one) a bootloader that transfers control over to my kernel. Can anyone guide me / suggest a simple bootloader with an example of kernel control handover ? Thanks Ashish

          T Offline
          T Offline
          TOMCAT81
          wrote on last edited by
          #4

          Hi, You are confusing between boot-loader & OS. (1) Bootloader is the initial stage program which will ultimately load final OS. It is of fixed size(512 bytes). But if your boot-loader goes beyond this size you can cut this in pieces leaving the intent of bootloader intact. Boot -loader is basically written in assembly(8086 or higher). (2) Os is....you know what it is. So once you power ON your system; it will perform normal BIOS routines & then cheks for boot sequence. According to boot sequence it will verify first sector (512 bytes)for validity & if it is valid it will load that sector in RAM. And later pass control to it. Here starts the job of boot-loader which should take care of loading all imp files reqd for loading OS ultimately. if you have more doubts feel free to contact me.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups