oio11: (Default)
[personal profile] oio11
Сборка дополнительный модулей ядра в 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

...
  1. Kernel Modules
    1. Automatic loading of modules
    2. Alias
    3. See Also
....

See Also

http://wiki.debian.org/Modules

6.4. Loading Missing Firmware
Prev Chapter 6. Using the Debian Installer Next

6.4. Loading Missing Firmware

As described in Section 2.2, “Devices Requiring Firmware”, some devices require firmware to be loaded. In most cases the device will not work at all if the firmware is not available; sometimes basic functionality is not impaired if it is missing and the firmware is only needed to enable additional features.
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.
Note that it is possible to skip loading the firmware if you know the device will also function without it, or if the device is not needed during the installation.

Warning

Support for loading firmware is still relatively basic and is likely to be improved in future releases of the installer. Currently debian-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

Although in some cases the firmware can also be loaded from a partition on a hard disk, the most common method to load firmware will be from some removable medium such as a floppy disk or a USB stick. The firmware files or packages must be placed in either the root directory or a directory named /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

Any firmware loaded during the installation will be copied automatically to the installed system. In most cases this will ensure that the device that requires the firmware will also work correctly after the system is rebooted into the installed system. However, if the installed system runs a different kernel version from the installer there is a slight chance that the firmware cannot be loaded due to version skew.
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

May 2025

S M T W T F S
    123
45678910
11121314151617
181920212223 24
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 5th, 2025 12:01 pm
Powered by Dreamwidth Studios