Confidential
Agenda
BIOS Definition BIOS Role BIOS Flow BIOS Features POST Card BIOS ROM BIOS Development Stage The Customized x86 BIOS example for Embedded System Q&A
Confidential
Confidential
Input System
Output
Confidential
http://www.phoenix.com
http://www.insydesw.com
Confidential
2. BIOS Role
Application/ OS System Software Hardware
<Basic System Structure>
Confidential
Hardware Hardware
Confidential
Confidential
KEYBOARD CONTROLLER PORT DECODE 60/64 8042 SYSTEM CONTROL AND INFORMATION ENABLE A20 SYSTEM RESET
CPU IOR IOW Q KEY (Pressed) DATA BUS 8 SERIAL LINK Kscan code (15h) 1 clock data stop data Odd parity
IRQ1
Confidential
3. BIOS Flow
Boot Block Boot Block POST POST Boot-Strap Loader Boot-Strap Loader
OS OS
Confidential
POST POST
Initialize & Configure chip Timer, Interrupt, DMA Power On Self Test System Resource Allocation PCI/ PnP Device PCI IRQ Routing Save System Info. Memory Size System Equipment Configure APM/ACPI Prepare INT SVC Routine Configure SMBIOS Provide system Info.
Configure Bootable Devices HDD, CD, USB, Network Load Boot Devices HDD, CD, USB, Network
OS OS
Confidential
Confidential
2) POST
Power On Self Test A diagnostic testing sequence run by the BIOS as the computers power is initially turned on. Tests all system components Configures and initializes configurable components Prepares PC to boot OS Bootstrap : Loads the operating system ( O/S). If it cant do that, it will ask for an alternate source for an O/S such as a diskette.
Confidential
3) Runtime Code
Runtime is the BIOS code that runs after POST. Legacy Interrupt Services for low level I/O. IDE, Floppy, Keyboard, Screen, Serial, Parallel, SMI/SCI service for Power Management. PnP/PCI services
Confidential
4) ROM Information
(, AMI BIOS )
Confidential
OS OS
BIOS Setup
reset
Confidential
What to do?
Set/Change
Date/Time info. Chipset Register (NB, SB, SIO) Booting Sequence (FDD, CDROM, HDD, Network, USB) Password (Supervisor, User)
Show Info.
BIOS Version Date/Time Current configuration H/W Monitor (FAN/Voltage/ Thermal)
Confidential
(, AMI BIOS )
Confidential
4. BIOS Features
1) DRAM Auto Detection
Fully support every possible DRAM combination DRAM Auto Detection by SPD SPD (Serial Presence Detect) information # of Row Addresses on this assembly # of Col Addresses on this assembly DIMM configuration type (parity, ECC) DRAM type (EDO, SDRAM, DDR) Manufacturer information Timing Values,
Confidential
Confidential
3) DMI
Desktop Management Interface Database of computing system Types, capabilities, operational status, installation date, and other information about the system components. Example : System Information (Type 1)
Confidential
Confidential
5) Power Management
APM Advanced Power Management Power Management by BIOS SMI (System Management Interrupt) ACPI Advanced Configuration and power Interface Current Revision 3.0b Power Management by OS and BIOS SMI/SCI (System Control Interrupt)
Confidential
5. POST Card
Shows the value of IO PORT 80H Shows the progress status of BIOS POST Interface: ISA/PCI/Mini-PCI/PCI-E(1x) Type
Confidential
Confidential
Before D1 D1
Early chipset initialization is done. Early super I/O initialization is done including RTC and keyboard controller. NMI is disabled. Perform keyboard controller BAT test. Check if waking up from power management suspend state. Save poweron CPUID value in scratch CMOS. Go to flat mode with 4GB limit and GA20 enabled. Verify the bootblock checksum. Disable CACHE before memory detection. Execute full memory sizing module. Verify that flat mode is enabled. Bootblock code is copied from ROM to lower system memory and control is given to it. BIOS now executes out of RAM. Both key sequence and OEM specific method is checked to determine if BIOS recovery is forced. Main BIOS checksum is tested. If BIOS recovery is necessary, control flows to checkpoint E0. Restore CPUID value back into register. The Bootblock-Runtime interface module is moved to system memory and control is given to it. Determine whether to execute serial flash. The Runtime module is uncompressed into memory. CPUID information is stored in memory Store the Uncompressed pointer for future use in PMM. Copying Main BIOS into memory. Restore CPUID value back into register. Give control to BIOS POST.
D2 D4 D5 D6
D7
D8 D9 DA
(, AMI BIOS )
Confidential
05 06 08 0A 0B 0C 0E 13 20 2A 2C
(, AMI BIOS )
Confidential
Confidential
(, AMI BIOS )
Confidential
SPI
Confidential
1) Review Stage
Summary of GPIO Usage
Summary of Device Usage Summary of PCI IRQ Routing Summary of OEM Spec. and Implementation (BIOS Implementation Spec.) NB (North-Bridge) Type
SB (South-Bridge) Type SIO (Super I/O) Type CPU Type Features to be supported CPU Review
Confidential
Confidential
Confidential
Q&A .
Confidential