![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Сборка дополнительный модулей ядра в Debian и Ubuntu | [исправить] |
Установить дополнительный модуль из исходных текстов для Linux ядра в Debian, не нарушая пакетной структуры дистрибутива, можно при помощи приложения module-assistant, в результате работы которого на выходе получается обычный deb-пакет с заданным модулем. Для примера произведем установку модуля ndiswrapper в Debian Lenny. Устанавливаем module-assistant: apt-get install module-assistant Загружаем необходимые для работы сборки модулей заголовочные файлы ядра и пакеты, подобные build-essential: m-a prepare Обновляем индекс с установленными в данный момент модулями: m-a update Посмотреть список модулей можно через команду: m-a list или в сокращенном виде: m-a -t list | grep -E '^[^ ].*\(' | cut -d " " -f 1 | sort Перед сборкой проверяем наличие в /etc/apt/sources.list подключения репозиториев contrib и non-free, которые могут понадобиться для установки зависимостей для собираемого модуля. Собираем нужный модуль, который после сборки будет автоматически установлен (a-i = auto-install): m-a a-i ndiswrapper Устанавливаем сразу несколько модулей разом: m-a a-i madwifi zaptel openswan sl-modem kvm drbd чтобы просто собрать пакет без установки, нужно выполнить (a-b = auto-build): m-a a-b ndiswrapper Если выполнить команду "m-a" без аргументов, то module-assistant запустится в интерактивном режиме, где все действия можно проделать в диалоговом режиме через интерфейс на базе меню. Настраиваем загрузку Windows-драйвера через ndiswrapper: apt-get install ndiswrapper-utils-1.9 wireless-tools ndiswrapper -i bcmwl5a.inf Загружаем модуль: modprobe ndiswrapper Проверяем его загрузку: lsmod | grep ndiswrapper Настраиваем автозагрузку модуля указав его имя в в /etc/modules: ndiswrapper Проверяем работу беспроводной карты и создаем WEP-соединение: ifconfig wlan0 up iwconfig wlan0 key open 1234567890 iwconfig wlan0 essid номер dhclient wlan0 | |
27.05.2010 , Источник: http://wiki.debian.org/ModuleAssist... |
http://www.opennet.ru/tips/info/2285.shtml
Modules
.......See Also
ModulesAll - Full List of Kernel Modules for the Debian's Linux Kernel.
KernelModuleBlacklisting - Prevent a module from beeing automatically loaded.
ModuleAssistant - Build extra modules.
initramfs - aka Loading modules at boot time, before te root file system is mounted.
- Manpages :
modprobe, lsmod, modinfo and update-modules
...and also insmod, depmod, rmmod, depmod.conf, modules, modules.dep and modprobe.conf
6.4. Loading Missing Firmware | ||
---|---|---|
Prev | Chapter 6. Using the Debian Installer | Next |
6.4. Loading Missing Firmware
If a device driver requests firmware that is not available,
debian-installer
will display a dialog offering to load the missing firmware. If this option is selected, debian-installer
will scan available devices for either loose firmware files or packages containing firmware. If found, the firmware will be copied to the correct location (/lib/firmware
) and the driver module will be reloaded.Note
Which devices are scanned and which file systems are supported depends on the architecture, the installation method and the stage of the installation. Especially during the early stages of the installation, loading the firmware is most likely to succeed from a FAT-formatted floppy disk or USB stick. On i386 and amd64 firmware can also be loaded from an MMC or SD card.Warning
Support for loading firmware is still relatively basic and is likely to be improved in future releases of the installer. Currentlydebian-installer
will for example not display any warning if you choose to load missing firmware, but the requested firmware is not found. Please report any issues you encounter by filing an installation report (see Section 5.4.6, “Submitting Installation Reports”).6.4.1. Preparing a medium
/firmware
of the file system on the medium. The recommended file system to use is FAT as that is most certain to be supported during the early stages of the installation.Tarballs and zip files containing current packages for the most common firmware are available from:
Just download the tarball or zip file for the correct release and unpack it to the file system on the medium.
If the firmware you need is not included in the tarball, you can also download specific firmware packages from the (non-free section of the) archive. The following overview should list most available firmware packages but is not guaranteed to be complete and may also contain non-firmware packages:
It is also possible to copy individual firmware files to the medium. Loose firmware could be obtained for example from an already installed system or from a hardware vendor.
6.4.2. Firmware and the Installed System
If the firmware was loaded from a firmware package,
debian-installer
will also install this package for the installed system and will automatically add the non-free section of the package archive in APT's sources.list
. This has the advantage that the firmware should be updated automatically if a new version becomes available.If loading the firmware was skipped during the installation, the relevant device will probably not work with the installed system until the firmware (package) is installed manually.
Note
If the firmware was loaded from loose firmware files, the firmware copied to the installed system will not be automatically updated unless the corresponding firmware package (if available) is installed after the installation is completed.http://www.debian.org/releases/stable/i386/ch06s04.html.en
http://www.debian.org/releases/stable/i386/ch02s02.html.en
Debian -- Результаты поиска пакетов -- firmware
http://packages.debian.org/search?keywords=firmware
Конфигурирование
Пересборка ядра
http://www.bog.pp.ru/work/linux.html#config