Yahoo Answers is shutting down on 4 May 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

LeLuke
Lv 5
LeLuke asked in Computers & InternetSoftware · 4 years ago

Question about bootloader program?

I'm trying to write an operating system from scratch, including the bootloader.

I don't want to here how hard or tedious it may be. If it takes a long and complicated explanation, then give a long and complicated explanation.

I'm aware of the startup process and know assembly language, C and C++. The computer turns on, and then the UEFI gets loaded into the CPU. Then the computer runs the Power On Self Test, and then the computer starts searching for bootloader programs from boot sectors in storage devices. Storage devices can be a HDD, SSD, floppy, or even a flashdrive. I'm also aware that that the bootloader program has a specific signature, must be exactly 512 bytes in size and contain the location for the OS's kernel.

I'm confused as to how to actually store the bootloader program on the boot sector of the selected storage device. How do you control which sector in your storage device the file gets saved?

1 Answer

Relevance
  • ?
    Lv 7
    4 years ago

    Serious answer. If you're having to ask here, you do not possess the skill or knowledge to do any of this.

    Find a new hobby.

Still have questions? Get answers by asking now.