Linux 固件
Linux 固件是和 Linux 内核一同发行的软件包,其包含某些硬件所需的部分或全部功能所需的固件的二进制 blob。这些二进制 blob 不允许被包含于使用了 GPL 许可证的工程,但可以以其他许可证重新发行。
通常需要固件的几种硬件包括:
对于多数用户,推荐安装 linux-firmware包 元包以获取所以常用固件。
您可以仅安装您系统所使用的部分硬件的固件以节省存储空间。
警告:缺少必需固件可能导致系统无法操作!
作为 linux-firmware包 的依赖与其一同安装的固件:
- linux-firmware-amdgpu包 - AMD Radeon GPU
- linux-firmware-atheros包 - 高通 Atheros Wi-Fi 及蓝牙适配器
- linux-firmware-broadcom包 - 博通和 Cypress 网络适配器
- linux-firmware-cirrus包 - Cirrus Logic 音频设备
- linux-firmware-intel包 - 英特尔音频设备,蓝牙适配器,GPU,网络适配器,NPU,网络摄像头和一些其他设备
- linux-firmware-mediatek包 - MediaTek 和 Ralink 网络适配器
- linux-firmware-nvidia包 - NVIDIA GPU 和 SoC
- linux-firmware-other包 - 其他未分类的设备
- linux-firmware-radeon包 - ATI Radeon GPU
- linux-firmware-realtek包 - Realtek 网络及蓝牙适配器
可选软件包:
- linux-firmware-liquidio包 - Cavium LiquidIO server adapters
- linux-firmware-marvell包 - Marvell 网络适配器
- linux-firmware-mellanox包 - for Mellanox Spectrum switches.
- linux-firmware-nfp包 - for Netronome Flow Processors.
- linux-firmware-qcom包 - for Qualcomm SoCs.
- linux-firmware-qlogic包 - for QLogic networked devices.
Third-party packages:
- alsa-firmware包 - for loader programs in alsa-tools and hotplug firmware loader. See ALSA#Firmware.
- sane-gt68xx-firmware包 - for gt68xx-based scanners.
- sigrok-firmware-fx2lafw包 - for FX2 logic analyzers.
- sof-firmware包 - Sound Open Firmware. See ALSA#Firmware.
Sometimes you want to know what firmware is loaded by your system, for debugging or to pick firmware packages to install.
That could be achieved using dynamic debug:
- Add
dyndbg="func fw_log_firmware_info +p"to the kernel parameters. Note that the quotes may need to be escaped depending upon boot loader. - List loaded firmware with
# journalctl -kg 'loaded f'