aptitude install module-assistant
- m-a <-- interactive mode
- m-a prepare <-- 下載所需工具, 比如 linux-headers-??,
build-essential
- m-a update <-- update the list of available kernel modules
- m-a list-installed
- m-a search
- m-a build
- m-a install
有用選項:
-t, --text-mode Text mode, no dialog boxes
實例:
某 Server 有以下的 LAN Card
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5722 Gigabit Ethernet PCI Express 02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5722 Gigabit Ethernet PCI Express
driver: tg3
version: 3.98
firmware-version: 5722-v3.08, ASFIPMI v6.02
由於 Debian 沒有直接提供, 那要自己動手了
bcm5700-source
module-assistant
m-a -t update
m-a -t prepare
m-a a-i bcm5700
- a-i <-- auto-install
在 A Kernel Compile B Kernel
kernel version (KVERS)
-k, --kernel-dir List of kernel headers
-l, --kvers-list List of kernel versions to work on
# 如果是用 backports 的 kernel, 那就要用 backports 的 module-assistant