x86 BIOS Boot Loader (Windows CE 5.0)

Send Feedback

The x86 BIOS boot loader (biosloader) is an alternative to romboot.

Unlike romboot, biosloader does not replace the system BIOS. Rather, it uses the BIOS services like the VESA BIOS for video display control, and INT 13h services for disk I/O to load an image from a local storage device.

It loads a .bin image from any device the BIOS exposes INT 13h support for and views as a storage device. This includes floppy, hard disk, Compact Flash (CF), and Disk-On-Chip.

The boot loader resides on the bootable storage device and is found and loaded by a boot sector image.

The following list summarizes the BIOS boot loader boot process:

  1. At power-on or reset, the x86 CPU jumps to the CPU reset vector address and starts to execute BIOS code.

    The BIOS will typically configure the hardware, which includes configuring the DRAM controller, configuring the host bridge, and enumerating PCI devices, and then locating a boot drive.

  2. If the boot drive is a fixed disk (for example, hard disk, Compact Flash card, or Disk-On-Chip) the first disk sector will be the master boot sector (MBR).

    If the boot drive is a floppy disk, it does not contain an MBR. Instead, the first sector on the disk is a boot sector.

    The MBR neatly fits in one disk sector and is made up of code, 16-bit real mode code, and data.

    The MBR is written to the disk by a partitioning tool like the MS-DOS fdisk program.

    The MBR is loaded from the disk into RAM by the BIOS; then the BIOS begins to execute the MBR code.

    If the BIOS cannot locate the MBR on the boot drive, which looks for a two-byte signature at the end of the sector, it displays an error message and halts.

  3. The MBR code primarily searches through the partition table looking for the active partition on the boot disk.

    The partition table is data that resides in the MBR.

    If the MBR code cannot locate an active partition, it displays an error message and halts.

    If it finds an active partition, it determines the disk address of that partition.

    The first sector in the partition is called the boot sector. However, on a floppy disk, this is the first sector on the disk because there is no MBR on a floppy disk.

    The MBR code loads the boot sector into RAM and jumps to it.

  4. The boot sector, like the MBR, contains code and data and fits neatly within a single disk sector. The boot sector is the first piece of OS-specific code.

    The boot sector's task is to find and load the BIOS boot loader. It does this by using the disk-resident properties of the native file system, along with BIOS services, to find and load the boot loader into RAM and then jump to it.

  5. After starting, the BIOS loader proceeds.

To prepare a storage device for use with the BIOS boot loader, you must partition and format it.

For more information about the BIOS boot loader and its functionalities, see the following topics:

See Also

Specialized Boot Loaders

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.