List of Slides 1 – Configure BIOS Fundamental Settings [3] . . . . . . . . . . . . . 5 1.1 – (1.1) 101 Hardware & Architecture [11] . . . . . . . . . . . . 5 1.2 – Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.3 – Key files, terms, and utilities . . . . . . . . . . . . . . . . . . 7 1.4 – Resources of interest . . . . . . . . . . . . . . . . . . . . . . 8 2 – The PC Firmware—BIOS . . . . . . . . . . . . . . . . . . . . . 10 2.1 – Accessing BIOS Setup . . . . . . . . . . . . . . . . . . . . . 11 2.2 – Boot devices . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.3 – Resource Assignment . . . . . . . . . . . . . . . . . . . . . . 13 2.4 – Common Device Settings . . . . . . . . . . . . . . . . . . . . 14 2.5 – 1023 Cylinder Limit . . . . . . . . . . . . . . . . . . . . . . 15 1 3 – Viewing /proc/* . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.1 – /proc/dma . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.2 – /proc/interrupts . . . . . . . . . . . . . . . . . . . . . 18 3.3 – /proc/ioports . . . . . . . . . . . . . . . . . . . . . . . 19 3.4 – /proc/pci . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2 – General Linux 1 – Configure Fundamental BIOS Settings [3] (Linux Professional Institute Certification) a .˜. /V\ // \\ @._.@ by: geoffrey robertson geoffrey@zip.com.au $Id: gl2.101.1.slides.tex,v 1.2 2003/08/29 14:36:14 waratah Exp $ c 2002 Geoffrey Robertson. Permission is granted to make and distribute verbatim copies or modified versions of this document provided that this copyright notice and this permission notice are preserved on all copies under the terms of the GNU General Public License as published by the Free Software Foundation—either version 2 of the License or (at your option) any later version. a Copyright 3 ⇒• Configure BIOS Fundamental Settings [3] . . . . . . (1.1) 101 Hardware & Architecture [11] Objective Key files, terms, and utilities Resources of interest 5 • • The PC Firmware—BIOS . . . . . . . . . . . . . . Viewing /proc/* . . . . . . . . . . . . . . . . . . 10 17 4 Configure BIOS Fundamental Settings [3] (1.1) 101 Hardware & Architecture [11] 2.101.1 Configure BIOS Fundamental Settings [3] 2.101.2 Setup SCSI devices [2] 2.101.3 Setup different PC expansion cards [2] 2.101.4 Configure communication devices [2] 2.101.5 Set Up USB devices [2] 5 Configure BIOS Fundamental Settings [3] Objective Candidates should be able to configure fundamental system hardware by making the correct settings in the system BIOS. This objective includes a proper understanding of BIOS configuration issues such as the use of LBA on IDE hard disks larger than 1024 cylinders, enabling or disabling integrated peripherals, as well as configuring systems with (or without) external peripherals such as keyboards. It also includes the correct setting for IRQ, DMA and I/O addresses for all BIOS administrated ports and settings for error handling. 6 Configure Fundamental BIOS Settings [3] Key files, terms, and utilities /proc/ioports /proc/interrupts /proc/dma /proc/pci 7 Configure Fundamental BIOS Settings [3] Resources of interest Large Disk HOWTO by Andries Brouwer http://www.linuxdoc.org/HOWTO/Large-Disk-HOWTO.html 8 √ • Configure BIOS Fundamental Settings [3] . . . . . . The PC Firmware—BIOS . . . . . . . . . . . . . . Accessing BIOS Setup Boot devices Resource Assignment Common Device Settings 1023 Cylinder Limit 5 10 ⇒• • Viewing /proc/* . . . . . . . . . . . . . . . . . . 17 9 The PC Firmware—BIOS Responsible for bring the hardware to a state at which it is ready to boot an Operating System. 10 The PC Firmware—BIOS Responsible for bring the hardware to a state at which it is ready to boot an Operating System. • System reset and initialisation 10-a The PC Firmware—BIOS Responsible for bring the hardware to a state at which it is ready to boot an Operating System. • System reset and initialisation • Basic main memory test (RAM) 10-b The PC Firmware—BIOS Responsible for bring the hardware to a state at which it is ready to boot an Operating System. • System reset and initialisation • Test the presence of various devices • Basic main memory test (RAM) 10-c The PC Firmware—BIOS Responsible for bring the hardware to a state at which it is ready to boot an Operating System. • System reset and initialisation • On board peripheral selection • Test the presence of various devices • Basic main memory test (RAM) 10-d The PC Firmware—BIOS Responsible for bring the hardware to a state at which it is ready to boot an Operating System. • System reset and initialisation • On board peripheral selection • Test the presence of various devices • Basic main memory test (RAM) • Low level device configuration 10-e The PC Firmware—BIOS Responsible for bring the hardware to a state at which it is ready to boot an Operating System. • System reset and initialisation • On board peripheral selection • Selection of boot devices • Test the presence of various devices • Basic main memory test (RAM) • Low level device configuration 10-f The PC Firmware—BIOS Responsible for bring the hardware to a state at which it is ready to boot an Operating System. • System reset and initialisation • On board peripheral selection • Selection of boot devices • Test the presence of various devices • Basic main memory test (RAM) • Low level device configuration • Locating an operating system 10-g The PC Firmware—BIOS Responsible for bring the hardware to a state at which it is ready to boot an Operating System. • System reset and initialisation • On board peripheral selection • Selection of boot devices • Test the presence of various devices • Basic main memory test (RAM) • Low level device configuration • The BIOS may have password access enabled 10-h • Locating an operating system The PC Firmware—BIOS Accessing BIOS Setup The various vendors have different ways of entering the BIOS menu system • Del • F2 • Fn Setup • Special Boot Floppy • 11 The PC Firmware—BIOS Boot devices • Floppy • CDROM / DVD • IDE Disk • SCSI Disk • Network • Zip / Jazz • USB Disk 12 The PC Firmware—BIOS Resource Assignment • PC’s have memory mapped I/O and devices must not have overlapping I/O Addresses 13 The PC Firmware—BIOS Resource Assignment • PC’s have memory mapped I/O and devices must not have overlapping I/O Addresses • Devices sharing interrupts such as ttyS0 and ttyS2 must not be used at the same time 13-a The PC Firmware—BIOS Resource Assignment • PC’s have memory mapped I/O and devices must not have overlapping I/O Addresses • Devices sharing interrupts such as ttyS0 and ttyS2 must not be used at the same time • Direct Memory Access (DMA) allows some devices to access memory directly, rather than via the CPU 13-b The PC Firmware—BIOS Resource Assignment • PC’s have memory mapped I/O and devices must not have overlapping I/O Addresses • Devices sharing interrupts such as ttyS0 and ttyS2 must not be used at the same time • Direct Memory Access (DMA) allows some devices to access memory directly, rather than via the CPU • Some PCI controllers may have to be in a Bus Mastering Slot 13-c The PC Firmware—BIOS Resource Assignment • PC’s have memory mapped I/O and devices must not have overlapping I/O Addresses • Devices sharing interrupts such as ttyS0 and ttyS2 must not be used at the same time • Direct Memory Access (DMA) allows some devices to access memory directly, rather than via the CPU • Some PCI controllers may have to be in a Bus Mastering Slot • PCI devices may share a common interrupt 13-d The PC Firmware—BIOS Common Device Settings Device ttyS0 ttyS1 ttyS2 ttyS3 lp0 lp1 fd0, fd1 fd2, fd3 I/O Address 3F8 2F8 3E8 2E8 378-37F 278-27F 3F0-3F7 370-377 IRQ 4 3 4 3 7 5 6 10 DMA NA NA NA NA NA NA 2 3 14 The PC Firmware—BIOS 1023 Cylinder Limit • Ten bit addressing of cylinders—11 1111 11112 = 102310 15 The PC Firmware—BIOS 1023 Cylinder Limit • Ten bit addressing of cylinders—11 1111 11112 = 102310 • Large Block Addressing (LBA) used for disks larger than 1023 cylinders (≈8Gb) 15-a The PC Firmware—BIOS 1023 Cylinder Limit • Ten bit addressing of cylinders—11 1111 11112 = 102310 • Large Block Addressing (LBA) used for disks larger than 1023 cylinders (≈8Gb) • The boot loader must be below cylinder 1024 15-b The PC Firmware—BIOS 1023 Cylinder Limit • Ten bit addressing of cylinders—11 1111 11112 = 102310 • Large Block Addressing (LBA) used for disks larger than 1023 cylinders (≈8Gb) • The boot loader must be below cylinder 1024 • Older versions of LILO must have /boot (the kernel) entirely below cylinder 1024 15-c The PC Firmware—BIOS 1023 Cylinder Limit • Ten bit addressing of cylinders—11 1111 11112 = 102310 • Large Block Addressing (LBA) used for disks larger than 1023 cylinders (≈8Gb) • The boot loader must be below cylinder 1024 • Older versions of LILO must have /boot (the kernel) entirely below cylinder 1024 • The Grub bootloader does not have these restrictions 15-d √ √ • • Configure BIOS Fundamental Settings [3] . . . . . . The PC Firmware—BIOS . . . . . . . . . . . . . . Viewing /proc/* . . . . . . . . . . . . . . . . . . /proc/dma /proc/interrupts /proc/ioports /proc/pci 5 10 17 ⇒• 16 Viewing /proc/* /proc/dma $ cat /proc/dma ← 4: cascade 17 /proc/interrupts $ cat /proc/interrupts ← CPU0 0: 2623139 XT-PIC timer 1: 11619 XT-PIC keyboard 2: 0 XT-PIC cascade 5: 73992 XT-PIC Maestro3(i) 8: 1 XT-PIC rtc 11: 308 XT-PIC usb-uhci, Texas Instruments PCI4451 PC card Cardbus Controller, Texas Instruments PCI4451 PC card Cardbus Controller, eth0 12: 926438 XT-PIC PS/2 Mouse 14: 504452 XT-PIC ide0 NMI: 0 ERR: 0 18 /proc/ioports $ cat /proc/ioports ← 0000-001f : dma1 0020-003f : pic1 0040-005f : timer 0060-006f : keyboard 0070-007f : rtc 0080-008f : dma page reg 00a0-00bf : pic2 00c0-00df : dma2 00f0-00ff : fpu 01f0-01f7 : ide0 02f8-02ff : serial(auto) 0378-037a : parport0 03c0-03df : vga+ 19 /proc/pci $ cat /proc/pci ← PCI devices found: Bus 0, device 0, function 0: Host bridge: Intel Corp. 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 2). Prefetchable 32 bit memory at 0xe4000000 [0xe7ffffff]. Bus 0, device 1, function 0: PCI bridge: PCI device 8086:1131 (Intel Corp.) (rev 2). Master Capable. Latency=32. Min Gnt=12. Bus 0, device 30, function 0: PCI bridge: Intel Corp. 82820 820 (Camino 2) Chipset PCI (-M) (rev 3). Master Capable. No bursts. Min Gnt=6. 20 The End √ √ √ • • • Configure BIOS Fundamental Settings [3] . . . . . . The PC Firmware—BIOS . . . . . . . . . . . . . . Viewing /proc/* . . . . . . . . . . . . . . . . . . 5 10 17 21