Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Operating System Bootloader

License

NotificationsYou must be signed in to change notification settings

MikeLankamp/osldr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osldr is a stage-2 bootloader for x86 machines (from i386 and up) that is able to boot operating systems from files in the ELF, PE/COFF, Multiboot 1 formats, or directly from disk by loading a bootsector. It only supports the FAT file format for reading from disks. It features an editable boot.ini file and a boot menu where the user can select one of the configured operating systems.

Prerequisites

  • Before building, please make suregcc and GNU binutils (as andld) are installed. No other compilers or toolchains have been tested.
  • If building on a 64-bit operating system, please make sure a 32-bitlibgcc is available, e.g. by doingapt-get install gcc-multilib.

Building

To build, runcmake andmake:

mkdir buildcd buildcmake ..make

Running

Take theosldr raw binary produced in the build and place it in the root directory of a FAT-formatted partition or disk, and load it with a stage-1 bootloader. An exampleboot.ini file is provided that should be placed in the root directory of the partition or disk as well.

osldr expects to be loaded at a physical address of 0x8000. It expects to be passed control at this address (its entry point) in 16-bit real mode, with the following information in registereax about the drive it was booted from, in the same format as Multiboot'sboot_device field:

bits 24 - 31: BIOS Drive numberbits 16 - 23: First  partition number (> 4 is extended partition)bits  8 - 15: Second partition number (BSD partitions)bits  0 -  7: Third  partition number (unused: 0xFF)

About

Operating System Bootloader

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp