[Topic DIscussion] 设备内核配置选项
Tofloor
poster avatar
jiutian123
deepin
2021-02-16 01:28
Author

设备

 

Linux 支持各种不同类型的设备(比任何其他操作系统都多)。本节演示如何启用一些更常见的类型。

Usb

 

Linux 支持许多不同类型的 USB 设备。要启用 USB 支持,您必须首先启用对 USB 控制器的支持,该控制器驱动计算机上的 USB 连接。

若要确定计算机是否具有 USB 控制器,以及该控制器的类型,请运行以下命令:

$ 
/usr/sbin/lspci | grep USB

00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)

请注意,您的回答可能不相同;重要的是,该命令显示一些 USB 控制器。

启用内核的 PCI 支持:

Bus options (PCI, PCMCIA, EISA, MCA, ISA)
	[*] PCI Support

启用内核的 USB 支持:

Device Drivers
	USB Support
		[M] Support for Host-side USB

为计算机启用特定的 USB 主机控制器(如果您不知道您拥有哪些控制器,可以安全地启用它们):

Device Drivers
	USB Support
	---   USB Host Controller Drivers
	[M]   EHCI HCD (USB 2.0) support
	[M]   OHCI HCD support
	[M]   UHCI HCD (most Intel and VIA) support

单个 USB 设备也需要启用其驱动程序。其中绝大多数都在主 USB 驱动程序部分下:

Device Drivers
	USB Support

但是,某些设备(如 USB 视频和 DVB 和声音)在控制所有此类设备的部分中列出。例如,可以在"声音"菜单下找到 USB声音驱动程序:

Device drivers
	Sound
		[*] Sound card support
			[*] Advanced Linux Sound Architecture
				USB Devices
					[M] USB Audio/MIDI driver

 

如果要插入 USB 存储设备(USB 闪存),请立即查看名为"USB 存储"的部分

IEEE 1394 (火线)

 

IEEE 1394 通常被称为 FireWire,苹果电脑宣传它的名称。IEEE 1394 是一款高速总线,可连接外部设备,就像 USB 一样。

要确定计算机是否具有 FireWire 控制器以及类型,请运行以下命令:

$ 
/usr/sbin/lspci | grep FireWire

06:0c.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
06:0d.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port (rev 04)

请注意,您的回答可能不相同;重要的是,该命令显示一些 FireWire 控制器。

启用内核的 PCI 支持:

Bus options (PCI, PCMCIA, EISA, MCA, ISA)
	[*] PCI Support

启用对内核的 IEEE 1394 支持:

Device Drivers
	IEEE 1394 (FireWire) support
		[*] IEEE 1394 (FireWire) support

启用您拥有的特定类型的 Firewire 主机控制器:

Device Drivers
	IEEE 1394 (FireWire) support
		[*] IEEE 1394 (FireWire) support
		---   Device Drivers
		[M]   Texas Instruments PCILynx support
		[M]   OHCI-1394 support

最后,启用您拥有的特定类型的火线设备:

Device Drivers
	IEEE 1394 (FireWire) support
		[*] IEEE 1394 (FireWire) support
		---   Protocol Drivers
		[M]   OHCI-1394 Video support
		[M]   SBP-2 support (Harddisks etc.)
		[ ]     Enable Phys DMA support for SBP2 (Debug)
		[M]   Ethernet over 1394
		[M]   OHCI-DV I/O support
		[M]   Raw IEEE1394 I/O support

 

Pci 热插头

 

使用快速卡和笔记本电脑基座,PCI 热插头系统正变得越来越受欢迎。

要确定您的计算机是否具有 ExpressCard 控制器,请查看硬件以查看是否可以插入 ExpressCard 卡。

启用内核的 PCI 支持:

Bus options (PCI, PCMCIA, EISA, MCA, ISA)
	[*] PCI Support

启用内核的 PCI 热插头支持:

