101.1 Determine and configure hardware settings

Key Knowledge Areas

  • Enable and disable integrated peripherals.
  • Configure systems with or without external peripherals such as keyboards.
  • Differentiate between the various types of mass storage devices.
  • Set the correct hardware ID for different devices, especially the boot device.
  • Know the differences between coldplug and hotplug devices.
  • Determine hardware resources for devices.
  • Tools and utilities to list various hardware information (e.g. lsusb, lspci, etc.)
  • Tools and utilities to manipulate USB devices
  • Conceptual understanding of sysfs, udev, hald, dbus

Terms and Utilities

  • /sys
  • /proc
  • /dev
  • modprobe
  • lsmod
  • lspci
  • lsusb

USB topology

lsusb 

Bus 005 Device 002: ID 046d:c050 Logitech, Inc. RX 250 Optical Mouse
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 004: ID 0a5c:4503 Broadcom Corp. Mouse (Boot Interface Subclass)
Bus 003 Device 003: ID 0a5c:4502 Broadcom Corp. Keyboard (Boot Interface Subclass)
Bus 003 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb -t
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 2: Dev 2, If 0, Class=HID, Driver=usbhid, 1.5M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/3p, 12M
        |__ Port 2: Dev 3, If 0, Class=HID, Driver=usbhid, 12M
        |__ Port 3: Dev 4, If 0, Class=HID, Driver=usbhid, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/8p, 480M

report hardware

lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01)
00:1c.3 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
02:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
02:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
02:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
02:01.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 0a)
02:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 05)
02:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)
0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)

lspci -v
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
	Subsystem: Dell Device 01d8
	Flags: bus master, fast devsel, latency 0
	Capabilities: <access denied>
	Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
	Subsystem: Dell Device 01d8
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at eff00000 (32-bit, non-prefetchable) [size=512K]
	I/O ports at eff8 [size=8]
	Memory at d0000000 (32-bit, prefetchable) [size=256M]
	Memory at efec0000 (32-bit, non-prefetchable) [size=256K]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: i915

00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
	Subsystem: Dell Device 01d8
	Flags: bus master, fast devsel, latency 0
	Memory at eff80000 (32-bit, non-prefetchable) [size=512K]
	Capabilities: <access denied>

[...]
lsdev
Device            DMA   IRQ  I/O Ports
------------------------------------------------
0000:00:02.0                 eff8-efff
0000:00:1d.0                 bf80-bf9f
0000:00:1d.1                 bf60-bf7f
0000:00:1d.2                 bf40-bf5f
0000:00:1d.3                 bf20-bf3f
0000:00:1f.0                 1000-107f 1080-10bf
0000:00:1f.2                 0170-0177 01f0-01f7 0376-0376 03f6-03f6 bfa0-bfaf
0000:00:1f.3                 10c0-10df
acpi                      9 
ACPI                           1000-1003   1004-1005   1008-100b   1010-1015   1020-1020   1028-102f
ata_piix              14 15    0170-0177   01f0-01f7   0376-0376   03f6-03f6   bfa0-bfaf
cascade             4       
dma                          0080-008f
dma1                         0000-001f
dma2                         00c0-00df
eth0                     17 
firewire_ohci            19 
fpu                          00f0-00ff
i801_smbus                       10c0-10df
i8042                  1 12 
i915                     16 
Intel                    21 
iwl3945                  27 
keyboard                     0060-0060 0064-0064
mmc0                     18 
PCI                          0cf8-0cff 2000-2fff 3000-3fff d000-dfff
pic1                         0020-0021
pic2                         00a0-00a1
pnp                          04d0-04d1 0809-0809 0910-091f 0920-092f 0930-097f 0cb0-0cbf   1080-10bf   10c0-10df f400-f4fe
rtc0                      8  0070-0071
timer                     0 
timer0                       0040-0043
timer1                       0050-0053
uhci_hcd                       bf20-bf3f   bf40-bf5f   bf60-bf7f   bf80-bf9f
uhci_hcd:usb2            20 
uhci_hcd:usb4            22 
uhci_hcd:usb5            23 
vga+                         03c0-03df
procinfo
Memory:        Total        Used        Free     Buffers                       
RAM:         2065512      494836     1570676       22024                       
Swap:        3254264           0     3254264                                   

Bootup: Thu Apr  5 19:57:08 2012   Load average: 0.00 0.01 0.03 1/125 2538     

user  :   00:01:34.92   3.7%  page in :           254253                       
nice  :   00:00:00.85   0.0%  page out:           223852                       
system:   00:00:41.29   1.6%  page act:            59565                       
IOwait:   00:01:04.75   2.5%  page dea:                0                       
hw irq:   00:00:00.44   0.0%  page flt:           871104                       
sw irq:   00:00:00.40   0.0%  swap in :                0                       
idle  :   00:38:56.61  92.0%  swap out:                0                       
uptime:   00:20:46.25         context :           870091                       

irq   0:     218611  timer               irq  17:      18340  eth0             
irq   1:       2994  i8042               irq  18:         12  mmc0             
irq   8:          1  rtc0                irq  19:         21  firewire_ohci    
irq   9:          2  acpi                irq  20:          3  ehci_hcd:usb1, uh
irq  12:       4767  i8042               irq  21:        260  uhci_hcd:usb3, HD
irq  14:      14293  ata_piix            irq  22:          0  uhci_hcd:usb4    
irq  15:        208  ata_piix            irq  23:      10608  uhci_hcd:usb5    
irq  16:       1478  i915                irq  27:          0  iwl3945          

sda            10397r            3892w   sr0               28r               0w

eth0        TX 632.07KiB     RX 14.67MiB      pan0        TX 0.00B         RX 0.00B        
lo          TX 560.00B       RX 560.00B       wlan0       TX 0.00B         RX 0.00B        
                03c0-03df

manipulate modules

  • lsmod
  • insmod
  • rmmod
  • modinfo
  • modprobe
sudo modinfo ext3
filename:       /lib/modules/2.6.32-5-686/kernel/fs/ext3/ext3.ko
license:        GPL
description:    Second Extended Filesystem with journaling extensions
author:         Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others
depends:        mbcache,jbd
vermagic:       2.6.32-5-686 SMP mod_unload modversions 686 
lpic/101.1.txt · Last modified: 2014-06 by tb
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready