LPI Linux 認證/配置通訊裝置
外觀
權重:1
- 描述
- 考生應能夠安裝和配置不同的內部和外部通訊裝置,如調變解調器、ISDN 介面卡和 DSL 調變解調器。
- 關鍵知識領域
- 驗證相容性要求(例如,調變解調器不是“winmodem”)。
- 正確設定卡的 IRQ、DMA 和 I/O 埠,以避免裝置之間的衝突。
- 載入和配置合適的裝置驅動程式。
- 設定序列埠速度。
- 為出站 PPP 連線設定調變解調器。
- 以下是被使用檔案、術語和工具的部分列表
- /proc/dma
- /proc/interrupts
- /proc/ioports
- setserial
要列出系統使用的 I/O 埠,請列印 /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 0170-0177 : PCI device 8086:248a 0170-0177 : ide1 01f0-01f7 : PCI device 8086:248a 01f0-01f7 : ide0 02f8-02ff : serial(auto) 0376-0376 : PCI device 8086:248a 0376-0376 : ide1 0378-037a : parport0 037b-037f : parport0 03c0-03df : vesafb 03f6-03f6 : PCI device 8086:248a 03f6-03f6 : ide0
要列出所有裝置使用過的中斷,請列印 /proc/interrupts 檔案。
$ cat /proc/interrupts
CPU0
0: 397517 XT-PIC timer
1: 7544 XT-PIC keyboard
2: 0 XT-PIC cascade
5: 0 XT-PIC usb-uhci, usb-uhci
8: 2 XT-PIC rtc
10: 2024 XT-PIC eth0, usb-uhci, PCI device
104c:ac51, PCI device 104c:ac51, Intel ICH3
12: 19502 XT-PIC PS/2 Mouse
14: 11445 XT-PIC ide0
15: 2770 XT-PIC ide1
NMI: 0
ERR: 0
一個最佳化的系統不會有任何中斷線被多個高使用率的裝置使用。
請記住,每個裝置的每個 ISR 都會在每次中斷時執行。
要列出所有正在使用的 ISA DMA(直接記憶體訪問)通道,請列印 /proc/dma 檔案。
$ cat /proc/dma 4: cascade
要列出 pci 總線上的所有裝置,請列印 /proc/pci 檔案。
$ cat /proc/pci
PCI devices found:
Bus 0, device 0, function 0:
Class 0600: PCI device 8086:3575 (rev 2).
Prefetchable 32 bit memory at 0xe0000000 [0xefffffff].
Bus 0, device 1, function 0:
Class 0604: PCI device 8086:3576 (rev 2).
Master Capable. Latency=96. Min Gnt=12.
Bus 0, device 29, function 0:
Class 0c03: PCI device 8086:2482 (rev 1).
IRQ 10.
I/O at 0x1800 [0x181f].
Bus 0, device 29, function 1:
Class 0c03: PCI device 8086:2484 (rev 1).
IRQ 5.
I/O at 0x1820 [0x183f].
Bus 0, device 29, function 2:
Class 0c03: PCI device 8086:2487 (rev 1).
IRQ 5.
I/O at 0x1840 [0x185f].
Bus 0, device 30, function 0:
Class 0604: PCI device 8086:2448 (rev 65).
Master Capable. No bursts. Min Gnt=4.