Sunday, 11 December 2011

Boot devices (IBM PC)

The cossack accessory is the accessory from which the operating arrangement is loaded. A avant-garde PC BIOS supports booting from assorted devices, about a bounded adamantine deejay drive (or one of several partitions on such a disk), an optical disc drive, a USB accessory (flash drive, adamantine deejay drive, optical disc drive, etc.), a beam anamnesis agenda such as an SD agenda in a multi-media agenda slot, or a arrangement interface agenda (using PXE). Older, beneath accepted bootable accessories accommodate billowing deejay drives, SCSI devices, Zip drives, and LS-120 drives.

Typically, the BIOS will acquiesce the user to configure a cossack order. If the cossack adjustment is set to "first, the DVD drive; second, the adamantine deejay drive", again the BIOS will try to cossack from the DVD drive, and if this fails (e.g. because there is no DVD in the drive), it will try to cossack from the bounded adamantine drive.

For example, on a PC with Windows XP installed on the adamantine drive, the user could set the cossack adjustment to the one accustomed above, and again admit a Linux Live CD in adjustment to try out Linux afterwards accepting to install an operating arrangement assimilate the adamantine drive. This is an archetype of bifold booting ‒ the user allotment which operating arrangement to alpha afterwards the computer has performed its POST. In this archetype of bifold booting, the user chooses by inserting or removing the CD from the computer, but it is added accepted to accept which operating arrangement to cossack by selecting from a card application the computer keyboard. (Typically F11 or ESC)

Boot sequence on standard PC (IBM-PC compatible)

Upon starting, a claimed computer's x86 CPU runs the apprenticeship amid at the anamnesis area CS:IP F000:FFF0 of the BIOS, which wraps to beeline abode 0xFFFF0, the BIOS access central the ROM. This anamnesis area is abutting to the end of the 1 MB of arrangement anamnesis attainable in absolute mode. It about contains a jump apprenticeship that transfers beheading to the area of the BIOS start-up program. This affairs runs a power-on cocky analysis (POST) to analysis and initialize appropriate devices. The BIOS goes through a pre-configured account of non-volatile accumulator accessories ("boot accessory sequence") until it finds one that is bootable. A bootable accessory is authentic as one that can be apprehend from, and the aftermost two bytes of the aboriginal area accommodate the chat 0xAA55 (also accepted as the cossack signature).

Other kinds of boot sequences

Some added processors accept added kinds of cossack modes.

There are addition techniques for booting CPUs and microcontrollers:

Some avant-garde CPUs and microcontrollers (for example, TI OMAP) or sometimes alike DSPs may accept cossack ROM with cossack cipher chip anon into their silicon, so such a processor could accomplish absolutely a adult cossack arrangement on its own and amount cossack programs from assorted sources like NAND flash, SD or MMC agenda and so on. It is adamantine to hardwire all the appropriate argumentation for administration such devices, so an chip cossack ROM is acclimated instead in such scenarios. Cossack ROM acceptance enables added adjustable cossack sequences than hardwired argumentation could provide. For example, the cossack ROM could try to accomplish cossack from assorted cossack sources. Also, a cossack ROM is generally able to amount a cossack loader or analytic affairs via consecutive interfaces like UART, SPI, USB and so on. This affection is generally acclimated for arrangement accretion purposes back for some affidavit accepted cossackcomputer application in non-volatile anamnesis got erased. This address could additionally be acclimated for antecedent non-volatile anamnesis programming back there is apple-pie non-volatile anamnesis installed and appropriately nocomputer application accessible in the arrangement yet.

It is additionally accessible to booty ascendancy of a arrangement by application a accouterments alter interface such as JTAG. Such an interface may be acclimated to address the cossack loader affairs into bootable non-volatile anamnesis (e.g. flash) by instructing the processor amount to accomplish the all-important accomplishments to affairs non-volatile memory. Alternatively, the alter interface may be acclimated to upload some analytic or cossack cipher into RAM, and again to alpha the processor amount and acquaint it to assassinate the uploaded code. This allows, for example, the accretion of anchored systems area nocomputer application charcoal on any accurate cossack device, and area the processor does not accept any chip cossack ROM. JTAG is a accepted and accepted interface; abounding CPUs, microcontrollers and added accessories are bogus with JTAG interfaces (as of 2009).

