|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Svyatoslav Abramenkov 2:464/8088.100 05 Jul 2002 15:44:00 To : Igor Alferov Subject : Передать параметры в компиленные модули ... -------------------------------------------------------------------------------- At 05 Jul 02 13:54:42, Igor Alferov wrote to All: IA> Hе как не пойму .. IA> А как можно передать параметры в модуль который в ядро вкомпилен! IA> Hу например передать модулю sb параметры io=0x200 ... IA> только модуль то в ядро вкомпилен ... IA> Как быть? передать параметры ядру. Hапример, для lilo нужно прописать в lilo.conf append="sound=..."; Что прописывать - читай ниже. Полностью цитируемое ты найдешь у себя в /usr[/share]/doc/Linux-HOWTOs/BootPrompt-HOWTO. В этом и рядом лежащем каталоге Linux-mini-HOWTOs ты найдешь много ответов на подобные вопросы. 10.3. The Sound Driver (`sound=') The sound driver can also accept boot args to override the compiled in values. This is not recommended, as it is rather complex and the documentation for it in the kernel mysteriously vanished (a hint). You are better off to use sound as a module, or compile in your own values. If you choose to use it regardless, then processing of the argument takes place in the file dev_table.c in linux/drivers/sound. It accepts a boot arg of the form: ______________________________________________________________________ sound=device1[,device2[,device3...[,device11]]] ______________________________________________________________________ where each deviceN value is of the following format 0xDTaaaId and the bytes are used as follows: D - second DMA channel (zero if not applicable) T - device type: 1=FM, 2=SB, 3=PAS, 4=GUS, 5=MPU401, 6=SB16, 7=SB16-MIDI,... The listing of soundcard types up to 26 (don't forget to convert back to hex for command line use) are listed in the file linux/include/linux/soundcard.h and 27 to 999 (newer models) can be found in the file linux/drivers/sound/dev_table.h. aaa - I/O address in hex. I - interrupt line in hex (i.e 10=a, 11=b, ...) d - First DMA channel. As you can see it gets pretty messy, and you really are better off to use a modular driver or compile in your own personal values as recommended. Using a boot arg of `sound=0' will disable the sound driver entirely. -- Svyatoslav <absolute_sh@mail.ru> [Registered Linux user #219421] --- QDed/Linux * Origin: AbSolute Soft&Hard (2:464/8088.100) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/45900d25a5a8.html, оценка из 5, голосов 10
|