Blogger Templates Skip to main content

The Booting Process of the PC

The process begins when the power supply is switched on:
1, The power supply performs a self-test:
>> When all voltages and current levels are acceptable (+5v, +3.0 through +6.0 is generally considered acceptable), the supply indicates that the power is stable and sends the "Power Good" signal to the motherboard.
>> The "Power Good" signal is received by the microprocessor timer chip, which controls the reset line to the microprocessor. The time between turning on the switch to the generation of the "Power Good" signal is usually between 0.1 and 0.5 seconds.
>> In the absence of the "Power Good" signal, the timer chip continuously resets the microprocessor, which prevents the system from running under bad or unstable power conditions.

2, The microprocessor timer chip receives the "Power Good" signal:
>> After the power supply is switched on, the microprocessor timer chip generates a reset signal to the processor (the same as if you held the reset button down for a while on your case) until it receives the "Power Good" signal from the power supply.
>> After the reset signal turns off, the CPU begins to operate. Code in RAM cannot be executed since the RAM is empty. The CPU manufacturers pre-program the processor to always begin executing code at address "FFFF:0000" (usually the ROM BIOS) of the ROM.

3, The CPU starts executing the ROM BIOS code:
>> The CPU loads and executes the ROM BIOS code starting at ROM memory address "FFFF:0000" which is only 16 bytes from the top of ROM memory. As such, it contains only a JMP (jump) instruction that points to the actual address of the ROM BIOS code.

4, The BIOS searches for adapters (usually video adapters) that may need to load their own ROM BIOS routines:
>> Video adapters provide the most common source of adapter ROM BIOS. The start-up BIOS routines scan memory addresses "C000:0000" through "C780:0000" to find video ROM.
>> An error loading any adapter ROM generates an error such as:"XXXX ROM Error" where XXXX represents the segment address of the failed module.

5, The ROM BIOS checks to see if this is a 'cold boot' or a 'warm boot:
>> To determine whether this is a "cold boot" or a "warm boot" the ROM BIOS startup routines check the value of the two bytes located at memory location "0000:0472".
--Warm boot - A word value of 1234h in this location is a flag that indicates a "warm boot", which causes the memory test portion of the POST (Power-On Self-Test) to be skipped.
--Cold boot - Any other word value in this location indicates a "cold boot" and full POST.
6, POST (Power-On Self-Test):
>> The POST is a series of diagnostic tests that run automatically when you turn your computer on. The actual tests can differ depending on how the BIOS is configured, but usually the POST tests the following:
-->The Video adapter - It is initialized, the video card and video memory is tested, and configuration information or any errors are displayed.
--> The RAM - A read/write test of each memory address is performed and a running sum of installed memory is displayed.
--> The keyboard - PS/2 ports or USB ports are checked to verify whether the keyboard is connected or not.
--> The Processor - The cache memory is checked and the CPU type and speed are displayed.
--> CMOS - Read/write test.
--> ROM BIOS checksum.
--> RAM refresh verification.
**Note:"The POST operations are not the same for the all BIOS software"
>> Any errors found during the POST are reported by a combination of beeps and displayed error messages. The errors which occur during the POST can be classified as either 'fatal' or 'non-fatal'. A non-fatal error (e.g. problem in the extended memory) will typically display an error message on the screen and allow the system to continue the boot process. A fatal error (e.g. problem in the processor), on the other hand, stops the process of booting the computer and is generally signaled by a series of beep-codes. However, successful completion of the POST is indicated by a single beep.

7, The BIOS locates and reads the configuration information stored in CMOS:

>> CMOS (Complementary Metal-Oxide Semiconductor) is a small area of memory (64 bytes) which is maintained by the current of a small battery attached to the motherboard. Most importantly, for the ROM BIOS startup routines (boot sequence), CMOS determines the order in which drives should be examined for an operating system (floppy disk first, CD-Rom first, or fixed disk first). Furthermore, it holds some essential information such as hard drive size, memory address location, and Date & Time.
8, Shadow RAM: (Optional, you can turn it off/on using the CMOS settings)
>> Shadow RAM is where a copy of BIOS routines from ROM is stored a special area of RAM, so that the BIOS routines can be accessed more quickly.
9, Loading the OS (Operating System):
>> The BIOS will attempt booting using the boot sequence determined by the CMOS settings, and examine the MBR (Master Boot Record) of the bootable disk.
>> The MBR is the information in the first sector (512 bytes) of any hard disk or diskette that identifies how and where an operating system is located so that it can be loaded into the RAM (booted).
>> The MBR is also sometimes called the "partition sector" or the "master partition table" because it includes a table that locates each partition that the hard disk has been formatted into. In addition to this table, the MBR also includes a program that reads the boot sector record of the partition containing the operating system to be booted into RAM. In turn, that record contains a program that loads the rest of the operating system into RAM.

Comments

Popular posts from this blog

By passing windows 7/8/8.1/10 login password using ease of access

I am almost certain that this has been covered elsewhere. If you have seen this before, then I am sorry I wasted a precious few minutes of your life. 1, Boot up using a Windows 7/8/8.1/10 Installation CD or Bootable Pendrive. 2, At the first splash screen click “INSTALL NOW” then accept the license agreement click "NEXT". 3, Press "SHIT+F10" Simultaneously. Command prompt will open up. 4, Now u need to find out at what partition your OS is installed. you can check this by typing DISKPART>LIST DISK >SELECT DISK 1 > LIST VOL and in the volumes check for the BOOT partition and note down the volume label e.g "C" (it can be different for you). 5, Type in the following commands: cd C: cd Windows/system32 copy UtilMan.exe abc.exe copy cmd.exe Utilman.exe So what did we just do here? The first two commands changed our current working directory to "/Windows/system32". This location contains both "cmd.exe" (...

DHCP (Dynamic Host Configuration Protocol) | DNS (Domain Name System)

DHCP (Dynamic Host Configuration Protocol) DHCP is a network protocol that is used to assign various network parameters to a device. This greatly simplifies administration, since there is no need to assign static network parameters for each device separately. DHCP is a client-server protocol. A client is a device that is configured to use DHCP to request network parameters from a DHCP server. DHCP server maintains a pool of available IP addresses and assignes one of them to the host. A DHCP server can also provide some other parameters, such as: • subnet mask • default gateway • domain name • DNS server Cisco routers can be used as a DHCP server. DHCP process explained: DHCP client goes through the four step process:   1: A DHCP client sends a broadcast packet (DHCP Discover) to discover DHCP servers on the LAN segment. 2: The DHCP servers receive the DHCP Discover packet and respond with DHCP Offer packets, offering ...

Microsoft Has Fixed Network Connectivity Issue in Windows 10

Microsoft has released out-of-band updates that resolve the Windows connectivity issue which the company had encountered last week. The issue, as you may remember, was preventing cloud apps like Microsoft Teams, Microsoft Office, Microsoft Office 365, Microsoft Outlook from their normal work, and also was affecting VPN connections. The released updates are not available via the Windows Update as of this writing. The user has to download them manually from the Microsoft Update Catalog.  The links are as follows: Windows 10, version 1909 (KB4554364 ) Windows 10, version 1903 (KB4554364 ) Windows 10, version 1809 (KB4554354 ) Windows 10, version 1803 (KB4554349 ) Windows 10, version 1709 (KB4554342 ) Source : https://docs.microsoft.com/en-us/windows/release-information/windows-message-center