Some microcontrollers accommodate appropriate accouterments interfaces which can't be acclimated to booty approximate ascendancy of a arrangement or anon run code, but instead they acquiesce the admittance of cossack cipher into bootable non-volatile anamnesis (like beam memory) via simple protocols. Again at the accomplishment phase, such interfaces are acclimated to inject cossack cipher (and possibly added code) into non-volatile memory. After arrangement reset, the microcontroller begins to assassinate cipher programmed into its non-volatile memory, aloof like accepted processors are application ROMs for booting. Best conspicuously this address is acclimated by Atmel AVR microcontrollers, and by others as well. In abounding cases such interfaces are implemented by hardwired logic. In added cases such interfaces could be created bycomputer application active in chip on-chip cossack ROM from GPIO pins.

Most agenda arresting processors accept the afterward cossack modes:

Consecutive approach boot

Parallel approach boot, such as the host anchorage interface (HPI boot)

In case of DSPs there is generally a additional chip or microcontroller present in the arrangement design, and this is amenable for all-embracing arrangement behavior, arrest handling, ambidextrous with alien events, user interface, etc. while the DSP is committed to arresting processing tasks only. In such systems the DSP could be booted by addition processor which is sometimes referred as the host processor (giving name to a Host Port). Such a processor is additionally sometimes referred as the master, back it usually boots aboriginal from its own memories and again controls all-embracing arrangement behavior, including booting of the DSP, and again added authoritative the DSP's behavior. The DSP generally lacks its own cossack memories and relies on the host processor to accumulation the appropriate cipher instead. The best notable systems with such a architecture are corpuscle phones, modems, audio and video players and so on, area a DSP and a CPU/microcontroller are co-existing.

Many FPGA chips amount their agreement from an alien consecutive EEPROM ("configuration ROM") on power-up

IBM Initial Program Load

In accepted IBM mainframe systems, the cossack action is accepted as Antecedent Affairs Amount (IPL).

This appellation was coined by IBM for the architecture of the System/360 (ca, 1965) and continues to be acclimated in those environments today.17 In the System/360 processors, an IPL is accomplished by the computer abettor by selecting the three hexadecimal chiffre accessory abode (CUU; C=I/O Approach address, UU=Control Assemblage and accessory addressNB 1) followed by acute the LOAD button. On System/370 and some after systems, the functions of the switches and the LOAD button are apish application selectable areas on the awning of a cartoon console, generally an IBM 2250-like accessory or an IBM 3270-like device. For example, on the System/370 Model 158, the keyboard arrangement 0-7-X (zero, seven and X, in that order) after-effects in an IPL from the accessory abode which was keyed into the ascribe area. Amdahl 470V/6 and accompanying CPUs accurate four hexadecimal digits on those CPUs which had the alternative additional approach assemblage installed, for a absolute of 32 channels. Later, IBM would additionally abutment added than 16 channels.

The IPL action in the System/360 and its successors, and its compatibles such as Amdahl's, reads 24 bytes from an operator-specified accessory into anamnesis starting at area zero. The additional and third groups of eight bytes are advised as Approach Command Words (CCWs) to abide loading the startup affairs (the aboriginal CCW is consistently apish by the CPU and consists of a READ IPL command, 0x02, with command chaining and abolish incorrect breadth implied). When the I/O approach commands are complete, the aboriginal accumulation of eight bytes is again loaded into the Affairs Status Word (PSW) and the startup affairs begins beheading at the appointed location.17 The IPL accessory is usually a deejay drive, but absolutely the aforementioned action is additionally acclimated to IPL from added input-type devices, such as band drives, or alike agenda readers, in a device-independent manner, allowing, for example, the accession of an operating arrangement on a aboriginal computer from an OS antecedent administration alluring band (for deejay controllers, the 0x02 command additionally causes the called accessory to seek to butt 0x0000, arch 0x0000, and to chase for almanac 0x01, thereby additionally assuming a stand-alone seek command, 0x07, and a chase ID according command, 0x31; seeks and searches are not apish by band and agenda controllers).

The disk, band or agenda accouter charge accommodate a appropriate affairs to amount the absolute operating arrangement into memory, and for this specific purpose "IPL Text" is placed on the deejay by the stand-alone DASDI (Direct Access Storage Accessory Initialization) affairs or an agnate affairs active beneath an operating system, e.g., ICKDSF, but IPL-able tapes and agenda decks are broadcast with this "IPL Text" already present