Boot process: Difference between revisions
(Moved AMC-OS Loader section) |
mNo edit summary |
||
Line 3: | Line 3: | ||
AMC-OS booting process is done in three different phases : | AMC-OS booting process is done in three different phases : | ||
* [[Boot process#The Boot Loader|The boot loader]] ''(also named master boot record (MBR) or boot sector)'' | * [[Boot process#The Boot Loader|The boot loader]] ''(also named master boot record (MBR) or boot sector)'' | ||
* [[ | * [[AMC-OS Loader]] - Checking system, loads and relocates Kernel in memory | ||
* '''Kernel initialization''' - Initializes all structures to start the AMC-OS kernel | * '''Kernel initialization''' - Initializes all structures to start the AMC-OS kernel | ||
Revision as of 17:36, 12 August 2012
Introduction
AMC-OS booting process is done in three different phases :
- The boot loader (also named master boot record (MBR) or boot sector)
- AMC-OS Loader - Checking system, loads and relocates Kernel in memory
- Kernel initialization - Initializes all structures to start the AMC-OS kernel
At power up, and after BIOS initialization, for historical/compatibility reasons, the processor runs in real adressing mode. In this mode, the CPU runs a 16-byte memory adressing scheme, meaning that we can only address 16 segments of 64KB of memory (ie 1MB), divided in "user" memory (640KB - the so-called "conventional memory" in MS-DOS) and Video RAM+System ROMS (384KB).
We have to switch the processor to 32-bit protected mode to run a 32-byte memory adressing scheme and adress 4GB of physical memory. It is even possible, starting with the Pentium Pro, to run a 36-byte memory addressing, called PAE (Physical Address Extension), allowing the adressing of 64GB of memory.
Switching to protected mode requires some preparation and resources, and most BIOS functions are no longer available (ie. disk read, changing video mode...), meaning that we must have loaded all kernel required files in memory before switching.
The Boot Loader
The boot loader is the first sector (512 bytes) of the source media (typically the floppy disk). The BIOS automatically loads the first sector of the specified media during system boot process, at physical memory address 00007C00, checks that the last word value is 55AA, and if so, jump execution to first byte.
AMC-OS 1.44M Boot Floppy disks are in standard FAT12 format and contains the adequate header. There lasts only 451 bytes to :
- Load the FAT and Root directory (\) listing in memory
- Locate AMCOSLDR.IMG and AMCOSLDR.SYS files in the root directory
- Load the files to fixed memory addresses
- Switch execution to AMC-OS Loader
The boot loader uses BIOS support through INT 13H for I/O functions. In case of error during execution, the boot loader will display :
- FIL? if one of the required files hasn't been found in the root directory
- DSK? if a read error occured (probably defective disk)
AMC-OS Loader
See complete article : AMC-OS Loader