Bus options (PCI, PCMCIA, EISA, MCA, ISA)
	[*] PCI Support
	PCI Hotplug Support
		[M] Support for PCI Hotplug (EXPERIMENTAL)

有各种各样的不同类型的PCI热插头控制器。对于大多数笔记本电脑和快速卡支持,启用 ACPI 控制器:

Bus options (PCI, PCMCIA, EISA, MCA, ISA)
	[*] PCI Support
	PCI Hotplug Support
		[M] Support for PCI Hotplug (EXPERIMENTAL)
		[M]   ACPI PCI Hotplug driver

以及 PCI 快速控制器:

Bus options (PCI, PCMCIA, EISA, MCA, ISA)
	[*] PCI Support
	[*] PCI Express Support
	[M]   PCI Express Hotplug driver

 

PCMCIA / 卡巴士

 

PCMCIA 和 CardBus 设备支持几乎用于制造的每台笔记本电脑。然而,较新的笔记本电脑正在切换到快速卡格式(请参阅名为"PCI 热插头"的部分中的 PCI 热插头配方)。

要确定计算机是否具有 PCMCIA 控制器,请查看硬件以查看是否可以插入 PCMCIA 卡。

启用内核的 PCI 支持:

Bus options (PCI, PCMCIA, EISA, MCA, ISA)
	[*] PCI Support

启用内核的 PCCARD 支持:

Bus options (PCI, PCMCIA, EISA, MCA, ISA)
	PCCARD (PCMCIA/CardBus) support
		[M] PCCard (PCMCIA/CardBus) support

支持 PCMCIA 和 CardBus 支持,以涵盖最广泛的设备:

Bus options (PCI, PCMCIA, EISA, MCA, ISA)
	PCCARD (PCMCIA/CardBus) support
		[M] PCCard (PCMCIA/CardBus) support
		[M]   16-bit PCMCIA support
		[*]   32-bit CardBus support

为笔记本电脑启用卡桥类型。最常见的是"yenta 样"控制器:

Bus options (PCI, PCMCIA, EISA, MCA, ISA)
	PCCARD (PCMCIA/CardBus) support
		[M] PCCard (PCMCIA/CardBus) support
		[M]   CardBus yenta-compatible bridge support
		[ ]   Cirrus PD6729 compatible bridge support
		[ ]   i82092 compatible bridge support
		[ ]   i82365 compatible bridge support
		[ ]   Databook TCIC host bridge support

 

声音 (ALSA)

 

ALSA(高级Linux声音架构)是Linux内核的当前音响系统。较早的音响系统 (OSS) 已被弃用,几乎所有较旧的驱动程序已从内核源树中删除。

要确定计算机中存在哪种类型的声音控制器,以及该控制器的类型,请运行以下命令:

$ 
/usr/sbin/lspci | grep -i audio

00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
06:0d.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)

请注意,您的响应可能不相同;重要的是,该命令显示一些音频控制器。

启用基本声音支持:

Device Drivers
    Sound
        [M] Sound Card Support

启用 ALSA:

Device Drivers
    Sound
        [M] Sound Card Support
            [M] Advanced Linux Sound Architecture

有许多不同的基本 ALSA 选项,例如支持较旧的OSS 声音协议。如果您有较旧的应用程序,您应该启用相关选项:

Device Drivers
    Sound
        [M] Sound Card Support
            [M] Advanced Linux Sound Architecture
            [M]   OSS Mixer API
            [M]   OSS PCM (digital audio) API
            [ ]     OSS PCM (digital audio) API - Include plugin system

启用您拥有的特定类型的声音设备。PCI 声卡在 PCI 子门下:

Device Drivers
    Sound
        [M] Sound Card Support
            [M] Advanced Linux Sound Architecture
                PCI Devices
Reply Favorite View the author
All Replies
lcw0268
deepin
2021-02-16 01:48
#1

这太难了。

Reply View the author
zhangn1985
deepin
2021-02-16 05:03
#2
It has been deleted!