Ситуация: пытаюсь скомпилять ядро с поддержкой встроенной звуковушки yamaha opl3-sax. точно по образцу рисую
device opl0 as isa? port 0x388 (вроде как в LINT так написано)
в ответ на make выдается следующее:
isa_compat.0(.data+0x4):undefined reference to opldriverкак быть, кто подскажет?
забыл добавить: это под FreeBSD 4.5
>Ситуация: пытаюсь скомпилять ядро с поддержкой встроенной звуковушки yamaha opl3-sax. точно по
>образцу рисую
>device opl0 as isa? port 0x388 (вроде как в LINT так написано)посмотри внимательно:
два способа интеграции в ядре:
- VoxWare старые драйвера:
device snd
device sb...
device opl...- NEWPCM:
device pcm
>в ответ на make выдается следующее:
>isa_compat.0(.data+0x4):undefined reference to opldriver
>
>как быть, кто подскажет?в зависимости от выбранного метода и типа карты:
device isa ?
или
device pcm ?ведь в самом LINT все расписано или:
http://www.freebsd.org/handbook/sound-device.html - два метода:
1) подгрузка модуля через kldload
модули: ls -la /modules
или
2) статически вкомпилять в ядро
два метода:
VoxWare:
device snd
device sb0 ...
...
device oplNEWPCM:
PNP/PCI
device pcm
NonPNP:
device pcm0 at isa? ...
options PNPBIOS
выясни что за карта, посмотри что для нее грузится в Windoze или M$DOS
и все станет понятнопопробуй сперва просто
kldload snd_pcm.ko
kldstat
создай необходимые устройства, после чего:cat < /dev/sndstat
и увидишь прогрузилась карта через модуль или нетвозможно:
kldload snd.ko
kldstat
cat < /dev/sndstatps. sorry, давно старинные карты не использовал, мог что-то забыть
переврать... :(думаю что
...
device isa
device pci
...
device pcm
...
должно вполне хватить если использовать ядерную поддержку, после чего
reboot
dmesg
в каком смысле "что для нее грузится в винде и досе"?вставка в ядро
..device isa
..device pci
..device pcm
не дает никакого эффекта - dmesg молчит насчет карты.добавление
..options PNPBIOS
тоже безрезультатно :(через kldload попробую, ибо думал что нужно opl.ko
сенькс
не помогло :(
Ну вообще-то handbook forever:
http://www.freebsd.org/handbook/sound-device.htmlИ согласно прочитанному (значение port может быть другим):
device pcm
device sbc0 at isa? port 0x530 irq 5 drq 1 flags 0x15
>Ну вообще-то handbook forever:
>http://www.freebsd.org/handbook/sound-device.html
>
>И согласно прочитанному (значение port может быть другим):
>
>device pcm
>device sbc0 at isa? port 0x530 irq 5 drq 1 flags 0x15
>ошибка: sbc ни в какие ворота для Yamaha - man 4 sbc
To Dusha: сказано же - посмотри в MSDOS или Windoze как опознается
карта и с какими IO/IRQ/DMA. Какая карта: ISA? PNP? PCI?
>ошибка: sbc ни в какие ворота для Yamaha - man 4 sbc
>Цитирую handbook. (карты на OPL-Sax по большей части PCI'ные)
Before you begin, you should know the model of the card you have, the chip it uses, and whether it is a PCI or ISA card. FreeBSD supports a wide variety of both PCI and ISA cards. If you do not see your card in the following list, check the pcm(4) manual page. This is not a complete list; however, it does list some of the most common cards.
. . .
Yamaha OPL-SAx
. . .[-- skip --]
If you have one of the above cards, you will need to add:
device pcm
to your kernel configuration file. If you have a PnP ISA card,
you will also need to add:
^^^^^^^^^^^^^^^^^^^^^^^^^^
device sbcFor a non-PnP ISA card, add:
device pcm
device sbc0 at isa? port 0x220 irq 5 drq 1 flags 0x15to your kernel configuration file. The settings shown above are the defaults. You may need to change the IRQ or the other settings to match your card. See the sbc(4) manual page for more information.
>>ошибка: sbc ни в какие ворота для Yamaha - man 4 sbc
>>
>
>Цитирую handbook. (карты на OPL-Sax по большей части PCI'ные)
>
я ж в начальном топике написал - встроенная ямаха
а она isa
>Цитирую handbook. (карты на OPL-Sax по большей части PCI'ные)
^^^
Сорри, думаю об одном пишу другое. ISA карты,ISA.
>>ошибка: sbc ни в какие ворота для Yamaha - man 4 sbc
>>
>
>Цитирую handbook. (карты на OPL-Sax по большей части PCI'ные)
>
>Before you begin, you should know the model of the card you
>have, the chip it uses, and whether it is a PCI
>or ISA card. FreeBSD supports a wide variety of both PCI
>and ISA cards. If you do not see your card in
>the following list, check the pcm(4) manual page. This is not
>a complete list; however, it does list some of the most
>common cards.
>
>. . .
>Yamaha OPL-SAx
>. . .
>
>[-- skip --]
>
>If you have one of the above cards, you will need to
>add:
>
> device pcm
>
>to your kernel configuration file. If you have a PnP ISA card,
>
>you will also need to add:
>^^^^^^^^^^^^^^^^^^^^^^^^^^
> device sbc
>
>For a non-PnP ISA card, add:
>
> device pcm
> device sbc0 at isa? port 0x220 irq 5
>drq 1 flags 0x15
>
>to your kernel configuration file. The settings shown above are the defaults.
>You may need to change the IRQ or the other settings
>to match your card. See the sbc(4) manual page for more
>information.блин, еще раз:
man 4 sbc:
SBC(4) FreeBSD Kernel Interfaces Manual SBC(4)
NAME
sbc - Creative Sound Blaster ISA and compatible bridge device driverSYNOPSIS
For PnP cards:
device sbcFor non-PnP cards:
device sbc0 at isa? port 0x220 irq 5 drq 1 flags 0x15DESCRIPTION
The sbc bridge driver allows the generic audio drivers including pcm(4)
to attach to the following ISA sound cards:o Creative SB16, SB32, SB AWE64 (including Gold) and ViBRA16
o Advance Asound 100, 110 and Logic ALS120
o ESS ES1868, ES1869, ES1879 and ES1888
The value of flags specifies the secondary DMA channel. If the secondary
DMA channel is C, set the flags to (C | 0x10). For a sound card without
the secondary DMA channel, the flags should be set to zero.DIAGNOSTICS
теперь смотрим man 4 sb:
SB(4) FreeBSD/i386 Kernel Interfaces Manual SB(4)
NAME
sb - Creative Labs Sound Blaster and compatible device driverSYNOPSIS
For all sound cards supported with the sb driver this is needed:
device snd0For the SoundBlaster, SB Pro, SoundBlaster16, or the Pro Audio Spectrum
(emulating SB):
device sb0 at isa? port 0x220 irq 7 drq 1For specific SB16 support:
device sbxvi0 at isa? drq 5For SoundBlaster 16 16 bit MIDI support:
device sbmidi0 at isa? port 0x300To add Jazz16 suport:
options JAZZ16To add support for the Logitech SoundMan Games:
options SM_GAMESTo add SG NX Pro mixer support:
options __SGNXPRO__The OPL-2/3 is used in the SoundBlaster, SoundBlaster Pro, SB 16, and the
Pro Audio Spectrum. For Yamaha OPL-2/OPL-3 FM support:
device opl0 at isa? port 0x388DESCRIPTION
смотрим LINT:
# Audio drivers: `snd', `sb', `pas', `gus', `pca'
#
# snd: Voxware sound support code
# sb: SoundBlaster PCM - SoundBlaster, SB Pro, SB16, ProAudioSpectrum
# sbxvi: SoundBlaster 16
# sbmidi: SoundBlaster 16 MIDI interface
# pas: ProAudioSpectrum PCM and MIDI
# gus: Gravis Ultrasound - Ultrasound, Ultrasound 16, Ultrasound MAX
# gusxvi: Gravis Ultrasound 16-bit PCM (do not use)
# mss: Microsoft Sound System
# css: Crystal Sound System (CSS 423x PnP)
# sscape: Ensoniq Soundscape MIDI interface
# sscape_mss: Ensoniq Soundscape PCM (requires sscape)
# opl: Yamaha OPL-2 and OPL-3 FM - SB, SB Pro, SB 16, ProAudioSpectrum
# uart: stand-alone 6850 UART for MIDI
# mpu: Roland MPU-401 stand-alone card
#
# Note: It has been reported that ISA DMA with the SoundBlaster will
# lock up the machine (PR docs/5358). If this happens to you,
# turning off USWC write posting in your machine's BIOS may fix
# the problem.
#
# Beware! The addresses specified below are also hard-coded in
# src/sys/i386/isa/sound/sound_config.h. If you change the values here, you
# must also change the values in the include file.
#
# pcm: PCM audio through various sound cards.
#отсюда, если PNP:
device pcm
non-PNP:
device pcm0 at isa? irq XY drq Z flags 0xAB
выше указать правильный IRQ, DMA и опустить или указать flags
и добавить:
options PNPBIOS
в самом BIOS выставить PNP OS: Disable или PNP OS: BIOS
PS. Может быть я мало карт имел, но не видел Ямах Creative Compatible
Все.
Признаю, погорячился.
>
>отсюда, если PNP:
>
>device pcm
>
>non-PNP:
>
>device pcm0 at isa? irq XY drq Z flags 0xAB
>
>выше указать правильный IRQ, DMA и опустить или указать flags
>
>и добавить:
>
>options PNPBIOS
>
>в самом BIOS выставить PNP OS: Disable или PNP OS: BIOS
>все правильно
биг сеньксно не помогает :(
карта isa
port 220
irq 5
dma 1ядро с такими параметрами выдает при загрузке
unknown: <PNP0000> can't assign resources
unknown: <PNP0303> can't assign resources
unknown: <PNP0f13> can't assign resources
unknown: <PNP0c01> can't assign resources
unknown: <PNP0700> can't assign resources
unknown: <PNP0400> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <PNP0510> can't assign resourcesпро компиляцию с opl0 я уже упоминал
>>
>>отсюда, если PNP:
>>
>>device pcm
>>
>>non-PNP:
>>
>>device pcm0 at isa? irq XY drq Z flags 0xAB
>>
>>выше указать правильный IRQ, DMA и опустить или указать flags
>>
>>и добавить:
>>
>>options PNPBIOS
>>
>>в самом BIOS выставить PNP OS: Disable или PNP OS: BIOS
>>
>
>все правильно
>биг сенькс
>
>но не помогает :(
>карта isa
>port 220
>irq 5
>dma 1
>
>ядро с такими параметрами выдает при загрузке
>unknown: <PNP0000> can't assign resources
>unknown: <PNP0303> can't assign resources
>unknown: <PNP0f13> can't assign resources
>unknown: <PNP0c01> can't assign resources
>unknown: <PNP0700> can't assign resources
>unknown: <PNP0400> can't assign resources
>unknown: <PNP0501> can't assign resources
>unknown: <PNP0510> can't assign resources
>
>про компиляцию с opl0 я уже упоминал
я удивляюсь, парни, вас прямо как малых детей за ручку надо водить:man 4 pnp
man pnpinfoи вообще почитать что есть PNP и что в БИВОСЕ разрешено, а что нет