LPIC Notes

w/c 10 July

1.101.1 Configure Fundamental BIOS settings

1.101.3 Configure Modem and Sound cards

1.101.1 Configure Fundamental BIOS settings (2 hrs)	Weight 1 Description: 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 administered ports and settings for error handling. Key files terms and utilities include: /proc/ioports /proc/interrupts /proc/dma /proc/pci What about lspci?

ITEM	EXAMPLE/COMMENT
Expansion cards – ISA, PCI, PCI Express (set from 2005 to supplant previous architecture) + Peripherals How these devices interact with BIOS and kernel	
cat /proc/interrupts cat /proc/ioports cat /proc/dma cat /proc/pci	
API - Abbreviation of application program interface, a set of routines, protocols, and tools for building software applications.	
There are 16 IRQ assignments (0-15)	
IRQ0 is reserved for the system timer, while IRQ1 is reserved for the keyboard. The lower the number, the more critical the function.	
Typical IRQ setup IRQ0 = 8253/8254 interval timer (System Timer) IRQ1 = keyboard IRQ2 = reserved for the 8259B (Tied to IRQ 9) IRQ3 = COM2 and COM4 IRQ4 = COM1 and COM3 IRQ5 = LPT2 or Soundcard IRQ6 = Floppy drives IRQ7 = LPT1 IRQ8 = Real-time clock (RTC) IRQ9 = Bridged to IRQ2 IRQ10 = Not Assigned IRQ11 = Not Assigned IRQ12 = PS/2 Mouse IRQ13 = Math coprocessor IRQ14 = Primary IDE drives IRQ15 = Secondary IDE drives	System timer keyboard serial ports 2 and 4 serial ports 1 and 3 Floppy drive Parallel port (lp0) Real time clock (sound card on my system) Mouse Primary IDE (IDE0) Secondary IDE (IDE1)
man mkdir man -f mkdir = whatis mkdir man -S 1 mkdir = man mkdir in Section (1)	
man -k postscript = apropos postscript	Searches for mentions of postscript
LOADERS and kernels should be installed below cylinder 1024, or BIOS may not find them and be unable to boot	
Know interrupt settings for serial and parallel ports IRQ3 for ttyS1 and ttyS3, IRQ4 for ttyS0 and ttyS2, IRQ7 for lp0 (LPT1)	
My IRQ SETUP CPU0 0: 233773560 XT-PIC timer 1: 93481 XT-PIC i8042 2: 0 XT-PIC cascade 3: 0 XT-PIC uhci_hcd, uhci_hcd 8: 1 XT-PIC rtc 9: 0 XT-PIC acpi 10: 11721883 XT-PIC EMU10K1, ehci_hcd, ehci_hcd, uhci_hcd 11: 0 XT-PIC uhci_hcd, uhci_hcd 12: 3473271 XT-PIC i8042 14: 457793 XT-PIC ide0 15: 911812 XT-PIC ide1 NMI: 0 ERR: 11	System timer keyboard ttyS0 serial port ?? real time clock sound card mouse ide0 ide1
My HDD	
MY BASE MEMORY SETUP 0000-001f : dma1 0020-0021 : pic1 0040-0043 : timer0 0050-0053 : timer1 0060-006f : keyboard 0070-0077 : rtc 0080-008f : dma page reg 00a0-00a1 : pic2 00c0-00df : dma2 00f0-00ff : fpu 0170-0177 : ide1 01f0-01f7 : ide0 0376-0376 : ide1 0378-037a : parport0 037b-037f : parport0 03c0-03df : vga+ 03f6-03f6 : ide0 03f8-03ff : serial 0800-0803 : PM1a_EVT_BLK 0804-0805 : PM1a_CNT_BLK 0808-080b : PM_TMR 0810-0815 : ACPI CPU throttle 0820-0823 : GPE0_BLK 0cf8-0cff : PCI conf1 d000-d0ff : 0000:00:12.0 d000-d0ff : via-rhine d400-d41f : 0000:00:10.0 d400-d41f : uhci_hcd d800-d81f : 0000:00:10.1 d800-d81f : uhci_hcd dc00-dc1f : 0000:00:10.2 dc00-dc1f : uhci_hcd e000-e01f : 0000:00:0c.0 e000-e01f : uhci_hcd e400-e41f : 0000:00:0c.1 e400-e41f : uhci_hcd e800-e81f : 0000:00:0a.0 e800-e81f : EMU10K1 ec00-ec07 : 0000:00:0a.1 ec00-ec07 : emu10k1-gp fc00-fc0f : 0000:00:11.1 fc00-fc07 : ide0 fc08-fc0f : ide1	keyboard real time clock ttyS0 (w setserial -g ttyS0) NIC card sound card
MY DMA SETUP 4: cascade	
As yet not covered: settings for error handling systems without keyboards how to change IRQs, I/O ports and DMA, if so needed Ah! IRQs etc for modem can be set in setserial (see Horton, under modems) setserial [-ab] /dev/ttyS0 for info setserial [-ab] /dev/ttyS0 [parameters] to change settings port portnum must be in hex, e.g. 0x03f8 irq irqnum uart uarttype baud_base speed (115200) UART=universal asynchronous receiver/transmitter, a computer component that handles asynchronous serial communication. Every computer contains a UART to manage the serial ports, and some internal modems have their own UART.	But this only changes what the kernel looks for. Actual changes to IRQ can only be done with jumpers on modem card

1.101.3 Configure Modem and Sound cards (2 hrs)	Weight 1 Description: Ensure devices meet compatibility requirements (particularly that the modem is NOT a win-modem), verify that both the modem and sound card are using unique and correct IRQs, I/O, and DMA addresses, if the sound card is PnP install and run sndconfig and isapnp, configure modem for outbound dial-up, configure modem for outbound PPP | SLIP | CSLIP connection, set serial port for 115.2 Kbps.

A modem on a serial port may share an IRQ but not an I/O port. Where IRQs are shared the port may not be used by another device whilst the modem is being used.	
Sound driver is a kernel module, with its settings in /etc/modules.conf (in my setup, it's in /etc/sysconfig/hwconf)	
Should be able to create a basic chat script from scratch, providing basic login and PPP server information Set up two PCs with crossover (null modem) connection, and test	'' ATZ OK ATDT8005551212 connect '' ogin: username ssword: password TIMEOUT 5 > ppp
SOUND http://www.tldp.org/HOWTO/Sound-HOWTO/index.html	
pnpdump => isapnp.conf ??	
MODEM	
(see Linux Complete p.551 ff.) www.linmodems.org	
wvdial	
chat -f chat.sh	-f is file
minicom	
/etc/sysconfig/networking/devices/ifcfg-wlan0 – changed channel from 1 to 3 and rate from 36 to 54Mbps	
/dev/cuan was used to dial out, but no longer – ttyS0 does in and out now

Martin Webb

2005-07-01T22:12:03

Martin Webb