Setting Up the BIOS Boot Loader (Windows CE 5.0)
Two floppy disk images are provided in Platform Builder, Setupdisk.144 and Bootdisk.144:
- Setupdisk.144 is an MS-DOS FAT-formatted floppy disk that contains disk setup utilities and the boot sector and boot loader images.
- Bootdisk.144 is a sample boot disk for downloading a run-time image from Platform Builder that demonstrates the BIOS boot loader and uses Eboot.bin.
To use the floppy disk images
If Websetup is not installed on your system, install it by running Websetup.exe from <Platform Builder installation path>\Cepb\Utilities on your development workstation.
Websetup only needs to be installed once.
Place a floppy disk in your floppy drive.
Run Setupdisk.144 or Bootdisk.144, from %_WINCEROOT%\Public\Common\Oak\Csp\x86\Biosloader\DiskImages.
The .144 file extension is associated with Websetup.
Select the A Drive button and the floppy disk will be prepared.
Use the setup floppy disk, Setupdisk.144, to prepare a storage device with the BIOS boot loader.
Note This step assumes that the storage device to be prepared is in an x86 system with a floppy drive and the storage device is visible to MS-DOS as a drive.
To prepare the storage device
Insert the setup floppy disk and boot it.
From the command prompt, use the fdisk utility to create a primary MS-DOS active partition on the storage device.
Because the BIOS boot loader does not support FAT32, create a partition whose size is FAT12 or FAT16 compatible.
For more information about how to use fdisk, consult the fdisk documentation.
Note Prepare the disk in the target device. If you cannot, be sure the BIOS settings for the drive, such as the LBA mode and others, match the settings used on the hardware platform. On-disk settings are stored as part of the fdisk operation and must be compatible with the working BIOS mode.
From the command prompt, format the new partition using the format utility.
The MS-DOS system files should not be transferred as part of the formatting process.
Specifically, do not use
format /s <drive>
.When prompted by the format utility, leave the volume name blank.
Write the boot sector image and transfer the boot loader by typing mkdisk <drive letter>:.
For example, if you are using the C: drive, you would type mkdisk c:.
At this point, the storage device contains an active partition that is bootable and contains the boot sector and boot loader images.
The mkdisk utility sets the attributes of the BIOS loader image (BLDR) to hide or protect the file.
Listing all files in the root directory of the storage device will not show files.
After the storage device is prepared with the BIOS loader, the BIN image to be booted must be transferred to the root directory.
By default, the BIOS boot loader looks for the file Eboot.bix in the root directory. Eboot.bix is the run-time image. If Microsoft Windows CE 5.0 Networked Media Device Feature Pack is installed, the BIOS boot loader looks for the file Nk.bin in the root directory before looking for Eboot.bix.
Because the storage device contains a standard FAT file system, if the storage device is removable, it can be placed in any desktop system and the boot image can be copied to the root directory on the storage device.
When the BIOS loader boots, it sends information over physical COM1 on the target device. If you run into problems booting an image with the BIOS loader, connect a Hyperterm connection, 38400 N81, to COM1 for more information.
See Also
Send Feedback on this topic to the authors